|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.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. |
Object |
copy(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copiedAlready)
|
Serializable |
disassemble(Object value,
SessionImplementor session)
Return a cacheable "disassembled" representation of the object. |
boolean |
equals(Object object)
|
int |
hashCode()
|
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 |
isAssociationType()
Return true if the implementation is castable to AssociationType. |
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 |
isModified(Object old,
Object current,
SessionImplementor session)
Has the parent object been modified, compared to the current database state? |
boolean |
isObjectType()
Is this an "object" type. |
boolean |
isPersistentCollectionType()
Is this type a collection type. |
Object |
resolveIdentifier(Object value,
SessionImplementor session,
Object owner)
Map identifiers to entities or collections. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.hibernate.type.Type |
deepCopy, equals, fromString, getColumnSpan, getName, getReturnedClass, hasNiceEquals, isMutable, nullSafeGet, nullSafeGet, nullSafeSet, sqlTypes, toString |
| Constructor Detail |
public AbstractType()
| Method Detail |
public boolean isAssociationType()
Type
isAssociationType in interface TypeAssociationTypepublic boolean isPersistentCollectionType()
Type
isPersistentCollectionType in interface Typepublic boolean isComponentType()
Type
isComponentType in interface TypeAbstractComponentTypepublic boolean isEntityType()
Type
isEntityType in interface Typepublic Serializable disassemble(Object value, SessionImplementor session) throws HibernateException
Type
disassemble in interface Typevalue - the value to cachesession - the session
HibernateExceptionpublic Object assemble(Serializable cached, SessionImplementor session, Object owner) throws HibernateException
Type
cached - the disassembled state from the cachesession - the sessionowner - the parent entity object
HibernateExceptionpublic boolean isDirty(Object old, Object current, SessionImplementor session) throws HibernateException
Type
old - the old valuecurrent - the current valuesession -
HibernateExceptionpublic Object hydrate(ResultSet rs, String[] names, SessionImplementor session, Object owner) throws HibernateException, SQLException
Type
rs - names - the column namessession - the sessionowner - the parent entity
SQLException
HibernateExceptionType.resolveIdentifier(Object, SessionImplementor, Object)public Object resolveIdentifier(Object value, SessionImplementor session, Object owner) throws HibernateException
Type
resolveIdentifier in interface Typevalue - an identifier or value returned by hydrate()owner - the parent entitysession - the session
HibernateExceptionType.hydrate(ResultSet, String[], SessionImplementor, Object)public boolean isObjectType()
Type
isObjectType in interface Typepublic 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 -
HibernateExceptionpublic Object copy(Object original, Object target, SessionImplementor session, Object owner, Map copiedAlready) throws HibernateException
HibernateExceptionpublic boolean equals(Object object)
public int hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||