Wednesday 24 August 2011

Hibernate Types

This section gives you description of all the Types that are supported by Hibernate. A Hibernate Type is used to map a Java property type to a JDBC type or types. 

Hibernate Types

This section gives you description of all the Types that are supported by Hibernate. A Hibernate Type is used to map a Java property type to a JDBC type or types. 
The following tables to represents all Hibernate types:









Interfaces and Descriptions:
AbstractComponentTypeThe AbstractComponentType enables other Component-like types to hold collections and have cascades, etc.
AssociationTypeThis interface used to represent all associations between entities.
DiscriminatorTypeThis interface used to discriminator properties with the help of right mapped subclass.
IdentifierTypeThis interface has All identifiers of entities.
LiteralTypeThis is a maker interface that which store SQL literals.
TypeThis interface describes mapping between the Java and JDBC datatypes
VersionTypeThis interface used for version stamping.




































































Classes and Descriptions:
AbstractBynaryTypeThe stream of byte bounded into a VAQRBINARY.
AbstractCharArrayTypeThe stream of char bounded into a VARCHAR.
AbstractTypeThis is a superclass that can be used for creating type hierarchy.
AdaptedImmutableType
AnyTypeIt defines 'any' mappings and deprecated 'object' types.
AnyType.ObjectTypeCacheEntry
ArrayTypeIt represents collection of data into a similar types.
BagType
BigDecimaTypeThis class used to mapping between SQL NUMERIC and java.math.BigDecimal.
BigIntegerTypeThis class used to mapping between SQL NUMERIC and java.math.BigInteger.
BinaryTypeIt used to mapping between a SQL VARBINARY and a Java byte[]. 
BlobTypeIt used to mapping between a SQL BLOB and java.sql.Blob.
BooleanTypeThis class maps between SQL BIT and Java Boolean.
ByteTypeThis class maps between SQL TINYINT  and Java Byte.
CalendarDateTypeThis class represents a data and mapping into a Calendar object.
CalendarTypeIt also represents a datetime mapping into a Calendar object.
CharacterArrayTypeIt is a collection of VARCHAR like: Character[].
CharacterTypeThis class mapping between a SQL CHAR and a Java Character.
CharArrayTypeIt is a collection of VARCHAR like: char[].
CharBooleanTypeThis is a superclass that can be mapping between SQL CHAR and Java boolean.
ClassTypeThis class mapping between SQL VARCHAR and Java class.
ClobTypeThis class mapping between SQL CLOB and java.sql.Clob.
CollectionTypeIt handles the Hibernate PersistentCollections.
ComponentTypeThis class mapping all components.
CompositeCustomTypeIt adjusts CompositeUserType to Type interface.;
CurrencyTypeIt is used to mapping a SQL VARCHAR into a java.util.Currency.
CustomCollectionTypeThis class is created by users and implement the PersistentCollection.
CustomTypeIt adjusts the user type to generic type interface and changes the internal type contracts.
DateTypeThis class mapping between an SQL DATE to Java Date.
DbTimestampType 
DoubleTypeIt can be used to mapping between SQL DOUBLE to Java Double.
EmbeddedComponentType 
EntityTypeIt communicates an entity class.
FloatTypeIt links SQL FLOAT to Java Float.
ForeignKeyDirectionThis class shows directionality of the foreign key constraint.
IdentifierBagType 
ImmutableTypeThis is a superclass of the nullable immutable type.
IntegerTypeThis class links between the SQL INT to Java Integer.
ListType 
LocaleTypeIt links into an SQL VARCHAR and a Java Locale.
LongTypeThis class links into an SQL BIGINT and a Java Long.
ManyToOneTypeIt associates many-to-one entity.
MapType 
MetaType 
MutableTypeThis is a superclass of mutable nullable types.
NullableTypeThis is a supperclass of single-column nullable types.
OneToOneTypeIt associates one-to-one entity.
OrderedMapType 
OrderedSetType 
PrimitiveTypeThis is the superclass of primitive or primitive wrappers types.
SerializableTypeThis class maps an SQL VARBINARY to a serializable Java object.
SetType 
ShortTypeIt communicates between an SQL SMALLINT and Java Short.
SortedMapType 
SortedSetType 
SpacialOneToOneType 
StringTypeIt communicates between an SQL VARCHAR and Java String.
TextTypeThis class links between an SQL CLOB and Java String.
TimestampTypeThis class mapping between an SQL TIMESTAMP and Java java.util.Date or java.sql.Timestamp.
TimeTypeIt maps an SQL TIME to  Java java.util.Date or java.sql.Time.
TimeZoneTypeIt communicates an SQL  VARCHAR to Java java.util.TimeZone.
TrueFalseTypeThis class maps an SQL CHAR to a Java Boolean.
TypeFactoryThis class used internally and holds an instance of Type.
WrapperBinaryType 
YesNoTypeIt maps between an SQL CHAR to Java Boolean.




Exceptions and Descriptions:
SerializationExceptionThis exception occurs when the property could not be serialized or deserialized.

No comments:

Post a Comment