|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.hibernate.type.AbstractType
Abstract superclass of the built in Type hierarchy.
| Constructor Summary | |
AbstractType()
|
|
| Method Summary | |
Object |
assemble(Serializable cached,
SessionImplementor session,
Object owner)
Reconstruct the object from its cached "disassembled" state. |
int |
compare(Object x,
Object y,
EntityMode entityMode)
compare two instances of the type |
Serializable |
disassemble(Object value,
SessionImplementor session,
Object owner)
Return a cacheable "disassembled" representation of the object. |
int |
getHashCode(Object x,
EntityMode entityMode)
Get a hashcode, consistent with persistence "equality" |
int |
getHashCode(Object x,
EntityMode entityMode,
SessionFactoryImplementor factory)
Get a hashcode, consistent with persistence "equality" |
Object |
hydrate(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner)
Retrieve an instance of the mapped class, or the identifier of an entity or collection, from a JDBC resultset. |
boolean |
isAnyType()
Is this an "any" type. |
boolean |
isAssociationType()
Return true if the implementation is castable to AssociationType. |
boolean |
isCollectionType()
Is this type a collection type. |
boolean |
isComponentType()
Is this type a component type. |
boolean |
isDirty(Object old,
Object current,
SessionImplementor session)
Should the parent be considered dirty, given both the old and current field or element value? |
boolean |
isEntityType()
Is this type an entity type? |
boolean |
isEqual(Object x,
Object y,
EntityMode entityMode)
Compare two instances of the class mapped by this type for persistence "equality" - equality of persistent state. |
boolean |
isEqual(Object x,
Object y,
EntityMode entityMode,
SessionFactoryImplementor factory)
Compare two instances of the class mapped by this type for persistence "equality" - equality of persistent state. |
boolean |
isModified(Object old,
Object current,
SessionImplementor session)
Has the parent object been modified, compared to the current database state? |
boolean |
isSame(Object x,
Object y,
EntityMode entityMode)
Compare two instances of the class mapped by this type for persistence "equality" - equality of persistent state - taking a shortcut for entity references. |
boolean |
isXMLElement()
|
protected static void |
replaceNode(org.dom4j.Node container,
org.dom4j.Element value)
|
Object |
resolve(Object value,
SessionImplementor session,
Object owner)
Map identifiers to entities or collections. |
Object |
semiResolve(Object value,
SessionImplementor session,
Object owner)
Given a hydrated, but unresolved value, return a value that may be used to reconstruct property-ref associations. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.hibernate.type.Type |
deepCopy, fromXMLNode, getColumnSpan, getName, getReturnedClass, isMutable, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, setToXMLNode, sqlTypes, toLoggableString |
| Constructor Detail |
public AbstractType()
| Method Detail |
public boolean isAssociationType()
Type
isAssociationType in interface TypeAssociationTypepublic boolean isCollectionType()
Type
isCollectionType in interface Typepublic boolean isComponentType()
Type
isComponentType in interface TypeAbstractComponentTypepublic boolean isEntityType()
Type
isEntityType in interface Typepublic boolean isXMLElement()
isXMLElement in interface Type
public int compare(Object x,
Object y,
EntityMode entityMode)
Type
compare in interface TypeentityMode -
public Serializable disassemble(Object value,
SessionImplementor session,
Object owner)
throws HibernateException
Type
disassemble in interface Typevalue - the value to cachesession - the sessionowner - optional parent entity object (needed for collections)
HibernateException
public Object assemble(Serializable cached,
SessionImplementor session,
Object owner)
throws HibernateException
Type
assemble in interface Typecached - the disassembled state from the cachesession - the sessionowner - the parent entity object
HibernateException
public boolean isDirty(Object old,
Object current,
SessionImplementor session)
throws HibernateException
Type
isDirty in interface Typeold - the old valuecurrent - the current valuesession -
HibernateException
public Object hydrate(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner)
throws HibernateException,
SQLException
Type
hydrate in interface Typers - names - the column namessession - the sessionowner - the parent entity
SQLException
HibernateExceptionType.resolve(Object, SessionImplementor, Object)
public Object resolve(Object value,
SessionImplementor session,
Object owner)
throws HibernateException
Type
resolve in interface Typevalue - an identifier or value returned by hydrate()owner - the parent entitysession - the session
HibernateExceptionType.hydrate(ResultSet, String[], SessionImplementor, Object)
public Object semiResolve(Object value,
SessionImplementor session,
Object owner)
throws HibernateException
Type
semiResolve in interface TypeHibernateExceptionpublic boolean isAnyType()
Type
isAnyType in interface Type
public boolean isModified(Object old,
Object current,
SessionImplementor session)
throws HibernateException
Type
isModified in interface Typeold - the database state, in a "hydrated" form, with identifiers unresolvedcurrent - the current state of the objectsession -
HibernateException
public boolean isSame(Object x,
Object y,
EntityMode entityMode)
throws HibernateException
Type
isSame in interface Typex - y - entityMode - TODO
HibernateException
public boolean isEqual(Object x,
Object y,
EntityMode entityMode)
Type
isEqual in interface Typex - y - entityMode -
public int getHashCode(Object x,
EntityMode entityMode)
Type
getHashCode in interface Typex - entityMode -
public boolean isEqual(Object x,
Object y,
EntityMode entityMode,
SessionFactoryImplementor factory)
Type
isEqual in interface Typex - y - entityMode -
public int getHashCode(Object x,
EntityMode entityMode,
SessionFactoryImplementor factory)
Type
getHashCode in interface TypeentityMode - TODO
protected static void replaceNode(org.dom4j.Node container,
org.dom4j.Element value)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||