Package org.hibernate.type

A Hibernate Type is a strategy for mapping a Java property type to a JDBC type or types.

See:
          Description

Interface Summary
AbstractComponentType Enables other Component-like types to hold collections and have cascades, etc.
AssociationType A type that represents some kind of association between entities.
DiscriminatorType A Type that may be used for a discriminator column.
IdentifierType A Type that may be used as an identifier.
LiteralType A type that may appear as an SQL literal
Type Defines a mapping from a Java type to an JDBC datatype.
VersionType A Type that may be used to version data.
 

Class Summary
AbstractBynaryType Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138
AbstractCharArrayType Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138
AbstractLobType  
AbstractLongBinaryType Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138
AbstractLongStringType Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138
AbstractType Abstract superclass of the built in Type hierarchy.
AdaptedImmutableType Optimize a mutable type, if the user promises not to mutable the instances.
AnyType Handles "any" mappings and the old deprecated "object" type
AnyType.ObjectTypeCacheEntry  
ArrayType A type for persistent arrays.
BagType  
BigDecimalType big_decimal: A type that maps an SQL NUMERIC to a java.math.BigDecimal
BigIntegerType big_integer: A type that maps an SQL NUMERIC to a java.math.BigInteger
BinaryType binary: A type that maps an SQL VARBINARY to a Java byte[].
BlobType blob: A type that maps an SQL BLOB to a java.sql.Blob.
BooleanType boolean: A type that maps an SQL BIT to a Java Boolean.
ByteArrayBlobType Deprecated. replaced by Hibernate Core's WrappedMaterializedBlobType
ByteType byte: A type that maps an SQL TINYINT to a Java Byte.
CalendarDateType calendar_date: A type mapping for a Calendar object that represents a date.
CalendarType calendar: A type mapping for a Calendar object that represents a datetime.
CharacterArrayClobType Map a Character[] to a Clob Experimental
CharacterArrayType Bridge Character[] and VARCHAR
CharacterType character: A type that maps an SQL CHAR(1) to a Java Character.
CharArrayType put char[] into VARCHAR
CharBooleanType Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138
ClassType class: A type that maps an SQL VARCHAR to a Java Class.
ClobType clob: A type that maps an SQL CLOB to a java.sql.Clob.
CollectionType A type that handles Hibernate PersistentCollections (including arrays).
ComponentType Handles "component" mappings
CompositeCustomType Adapts CompositeUserType to Type interface
CurrencyType currency: A type that maps an SQL VARCHAR to a java.util.Currency
CustomCollectionType A custom type for mapping user-written classes that implement PersistentCollection
CustomType Adapts UserType to the generic Type interface, in order to isolate user code from changes in the internal Type contracts.
DateType date: A type that maps an SQL DATE to a Java Date.
DbTimestampType dbtimestamp: An extension of TimestampType which maps to the database's current timestamp, rather than the jvm's current timestamp.
DoubleType double: A type that maps an SQL DOUBLE to a Java Double.
EmbeddedComponentType  
EntityType Base for types which map associations to persistent entities.
EnumType Enum type mapper Try and find the appropriate SQL type depending on column metadata

TODO implements readobject/writeobject to recalculate the enumclasses

FloatType float: A type that maps an SQL FLOAT to a Java Float.
ForeignKeyDirection Represents directionality of the foreign key constraint
IdentifierBagType  
ImageType image: A type that maps an SQL LONGVARBINARY to Java byte[].
ImmutableType Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138
IntegerType integer: A type that maps an SQL INT to a Java Integer.
ListType  
LocaleType locale: A type that maps an SQL VARCHAR to a Java Locale.
LongType long: A type that maps an SQL BIGINT to a Java Long.
ManyToOneType A many-to-one association to an entity.
MapType  
MaterializedBlobType materialized_blob: A type that maps an SQL BLOB to Java byte[].
MaterializedClobType materialized_clob: A type that maps an SQL CLOB to a Java String.
MetaType  
MutableType Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138
NullableType Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138
NumericBooleanType Maps interger database values to boolean java values.
OneToOneType A one-to-one association to an entity
OrderedMapType A specialization of the map type, with (resultset-based) ordering.
OrderedSetType A specialization of the set type, with (resultset-based) ordering.
PrimitiveByteArrayBlobType Deprecated. replaced by Hibernate Core's MaterializedBlobType
PrimitiveCharacterArrayClobType Map a char[] to a Clob
PrimitiveType Superclass of primitive / primitive wrapper types.
SerializableToBlobType  
SerializableType serializable: A type that maps an SQL VARBINARY to a serializable Java object.
SetType  
ShortType short: A type that maps an SQL SMALLINT to a Java Short.
SortedMapType  
SortedSetType  
SpecialOneToOneType A one-to-one association that maps to specific formula(s) instead of the primary key column of the owning entity.
StringClobType Deprecated. replaced by Hibernate Core's MaterializedClobType
StringType string: A type that maps an SQL VARCHAR to a Java String.
TextType text: A type that maps an SQL LONGVARCHAR to a Java String.
TimestampType timestamp: A type that maps an SQL TIMESTAMP to a Java java.util.Date or java.sql.Timestamp.
TimeType time: A type that maps an SQL TIME to a Java java.util.Date or java.sql.Time.
TimeZoneType timezone: A type that maps an SQL VARCHAR to a java.util.TimeZone
TrueFalseType true_false: A type that maps an SQL CHAR(1) to a Java Boolean.
TypeFactory Used internally to obtain instances of Type.
WrappedMaterializedBlobType materialized_blob: A type that maps an SQL BLOB to Java Byte[].
WrapperBinaryType  
YesNoType yes_no: A type that maps an SQL CHAR(1) to a Java Boolean.
 

Exception Summary
SerializationException Thrown when a property cannot be serializaed/deserialized
 

Package org.hibernate.type Description

A Hibernate Type is a strategy for mapping a Java property type to a JDBC type or types.



Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.