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 Logic to bind stream of byte into a VARBINARY
AbstractCharArrayType Logic to bind stream of char into a VARCHAR
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.
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.
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 Superclass for types that map Java boolean to SQL CHAR(1).
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.
FloatType float: A type that maps an SQL FLOAT to a Java Float.
ForeignKeyDirection Represents directionality of the foreign key constraint
IdentifierBagType  
ImmutableType Superclass of nullable immutable types.
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  
MetaType  
MutableType Superclass for mutable nullable types
NullableType Superclass of single-column nullable types.
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.
PrimitiveType Superclass of primitive / primitive wrapper types.
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.
StringType string: A type that maps an SQL VARCHAR to a Java String.
TextType text: A type that maps an SQL CLOB 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.
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 © 2009 Hibernate.org. All Rights Reserved.