Package org.hibernate.type.descriptor.java
package org.hibernate.type.descriptor.java
Integrates a range of types defined by the JDK with the type system
of Hibernate. Each Java type is described by an implementation of
JavaType
.
Certain important aspects related to the mutability or immutability
of a Java type are described by an associated
MutabilityPlan
. In particular,
the right MutabilityPlan
allows for correct dirty-checking and
destructured storage of values in the second-level cache.
See this discussion of the roles
JavaType
and MutabilityPlan
play in basic type mappings.
- See Also:
-
ClassDescriptionAbstract adapter for
Java type descriptors
.Abstract adapter for Java type descriptors.Descriptor forT[]
handling.Deprecated.SpecializesJavaType
for "basic" values, in the sense ofType.PersistenceType.BASIC
.Descriptor for a basic plural Java type.Descriptor forBigDecimal
handling.Descriptor forBigInteger
handling.Descriptor forBlob
handling.Descriptor forBoolean
handling.Descriptor forboolean[]
handling.Descriptor forByte[]
handling, which disallowsnull
elements.Descriptor forByte
handling.Descriptor forCalendar
handling, but just for the date (month, day, year) portion.Descriptor forCalendar
handling.Descriptor forCalendar
handling, but just for the time portion.Descriptor forCharacter[]
handling, which disallowsnull
elements.Descriptor forCharacter
handling.Descriptor forClass
handling.Descriptor forClob
handling.MutabilityPlan for Clob valuesHelper for determining the correct clock for precisionA problem converting between JDBC types and Java types.Helper for type coercions.Comparator for component arrays.Descriptor forCurrency
handling.A helper for dealing withBLOB
andCLOB
dataDescriptor forDate
handling.Descriptor forDouble
handling.Descriptor fordouble[]
handling.Descriptor forDuration
, which is represented internally as (long seconds
,int nanoseconds
), approximately 28 decimal digits of precision.EnumJavaType<T extends Enum<T>>Describes a Javaenum
type.Descriptor forFloat
handling.Descriptor forfloat[]
handling.Object-typed form ofImmutableMutabilityPlan
for easier use withMutability
for usersMutability plan for immutable objectsA mutability plan for mutable arrays of immutable, non-primitive objects.Comparator for things that cannot be compared (in a way we know about).Descriptor forInetAddress
handling.Java type descriptor for the JavaInstant
type.Descriptor forInteger
handling.Descriptor forint[]
handling.JavaType<T>Descriptor for the Java side of a value mapping.Contract for something that has an associated JavaTypeDescriptor forDate
handling.Descriptor forTime
handling.Descriptor forTimestamp
handling.Java type descriptor for theLocalDate
type.Java type descriptor for theLocalDateTime
type.Descriptor forLocale
handling.Java type descriptor for theLocalTime
type.Descriptor forLong
handling.Descriptor forlong[]
handling.Describes the mutability aspects of a given Java type.Something that exposes a MutabilityPlanMutability plan for mutable objectsDescriptor forNClob
handling.Descriptor forObject[]
handling, usually used for tuples.Java type descriptor for theOffsetDateTime
type.Java type descriptor for theOffsetTime
type.Descriptor forbyte[]
handling.Descriptor forchar[]
handling.SerializableJavaType<T extends Serializable>Descriptor for generalSerializable
handling.Descriptor forShort
handling.Descriptor forshort[]
handling.Descriptor forString
handling.Specialized JavaType for temporal types.Descriptor forTimeZone
handling.Descriptor forURL
handling.Descriptor forUUID
handling.Additional contract for types which may be used to version (and optimistic lock) data.Describes theYear
Java typeJava type descriptor for theZonedDateTime
type.Describes theZoneId
Java type.Descriptor forZoneOffset
handling.
ImmutableObjectArrayMutabilityPlan.get()
for object arrays, or implement a dedicated mutability plan for primitive arrays (see for exampleShortPrimitiveArrayJavaType
's mutability plan).