|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 Type
AssociationType
public boolean isPersistentCollectionType()
Type
isPersistentCollectionType
in interface Type
public boolean isComponentType()
Type
isComponentType
in interface Type
AbstractComponentType
public boolean isEntityType()
Type
isEntityType
in interface Type
public Serializable disassemble(Object value, SessionImplementor session) throws HibernateException
Type
disassemble
in interface Type
value
- the value to cachesession
- the session
HibernateException
public Object assemble(Serializable cached, SessionImplementor session, Object owner) throws HibernateException
Type
cached
- 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
old
- the old valuecurrent
- the current valuesession
-
HibernateException
public 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
HibernateException
Type.resolveIdentifier(Object, SessionImplementor, Object)
public Object resolveIdentifier(Object value, SessionImplementor session, Object owner) throws HibernateException
Type
resolveIdentifier
in interface Type
value
- an identifier or value returned by hydrate()owner
- the parent entitysession
- the session
HibernateException
Type.hydrate(ResultSet, String[], SessionImplementor, Object)
public boolean isObjectType()
Type
isObjectType
in interface Type
public boolean isModified(Object old, Object current, SessionImplementor session) throws HibernateException
Type
isModified
in interface Type
old
- the database state, in a "hydrated" form, with identifiers unresolvedcurrent
- the current state of the objectsession
-
HibernateException
public Object copy(Object original, Object target, SessionImplementor session, Object owner, Map copiedAlready) throws HibernateException
HibernateException
public boolean equals(Object object)
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |