|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.type.StandardBasicTypes
public class StandardBasicTypes
Centralizes access to the standard set of basic types
.
SessionFactory
. These adjusted mappings can be accessed
from the TypeHelper
instance obtained via SessionFactory.getTypeHelper()
BasicTypeRegistry
,
TypeHelper
,
SessionFactory.getTypeHelper()
Field Summary | |
---|---|
static BigDecimalType |
BIG_DECIMAL
The standard Hibernate type for mapping BigDecimal to JDBC NUMERIC . |
static BigIntegerType |
BIG_INTEGER
The standard Hibernate type for mapping BigInteger to JDBC NUMERIC . |
static BinaryType |
BINARY
The standard Hibernate type for mapping byte[] to JDBC VARBINARY . |
static BlobType |
BLOB
The standard Hibernate type for mapping Blob to JDBC BLOB . |
static BooleanType |
BOOLEAN
The standard Hibernate type for mapping Boolean to JDBC BIT . |
static ByteType |
BYTE
The standard Hibernate type for mapping Byte to JDBC TINYINT . |
static CalendarType |
CALENDAR
The standard Hibernate type for mapping Calendar to JDBC
TIMESTAMP . |
static CalendarDateType |
CALENDAR_DATE
The standard Hibernate type for mapping Calendar to JDBC
DATE . |
static CharArrayType |
CHAR_ARRAY
The standard Hibernate type for mapping char[] to JDBC VARCHAR . |
static CharacterType |
CHARACTER
The standard Hibernate type for mapping Character to JDBC CHAR(1) . |
static CharacterArrayType |
CHARACTER_ARRAY
The standard Hibernate type for mapping Character[] to JDBC
VARCHAR . |
static ClassType |
CLASS
The standard Hibernate type for mapping Class to JDBC VARCHAR . |
static ClobType |
CLOB
The standard Hibernate type for mapping Clob to JDBC CLOB . |
static CurrencyType |
CURRENCY
The standard Hibernate type for mapping Currency to JDBC VARCHAR . |
static DateType |
DATE
The standard Hibernate type for mapping Date (Date ) to JDBC
DATE . |
static DoubleType |
DOUBLE
The standard Hibernate type for mapping Double to JDBC DOUBLE . |
static FloatType |
FLOAT
The standard Hibernate type for mapping Float to JDBC FLOAT . |
static ImageType |
IMAGE
The standard Hibernate type for mapping byte[] to JDBC LONGVARBINARY . |
static IntegerType |
INTEGER
The standard Hibernate type for mapping Integer to JDBC INTEGER . |
static LocaleType |
LOCALE
The standard Hibernate type for mapping Locale to JDBC VARCHAR . |
static LongType |
LONG
The standard Hibernate type for mapping Long to JDBC BIGINT . |
static MaterializedBlobType |
MATERIALIZED_BLOB
The standard Hibernate type for mapping byte[] to JDBC BLOB . |
static MaterializedClobType |
MATERIALIZED_CLOB
The standard Hibernate type for mapping String to JDBC CLOB . |
static NumericBooleanType |
NUMERIC_BOOLEAN
The standard Hibernate type for mapping Boolean to JDBC INTEGER . |
static SerializableType |
SERIALIZABLE
The standard Hibernate type for mapping Serializable to JDBC VARBINARY . |
static ShortType |
SHORT
The standard Hibernate type for mapping Short to JDBC SMALLINT . |
static StringType |
STRING
The standard Hibernate type for mapping String to JDBC VARCHAR . |
static TextType |
TEXT
The standard Hibernate type for mapping String to JDBC LONGVARCHAR . |
static TimeType |
TIME
The standard Hibernate type for mapping Date (Time ) to JDBC
TIME . |
static TimestampType |
TIMESTAMP
The standard Hibernate type for mapping Date (Timestamp ) to JDBC
TIMESTAMP . |
static TimeZoneType |
TIMEZONE
The standard Hibernate type for mapping TimeZone to JDBC VARCHAR . |
static TrueFalseType |
TRUE_FALSE
The standard Hibernate type for mapping Boolean to JDBC CHAR(1) (using 'T'/'F'). |
static UrlType |
URL
The standard Hibernate type for mapping URL to JDBC VARCHAR . |
static UUIDBinaryType |
UUID_BINARY
The standard Hibernate type for mapping UUID to JDBC BINARY . |
static UUIDCharType |
UUID_CHAR
The standard Hibernate type for mapping UUID to JDBC CHAR . |
static WrapperBinaryType |
WRAPPER_BINARY
The standard Hibernate type for mapping Byte[] to JDBC VARBINARY . |
static YesNoType |
YES_NO
The standard Hibernate type for mapping Boolean to JDBC CHAR(1) (using 'Y'/'N'). |
Constructor Summary | |
---|---|
StandardBasicTypes()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final BooleanType BOOLEAN
Boolean
to JDBC BIT
.
BooleanType
public static final NumericBooleanType NUMERIC_BOOLEAN
Boolean
to JDBC INTEGER
.
NumericBooleanType
public static final TrueFalseType TRUE_FALSE
Boolean
to JDBC CHAR(1)
(using 'T'/'F').
TrueFalseType
public static final YesNoType YES_NO
Boolean
to JDBC CHAR(1)
(using 'Y'/'N').
YesNoType
public static final ByteType BYTE
Byte
to JDBC TINYINT
.
public static final ShortType SHORT
Short
to JDBC SMALLINT
.
ShortType
public static final IntegerType INTEGER
Integer
to JDBC INTEGER
.
IntegerType
public static final LongType LONG
Long
to JDBC BIGINT
.
LongType
public static final FloatType FLOAT
Float
to JDBC FLOAT
.
FloatType
public static final DoubleType DOUBLE
Double
to JDBC DOUBLE
.
DoubleType
public static final BigIntegerType BIG_INTEGER
BigInteger
to JDBC NUMERIC
.
BigIntegerType
public static final BigDecimalType BIG_DECIMAL
BigDecimal
to JDBC NUMERIC
.
BigDecimalType
public static final CharacterType CHARACTER
Character
to JDBC CHAR(1)
.
CharacterType
public static final StringType STRING
String
to JDBC VARCHAR
.
StringType
public static final UrlType URL
URL
to JDBC VARCHAR
.
UrlType
public static final TimeType TIME
Date
(Time
) to JDBC
TIME
.
TimeType
public static final DateType DATE
Date
(Date
) to JDBC
DATE
.
TimeType
public static final TimestampType TIMESTAMP
Date
(Timestamp
) to JDBC
TIMESTAMP
.
TimeType
public static final CalendarType CALENDAR
Calendar
to JDBC
TIMESTAMP
.
CalendarType
public static final CalendarDateType CALENDAR_DATE
Calendar
to JDBC
DATE
.
CalendarDateType
public static final ClassType CLASS
Class
to JDBC VARCHAR
.
ClassType
public static final LocaleType LOCALE
Locale
to JDBC VARCHAR
.
LocaleType
public static final CurrencyType CURRENCY
Currency
to JDBC VARCHAR
.
CurrencyType
public static final TimeZoneType TIMEZONE
TimeZone
to JDBC VARCHAR
.
TimeZoneType
public static final UUIDBinaryType UUID_BINARY
UUID
to JDBC BINARY
.
UUIDBinaryType
public static final UUIDCharType UUID_CHAR
UUID
to JDBC CHAR
.
UUIDCharType
public static final BinaryType BINARY
byte[]
to JDBC VARBINARY
.
BinaryType
public static final WrapperBinaryType WRAPPER_BINARY
Byte[]
to JDBC VARBINARY
.
WrapperBinaryType
public static final ImageType IMAGE
byte[]
to JDBC LONGVARBINARY
.
ImageType
,
MATERIALIZED_BLOB
public static final BlobType BLOB
Blob
to JDBC BLOB
.
BlobType
,
MATERIALIZED_BLOB
public static final MaterializedBlobType MATERIALIZED_BLOB
byte[]
to JDBC BLOB
.
MaterializedBlobType
,
MATERIALIZED_BLOB
,
IMAGE
public static final CharArrayType CHAR_ARRAY
char[]
to JDBC VARCHAR
.
CharArrayType
public static final CharacterArrayType CHARACTER_ARRAY
Character[]
to JDBC
VARCHAR
.
CharacterArrayType
public static final TextType TEXT
String
to JDBC LONGVARCHAR
.
Similar to a MATERIALIZED_CLOB
TextType
public static final ClobType CLOB
Clob
to JDBC CLOB
.
ClobType
,
MATERIALIZED_CLOB
public static final MaterializedClobType MATERIALIZED_CLOB
String
to JDBC CLOB
.
MaterializedClobType
,
MATERIALIZED_CLOB
,
TEXT
public static final SerializableType SERIALIZABLE
Serializable
to JDBC VARBINARY
.
See especially the discussion wrt ClassLoader
determination on SerializableType
SerializableType
Constructor Detail |
---|
public StandardBasicTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |