org.jooq.util.postgres
Class PostgresDataType<T>

java.lang.Object
  extended by org.jooq.impl.AbstractDataType<T>
      extended by org.jooq.util.postgres.PostgresDataType<T>
All Implemented Interfaces:
Serializable, DataType<T>

public class PostgresDataType<T>
extends AbstractDataType<T>

Supported data types for the SQLDialect.POSTGRES dialect

Author:
Lukas Eder
See Also:
http://www.postgresql.org/docs/9.0/interactive/datatype.html, Serialized Form

Field Summary
protected static PostgresDataType<BigInteger> __BIGINTEGER
           
protected static PostgresDataType<byte[]> __BINARY
           
protected static PostgresDataType<Boolean> __BIT
           
protected static PostgresDataType<String> __LONGNVARCHAR
           
protected static PostgresDataType<byte[]> __LONGVARBINARY
           
protected static PostgresDataType<String> __LONGVARCHAR
           
protected static PostgresDataType<String> __NCHAR
           
protected static PostgresDataType<String> __NCLOB
           
protected static PostgresDataType<String> __NVARCHAR
           
protected static PostgresDataType<Byte> __TINYINT
           
protected static PostgresDataType<byte[]> __VARBINARY
           
static PostgresDataType<String> ACLITEM
           
static PostgresDataType<Long> BIGINT
           
static PostgresDataType<Long> BIGSERIAL
           
static PostgresDataType<String> BIT
           
static PostgresDataType<String> BITVARYING
           
static PostgresDataType<Boolean> BOOL
           
static PostgresDataType<Boolean> BOOLEAN
           
static PostgresDataType<String> BPCHAR
           
static PostgresDataType<byte[]> BYTEA
           
static PostgresDataType<String> CHAR
           
static PostgresDataType<String> CHARACTER
           
static PostgresDataType<String> CHARACTERVARYING
           
static PostgresDataType<Long> CID
           
static PostgresDataType<Date> DATE
           
static PostgresDataType<BigDecimal> DECIMAL
           
static PostgresDataType<Double> DOUBLEPRECISION
           
static PostgresDataType<Float> FLOAT4
           
static PostgresDataType<Double> FLOAT8
           
static PostgresDataType<Integer> INT
           
static PostgresDataType<Short> INT2
           
static PostgresDataType<Integer> INT4
           
static PostgresDataType<Long> INT8
           
static PostgresDataType<Integer> INTEGER
           
static PostgresDataType<DayToSecond> INTERVALDAYTOSECOND
           
static PostgresDataType<YearToMonth> INTERVALYEARTOMONTH
           
static PostgresDataType<BigDecimal> MONEY
           
static PostgresDataType<String> NAME
           
static PostgresDataType<BigDecimal> NUMERIC
           
static PostgresDataType<Long> OID
           
static PostgresDataType<Long> OIDVECTOR
           
static PostgresDataType<Float> REAL
           
static PostgresDataType<Result<Record>> REFCURSOR
           
static PostgresDataType<String> REGPROC
           
static PostgresDataType<Integer> SERIAL
           
static PostgresDataType<Integer> SERIAL4
           
static PostgresDataType<Long> SERIAL8
           
static PostgresDataType<Short> SMALLINT
           
static PostgresDataType<String> TEXT
           
static PostgresDataType<Long> TID
           
static PostgresDataType<Time> TIME
           
static PostgresDataType<Timestamp> TIMESTAMP
           
static PostgresDataType<Timestamp> TIMESTAMPTZ
           
static PostgresDataType<Timestamp> TIMESTAMPWITHOUTTIMEZONE
           
static PostgresDataType<Timestamp> TIMESTAMPWITHTIMEZONE
           
static PostgresDataType<Time> TIMETZ
           
static PostgresDataType<Time> TIMEWITHOUTTIMEZONE
           
static PostgresDataType<Time> TIMEWITHTIMEZONE
           
static PostgresDataType<String> VARBIT
           
static PostgresDataType<String> VARCHAR
           
static PostgresDataType<Long> XID
           
 
Method Summary
static
<T> DataType<T>
getDataType(Class<? extends T> type)
           
static DataType<Object> getDefaultDataType(String typeName)
           
 
Methods inherited from class org.jooq.impl.AbstractDataType
asArrayDataType, asConvertedDataType, asEnumDataType, asMasterDataType, convert, equals, getArrayDataType, getArrayType, getCastTypeName, getCastTypeName, getCastTypeName, getDataType, getDataType, getDataType, getDefaultDataType, getDialect, getSQLDataType, getSQLType, getType, getType, getTypeName, getTypeName, hashCode, isArray, isBinary, isDateTime, isInterval, isNumeric, isString, isTemporal, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SMALLINT

public static final PostgresDataType<Short> SMALLINT

INT2

public static final PostgresDataType<Short> INT2

INT

public static final PostgresDataType<Integer> INT

INTEGER

public static final PostgresDataType<Integer> INTEGER

INT4

public static final PostgresDataType<Integer> INT4

BIGINT

public static final PostgresDataType<Long> BIGINT

INT8

public static final PostgresDataType<Long> INT8

DOUBLEPRECISION

public static final PostgresDataType<Double> DOUBLEPRECISION

FLOAT8

public static final PostgresDataType<Double> FLOAT8

REAL

public static final PostgresDataType<Float> REAL

FLOAT4

public static final PostgresDataType<Float> FLOAT4

BOOLEAN

public static final PostgresDataType<Boolean> BOOLEAN

BOOL

public static final PostgresDataType<Boolean> BOOL

NUMERIC

public static final PostgresDataType<BigDecimal> NUMERIC

DECIMAL

public static final PostgresDataType<BigDecimal> DECIMAL

VARCHAR

public static final PostgresDataType<String> VARCHAR

CHARACTERVARYING

public static final PostgresDataType<String> CHARACTERVARYING

CHAR

public static final PostgresDataType<String> CHAR

CHARACTER

public static final PostgresDataType<String> CHARACTER

TEXT

public static final PostgresDataType<String> TEXT

DATE

public static final PostgresDataType<Date> DATE

TIME

public static final PostgresDataType<Time> TIME

TIMESTAMP

public static final PostgresDataType<Timestamp> TIMESTAMP

BYTEA

public static final PostgresDataType<byte[]> BYTEA

INTERVALYEARTOMONTH

public static final PostgresDataType<YearToMonth> INTERVALYEARTOMONTH

INTERVALDAYTOSECOND

public static final PostgresDataType<DayToSecond> INTERVALDAYTOSECOND

__BINARY

protected static final PostgresDataType<byte[]> __BINARY

__BIT

protected static final PostgresDataType<Boolean> __BIT

__LONGVARBINARY

protected static final PostgresDataType<byte[]> __LONGVARBINARY

__LONGVARCHAR

protected static final PostgresDataType<String> __LONGVARCHAR

__NCHAR

protected static final PostgresDataType<String> __NCHAR

__NCLOB

protected static final PostgresDataType<String> __NCLOB

__LONGNVARCHAR

protected static final PostgresDataType<String> __LONGNVARCHAR

__NVARCHAR

protected static final PostgresDataType<String> __NVARCHAR

__TINYINT

protected static final PostgresDataType<Byte> __TINYINT

__VARBINARY

protected static final PostgresDataType<byte[]> __VARBINARY

__BIGINTEGER

protected static final PostgresDataType<BigInteger> __BIGINTEGER

SERIAL

public static final PostgresDataType<Integer> SERIAL

SERIAL4

public static final PostgresDataType<Integer> SERIAL4

BIGSERIAL

public static final PostgresDataType<Long> BIGSERIAL

SERIAL8

public static final PostgresDataType<Long> SERIAL8

MONEY

public static final PostgresDataType<BigDecimal> MONEY

BITVARYING

public static final PostgresDataType<String> BITVARYING

VARBIT

public static final PostgresDataType<String> VARBIT

BIT

public static final PostgresDataType<String> BIT

BPCHAR

public static final PostgresDataType<String> BPCHAR

TIMEWITHOUTTIMEZONE

public static final PostgresDataType<Time> TIMEWITHOUTTIMEZONE

TIMEWITHTIMEZONE

public static final PostgresDataType<Time> TIMEWITHTIMEZONE

TIMETZ

public static final PostgresDataType<Time> TIMETZ

TIMESTAMPWITHOUTTIMEZONE

public static final PostgresDataType<Timestamp> TIMESTAMPWITHOUTTIMEZONE

TIMESTAMPWITHTIMEZONE

public static final PostgresDataType<Timestamp> TIMESTAMPWITHTIMEZONE

TIMESTAMPTZ

public static final PostgresDataType<Timestamp> TIMESTAMPTZ

REFCURSOR

public static final PostgresDataType<Result<Record>> REFCURSOR

OID

public static final PostgresDataType<Long> OID

OIDVECTOR

public static final PostgresDataType<Long> OIDVECTOR

XID

public static final PostgresDataType<Long> XID

TID

public static final PostgresDataType<Long> TID

CID

public static final PostgresDataType<Long> CID

ACLITEM

public static final PostgresDataType<String> ACLITEM

NAME

public static final PostgresDataType<String> NAME

REGPROC

public static final PostgresDataType<String> REGPROC
Method Detail

getDataType

public static <T> DataType<T> getDataType(Class<? extends T> type)

getDefaultDataType

public static DataType<Object> getDefaultDataType(String typeName)


Copyright © 2012. All Rights Reserved.