Package org.hibernate.type
Class StandardBasicTypes
- java.lang.Object
-
- org.hibernate.type.StandardBasicTypes
-
public final class StandardBasicTypes extends Object
References to commonBasicTypeReference
instances
-
-
Field Summary
-
-
-
Field Detail
-
BOOLEAN
public static final BasicTypeReference<Boolean> BOOLEAN
-
NUMERIC_BOOLEAN
public static final BasicTypeReference<Boolean> NUMERIC_BOOLEAN
-
TRUE_FALSE
public static final BasicTypeReference<Boolean> TRUE_FALSE
-
YES_NO
public static final BasicTypeReference<Boolean> YES_NO
-
BYTE
public static final BasicTypeReference<Byte> BYTE
-
SHORT
public static final BasicTypeReference<Short> SHORT
-
INTEGER
public static final BasicTypeReference<Integer> INTEGER
-
LONG
public static final BasicTypeReference<Long> LONG
-
FLOAT
public static final BasicTypeReference<Float> FLOAT
-
DOUBLE
public static final BasicTypeReference<Double> DOUBLE
-
BIG_INTEGER
public static final BasicTypeReference<BigInteger> BIG_INTEGER
The standard Hibernate type for mappingBigInteger
to JDBCNUMERIC
.
-
BIG_DECIMAL
public static final BasicTypeReference<BigDecimal> BIG_DECIMAL
The standard Hibernate type for mappingBigDecimal
to JDBCNUMERIC
.
-
CHARACTER
public static final BasicTypeReference<Character> CHARACTER
-
CHARACTER_NCHAR
public static final BasicTypeReference<Character> CHARACTER_NCHAR
-
STRING
public static final BasicTypeReference<String> STRING
-
NSTRING
public static final BasicTypeReference<String> NSTRING
-
CHAR_ARRAY
public static final BasicTypeReference<char[]> CHAR_ARRAY
The standard Hibernate type for mappingchar[]
to JDBCVARCHAR
.
-
CHARACTER_ARRAY
public static final BasicTypeReference<Character[]> CHARACTER_ARRAY
The standard Hibernate type for mappingCharacter[]
to JDBCVARCHAR
.
-
TEXT
public static final BasicTypeReference<String> TEXT
-
NTEXT
public static final BasicTypeReference<String> NTEXT
The standard Hibernate type for mappingString
to JDBCLONGNVARCHAR
.Similar to a
MATERIALIZED_NCLOB
-
CLOB
public static final BasicTypeReference<Clob> CLOB
- See Also:
MATERIALIZED_CLOB
-
NCLOB
public static final BasicTypeReference<NClob> NCLOB
- See Also:
MATERIALIZED_NCLOB
-
MATERIALIZED_CLOB
public static final BasicTypeReference<String> MATERIALIZED_CLOB
- See Also:
MATERIALIZED_CLOB
,TEXT
-
MATERIALIZED_NCLOB
public static final BasicTypeReference<String> MATERIALIZED_NCLOB
- See Also:
MATERIALIZED_CLOB
,NTEXT
-
MATERIALIZED_CLOB_CHAR_ARRAY
public static final BasicTypeReference<char[]> MATERIALIZED_CLOB_CHAR_ARRAY
The standard Hibernate type for mappingchar[]
to JDBCCLOB
.- See Also:
MATERIALIZED_CLOB
,TEXT
-
MATERIALIZED_CLOB_CHARACTER_ARRAY
public static final BasicTypeReference<Character[]> MATERIALIZED_CLOB_CHARACTER_ARRAY
The standard Hibernate type for mappingCharacter[]
to JDBCCLOB
.- See Also:
MATERIALIZED_CLOB
,TEXT
-
MATERIALIZED_NCLOB_CHAR_ARRAY
public static final BasicTypeReference<char[]> MATERIALIZED_NCLOB_CHAR_ARRAY
The standard Hibernate type for mappingchar[]
to JDBCNCLOB
.- See Also:
MATERIALIZED_NCLOB
,TEXT
-
MATERIALIZED_NCLOB_CHARACTER_ARRAY
public static final BasicTypeReference<Character[]> MATERIALIZED_NCLOB_CHARACTER_ARRAY
The standard Hibernate type for mappingCharacter[]
to JDBCNCLOB
and- See Also:
NCLOB
,CHAR_ARRAY
-
DURATION
public static final BasicTypeReference<Duration> DURATION
-
LOCAL_DATE_TIME
public static final BasicTypeReference<LocalDateTime> LOCAL_DATE_TIME
The standard Hibernate type for mappingLocalDateTime
to JDBCTIMESTAMP
.
-
LOCAL_DATE
public static final BasicTypeReference<LocalDate> LOCAL_DATE
-
LOCAL_TIME
public static final BasicTypeReference<LocalTime> LOCAL_TIME
-
OFFSET_DATE_TIME
public static final BasicTypeReference<OffsetDateTime> OFFSET_DATE_TIME
The standard Hibernate type for mappingOffsetDateTime
to JDBCTIMESTAMP_WITH_TIMEZONE
orTIMESTAMP
depending on the "hibernate.timezone.default_storage" setting.
-
OFFSET_DATE_TIME_WITH_TIMEZONE
public static final BasicTypeReference<OffsetDateTime> OFFSET_DATE_TIME_WITH_TIMEZONE
The standard Hibernate type for mappingOffsetDateTime
to JDBCTIMESTAMP_WITH_TIMEZONE
. This maps toTimeZoneStorageStrategy.NATIVE
.
-
OFFSET_DATE_TIME_WITHOUT_TIMEZONE
public static final BasicTypeReference<OffsetDateTime> OFFSET_DATE_TIME_WITHOUT_TIMEZONE
The standard Hibernate type for mappingOffsetDateTime
to JDBCTIMESTAMP
. This maps toTimeZoneStorageStrategy.NORMALIZE
.
-
OFFSET_TIME
public static final BasicTypeReference<OffsetTime> OFFSET_TIME
The standard Hibernate type for mappingOffsetTime
to JDBCTIME_WITH_TIMEZONE
.
-
OFFSET_TIME_UTC
public static final BasicTypeReference<OffsetTime> OFFSET_TIME_UTC
The standard Hibernate type for mappingOffsetTime
to JDBCTIME_UTC
. This maps toTimeZoneStorageStrategy.NORMALIZE_UTC
.
-
OFFSET_TIME_WITH_TIMEZONE
public static final BasicTypeReference<OffsetTime> OFFSET_TIME_WITH_TIMEZONE
The standard Hibernate type for mappingOffsetTime
to JDBCTIME_WITH_TIMEZONE
. This maps toTimeZoneStorageStrategy.NATIVE
.
-
OFFSET_TIME_WITHOUT_TIMEZONE
public static final BasicTypeReference<OffsetTime> OFFSET_TIME_WITHOUT_TIMEZONE
The standard Hibernate type for mappingOffsetTime
to JDBCTIME
.
-
ZONED_DATE_TIME
public static final BasicTypeReference<ZonedDateTime> ZONED_DATE_TIME
The standard Hibernate type for mappingZonedDateTime
to JDBCTIMESTAMP_WITH_TIMEZONE
orTIMESTAMP
depending on the "hibernate.timezone.default_storage" setting.
-
ZONED_DATE_TIME_WITH_TIMEZONE
public static final BasicTypeReference<ZonedDateTime> ZONED_DATE_TIME_WITH_TIMEZONE
The standard Hibernate type for mappingZonedDateTime
to JDBCTIMESTAMP_WITH_TIMEZONE
. This maps toTimeZoneStorageStrategy.NATIVE
.
-
ZONED_DATE_TIME_WITHOUT_TIMEZONE
public static final BasicTypeReference<ZonedDateTime> ZONED_DATE_TIME_WITHOUT_TIMEZONE
The standard Hibernate type for mappingZonedDateTime
to JDBCTIMESTAMP
. This maps toTimeZoneStorageStrategy.NORMALIZE
.
-
INSTANT
public static final BasicTypeReference<Instant> INSTANT
The standard Hibernate type for mappingInstant
to JDBCTIMESTAMP_UTC
.
-
TIME
public static final BasicTypeReference<Date> TIME
-
DATE
public static final BasicTypeReference<Date> DATE
-
TIMESTAMP
public static final BasicTypeReference<Date> TIMESTAMP
-
CALENDAR
public static final BasicTypeReference<Calendar> CALENDAR
-
CALENDAR_DATE
public static final BasicTypeReference<Calendar> CALENDAR_DATE
-
CALENDAR_TIME
public static final BasicTypeReference<Calendar> CALENDAR_TIME
-
BINARY
public static final BasicTypeReference<byte[]> BINARY
The standard Hibernate type for mappingbyte[]
to JDBCVARBINARY
.
-
BINARY_WRAPPER
public static final BasicTypeReference<Byte[]> BINARY_WRAPPER
-
WRAPPER_BINARY
@Deprecated(forRemoval=true) public static final BasicTypeReference<Byte[]> WRAPPER_BINARY
Deprecated, for removal: This API element is subject to removal in a future version.useBINARY_WRAPPER
instead
-
IMAGE
public static final BasicTypeReference<byte[]> IMAGE
The standard Hibernate type for mappingbyte[]
to JDBCLONGVARBINARY
.- See Also:
MATERIALIZED_BLOB
-
BLOB
public static final BasicTypeReference<Blob> BLOB
- See Also:
MATERIALIZED_BLOB
-
MATERIALIZED_BLOB
public static final BasicTypeReference<byte[]> MATERIALIZED_BLOB
The standard Hibernate type for mappingbyte[]
to JDBCBLOB
.- See Also:
MATERIALIZED_BLOB
,IMAGE
-
MATERIALIZED_BLOB_WRAPPER
public static final BasicTypeReference<Byte[]> MATERIALIZED_BLOB_WRAPPER
The standard Hibernate type for mappingByte[]
to JDBCBLOB
.- See Also:
MATERIALIZED_BLOB
,IMAGE
-
SERIALIZABLE
public static final BasicTypeReference<Serializable> SERIALIZABLE
The standard Hibernate type for mappingSerializable
to JDBCVARBINARY
.See especially the discussion wrt
ClassLoader
determination onSerializableType
-
OBJECT_TYPE
public static final BasicTypeReference<Object> OBJECT_TYPE
-
CLASS
public static final BasicTypeReference<Class> CLASS
-
LOCALE
public static final BasicTypeReference<Locale> LOCALE
-
CURRENCY
public static final BasicTypeReference<Currency> CURRENCY
-
ZONE_OFFSET
public static final BasicTypeReference<ZoneOffset> ZONE_OFFSET
The standard Hibernate type for mappingZoneOffset
to JDBCVARCHAR
.
-
TIMEZONE
public static final BasicTypeReference<TimeZone> TIMEZONE
-
URL
public static final BasicTypeReference<URL> URL
-
UUID
public static final BasicTypeReference<UUID> UUID
-
UUID_BINARY
public static final BasicTypeReference<UUID> UUID_BINARY
-
UUID_CHAR
public static final BasicTypeReference<UUID> UUID_CHAR
-
ROW_VERSION
public static final BasicTypeReference<byte[]> ROW_VERSION
The standard Hibernate type for mappingbyte[]
to JDBCVARBINARY
, specifically for entity versions/timestamps. Only useful for T-SQL databases (MS, Sybase, etc)
-
-
Method Detail
-
prime
public static void prime(TypeConfiguration typeConfiguration)
-
-