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.SpecializesJavaTypefor "basic" values, in the sense ofType.PersistenceType.BASIC.Descriptor for a basic plural Java type.Descriptor forBigDecimalhandling.Descriptor forBigIntegerhandling.Descriptor forBlobhandling.Descriptor forBooleanhandling.Descriptor forboolean[]handling.Descriptor forByte[]handling, which disallowsnullelements.Descriptor forBytehandling.Descriptor forCalendarhandling, but just for the date (month, day, year) portion.Descriptor forCalendarhandling.Descriptor forCalendarhandling, but just for the time portion.Descriptor forCharacter[]handling, which disallowsnullelements.Descriptor forCharacterhandling.Descriptor forClasshandling.Descriptor forClobhandling.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 forCurrencyhandling.A helper for dealing withBLOBandCLOBdataDescriptor forDatehandling.Descriptor forDoublehandling.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 Javaenumtype.Descriptor forFloathandling.Descriptor forfloat[]handling.Object-typed form ofImmutableMutabilityPlanfor easier use withMutabilityfor 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 forInetAddresshandling.Java type descriptor for the JavaInstanttype.Descriptor forIntegerhandling.Descriptor forint[]handling.JavaType<T>Descriptor for the Java side of a value mapping.Contract for something that has an associated JavaTypeDescriptor forDatehandling.Descriptor forTimehandling.Descriptor forTimestamphandling.Java type descriptor for theLocalDatetype.Java type descriptor for theLocalDateTimetype.Descriptor forLocalehandling.Java type descriptor for theLocalTimetype.Descriptor forLonghandling.Descriptor forlong[]handling.Describes the mutability aspects of a given Java type.Something that exposes a MutabilityPlanMutability plan for mutable objectsDescriptor forNClobhandling.Descriptor forObject[]handling, usually used for tuples.Java type descriptor for theOffsetDateTimetype.Java type descriptor for theOffsetTimetype.Descriptor forbyte[]handling.Descriptor forchar[]handling.SerializableJavaType<T extends Serializable>Descriptor for generalSerializablehandling.Descriptor forShorthandling.Descriptor forshort[]handling.Descriptor forStringhandling.Specialized JavaType for temporal types.Descriptor forTimeZonehandling.Descriptor forURLhandling.Descriptor forUUIDhandling.Additional contract for types which may be used to version (and optimistic lock) data.Describes theYearJava typeJava type descriptor for theZonedDateTimetype.Describes theZoneIdJava type.Descriptor forZoneOffsethandling.
ImmutableObjectArrayMutabilityPlan.get()for object arrays, or implement a dedicated mutability plan for primitive arrays (see for exampleShortPrimitiveArrayJavaType's mutability plan).