程序包 org.hibernate.type
A Hibernate Type is a strategy for mapping a Java property type to a JDBC type or types.
-
接口概要 接口 说明 AssociationType A type that represents some kind of association between entities.BasicType Marker interface for basic types.CompositeType Contract for value types to hold collections and have cascades, etc.DiscriminatorType<T> Additional contract for aTypemay be used for a discriminator.IdentifierType<T> Additional contract for aTypemay be used for a discriminator.LiteralType<T> Additional contract for aTypethat may appear as an SQL literalPrimitiveType<T> Additional contract for primitive / primitive wrapper types.ProcedureParameterExtractionAware<T> OptionalTypecontract for implementations that are aware of how to extract values from store procedure OUT/INOUT parameters.ProcedureParameterNamedBinder OptionalTypecontract for implementations enabled to set store procedure OUT/INOUT parameters values by name.SingleColumnType<T> Provide convenient methods for binding and extracting values for use withBasicType.StringRepresentableType<T> Additional, optional contract for types capable of rendering and consuming their values to/from strings.Type Defines a mapping between a Java type and one or more JDBC types, as well as describing the in-memory semantics of the given java type (how do we check it for 'dirtiness', how do we copy values, etc).TypeFactory.TypeScope 已过时。 UseTypeConfiguration/TypeConfiguration.ScopeinsteadVersionType<T> Additional contract for types which may be used to version (and optimistic lock) data. -
类概要 类 说明 AbstractSingleColumnStandardBasicType<T> TODO : javadocAbstractStandardBasicType<T> Convenience base class forBasicTypeimplementationsAbstractType Abstract superclass of the built in Type hierarchy.AdaptedImmutableType<T> Optimize a mutable type, if the user promises not to mutable the instances.AnyType Handles "any" mappingsAnyType.ObjectTypeCacheEntry Used to externalize discrimination per a given identifier.ArrayType A type for persistent arrays.BagType BasicTypeRegistry A registry ofBasicTypeinstancesBigDecimalType A type that maps between aNUMERICandBigDecimal.BigIntegerType A type that maps between aNUMERICandBigInteger.BinaryType A type that maps between aVARBINARYandbyte[]Implementation of theVersionTypeinterface should be considered deprecated.BlobType BooleanType ByteType CalendarDateType CalendarTimeType CalendarType CharacterArrayClobType A type that maps betweenCLOBandCharacter[]CharacterArrayNClobType A type that maps betweenNCLOBandCharacter[]CharacterArrayType A type that maps betweenVARCHARandCharacter[]CharacterNCharType CharacterType CharArrayType A type that maps betweenVARCHARandchar[]ClassType ClobType CollectionType A type that handles Hibernate PersistentCollections (including arrays).ComponentType Handles "component" mappingsCompositeCustomType AdaptsCompositeUserTypeto theTypeinterfaceCurrencyType CustomCollectionType A custom type for mapping user-written classes that implement PersistentCollectionCustomType DateType DbTimestampType dbtimestamp: An extension ofTimestampTypewhich maps to the database's current timestamp, rather than the jvm's current timestamp.DoubleType DurationType EmbeddedComponentType EntityType Base for types which map associations to persistent entities.EnumType<T extends Enum> Value type mapper for enumerations.FloatType IdentifierBagType ImageType A type that maps betweenLONGVARBINARYandbyte[]InstantType A type that maps betweenTIMESTAMPandLocalDateTime.IntegerType A type that maps betweenINTEGERand @link Integer}ListType LocalDateTimeType A type that maps betweenTIMESTAMPandLocalDateTime.LocalDateType LocaleType A type that maps betweenVARCHARand @link Locale}LocalTimeType A type that maps betweenTIMESTAMPandLocalDateTime.LongType ManyToOneType A many-to-one association to an entity.MapType MaterializedBlobType A type that maps betweenBLOBandbyte[]MaterializedClobType MaterializedNClobType MetaType NClobType NTextType A type that maps betweenLONGNVARCHARandStringNumericBooleanType ObjectType Specific adaptation of the "any" type to the old deprecated "object" typeOffsetDateTimeType OffsetTimeType OneToOneType A one-to-one association to an entityOrderedMapType A specialization of the map type, with (resultset-based) ordering.OrderedSetType A specialization of the set type, with (resultset-based) ordering.PostgresUUIDType Specialized type mapping forUUIDand the Postgres UUID data type (which is mapped as OTHER in its JDBC driver).PostgresUUIDType.PostgresUUIDSqlTypeDescriptor PrimitiveCharacterArrayClobType Map a char[] to a ClobPrimitiveCharacterArrayNClobType Map a char[] to a NClobRowVersionType A type that maps between aVARBINARYandbyte[]specifically for entity versions/timestamps.SerializableToBlobType<T extends Serializable> SerializableType<T extends Serializable> A type that maps between aVARBINARYandSerializableclasses.SetType ShortType SortedMapType SortedSetType SpecialOneToOneType A one-to-one association that maps to specific formula(s) instead of the primary key column of the owning entity.StandardBasicTypes Centralizes access to the standard set of basictypes.StandardBasicTypeTemplate<J> A BasicType adapter targeting partial portability to 6.0's type system changes.StringNVarcharType StringType TextType A type that maps betweenLONGVARCHARandStringTimestampType TimeType TimeZoneType TrueFalseType TypeFactory 已过时。 UseTypeConfigurationinsteadTypeHelper 已过时。 with no real replacement.TypeResolver 已过时。 (since 5.3) No replacement, access to and handling of Types will be much different in 6.0UrlType UUIDBinaryType A type mappingTypes.BINARYandUUIDUUIDCharType WrappedMaterializedBlobType A type that maps JDBCBLOBandByte[].WrapperBinaryType YesNoType ZonedDateTimeType -
枚举概要 枚举 说明 ForeignKeyDirection Represents directionality of the foreign key constraint -
异常错误概要 异常错误 说明 SerializationException Thrown when a property cannot be serialized/deserialized