public final class StandardBasicTypes extends Object
types
.
Type mappings can be adjusted per SessionFactory
. These adjusted mappings can be accessed
from the TypeHelper
instance obtained via SessionFactory.getTypeHelper()
Modifier and Type | Field and Description |
---|---|
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
|
static BooleanType |
BOOLEAN
|
static ByteType |
BYTE
|
static CalendarType |
CALENDAR
|
static CalendarDateType |
CALENDAR_DATE
|
static CharArrayType |
CHAR_ARRAY
The standard Hibernate type for mapping
char[] to JDBC VARCHAR . |
static CharacterType |
CHARACTER
|
static CharacterArrayType |
CHARACTER_ARRAY
The standard Hibernate type for mapping
Character[] to JDBC
VARCHAR . |
static ClassType |
CLASS
|
static ClobType |
CLOB
|
static CurrencyType |
CURRENCY
|
static DateType |
DATE
|
static DoubleType |
DOUBLE
|
static FloatType |
FLOAT
|
static ImageType |
IMAGE
The standard Hibernate type for mapping
byte[] to JDBC LONGVARBINARY . |
static IntegerType |
INTEGER
|
static LocaleType |
LOCALE
|
static LongType |
LONG
|
static MaterializedBlobType |
MATERIALIZED_BLOB
The standard Hibernate type for mapping
byte[] to JDBC BLOB . |
static MaterializedClobType |
MATERIALIZED_CLOB
|
static MaterializedNClobType |
MATERIALIZED_NCLOB
|
static NClobType |
NCLOB
|
static NTextType |
NTEXT
The standard Hibernate type for mapping
String to JDBC LONGNVARCHAR . |
static NumericBooleanType |
NUMERIC_BOOLEAN
|
static RowVersionType |
ROW_VERSION
The standard Hibernate type for mapping
byte[] to JDBC VARBINARY ,
specifically for entity versions/timestamps. |
static SerializableType |
SERIALIZABLE
The standard Hibernate type for mapping
Serializable to JDBC VARBINARY . |
static ShortType |
SHORT
|
static StringType |
STRING
|
static TextType |
TEXT
The standard Hibernate type for mapping
String to JDBC LONGVARCHAR . |
static TimeType |
TIME
|
static TimestampType |
TIMESTAMP
|
static TimeZoneType |
TIMEZONE
|
static TrueFalseType |
TRUE_FALSE
|
static UrlType |
URL
|
static UUIDBinaryType |
UUID_BINARY
|
static UUIDCharType |
UUID_CHAR
|
static WrapperBinaryType |
WRAPPER_BINARY
|
static YesNoType |
YES_NO
|
public static final BooleanType BOOLEAN
BooleanType
public static final NumericBooleanType NUMERIC_BOOLEAN
NumericBooleanType
public static final TrueFalseType TRUE_FALSE
TrueFalseType
public static final ByteType BYTE
public static final IntegerType INTEGER
IntegerType
public static final DoubleType 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
CharacterType
public static final StringType STRING
StringType
public static final TimestampType TIMESTAMP
TimeType
public static final CalendarType CALENDAR
CalendarType
public static final CalendarDateType CALENDAR_DATE
CalendarDateType
public static final LocaleType LOCALE
LocaleType
public static final CurrencyType CURRENCY
CurrencyType
public static final TimeZoneType TIMEZONE
TimeZoneType
public static final UUIDBinaryType UUID_BINARY
UUIDBinaryType
public static final UUIDCharType UUID_CHAR
UUIDCharType
public static final BinaryType BINARY
byte[]
to JDBC VARBINARY
.BinaryType
public static final WrapperBinaryType WRAPPER_BINARY
WrapperBinaryType
public static final RowVersionType ROW_VERSION
byte[]
to JDBC VARBINARY
,
specifically for entity versions/timestamps.RowVersionType
public static final ImageType IMAGE
byte[]
to JDBC LONGVARBINARY
.ImageType
,
MATERIALIZED_BLOB
public static final BlobType 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 NTextType NTEXT
String
to JDBC LONGNVARCHAR
.
Similar to a MATERIALIZED_NCLOB
NTextType
public static final ClobType CLOB
ClobType
,
MATERIALIZED_CLOB
public static final NClobType NCLOB
NClobType
,
MATERIALIZED_NCLOB
public static final MaterializedClobType MATERIALIZED_CLOB
MaterializedClobType
,
MATERIALIZED_CLOB
,
TEXT
public static final MaterializedNClobType MATERIALIZED_NCLOB
MaterializedNClobType
,
MATERIALIZED_CLOB
,
NTEXT
public static final SerializableType SERIALIZABLE
Serializable
to JDBC VARBINARY
.
See especially the discussion wrt ClassLoader
determination on SerializableType
SerializableType
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.