org.hibernate.type
Class SerializableType
- Serializable, Type
public class SerializableType
serializable: A type that maps an SQL VARBINARY to a
serializable Java object.
Object | assemble(Serializable cached, SessionImplementor session, Object owner) - Reconstruct the object from its cached "disassembled" state.
|
Object | deepCopyNotNull(Object value)
|
Serializable | disassemble(Object value, SessionImplementor session, Object owner) - Return a cacheable "disassembled" representation of the object.
|
Object | fromStringValue(String xml)
|
Object | get(ResultSet rs, String name)
|
int | getHashCode(Object x, EntityMode entityMode) - Get a hashcode, consistent with persistence "equality"
|
String | getName() - Returns the abbreviated name of the type.
|
Class | getReturnedClass() - The class returned by nullSafeGet() methods.
|
boolean | isEqual(Object x, Object y)
|
void | set(PreparedStatement st, Object value, int index)
|
int | sqlType()
|
String | toString(Object value)
|
fromStringValue , fromXMLNode , fromXMLString , get , getColumnSpan , isDirty , isEqual , isEqual , nullSafeGet , nullSafeGet , nullSafeGet , nullSafeGet , nullSafeSet , nullSafeSet , nullSafeSet , nullSafeToString , set , setToXMLNode , sqlType , sqlTypes , toColumnNullness , toLoggableString , toString , toXMLString |
assemble , beforeAssemble , compare , disassemble , getHashCode , getHashCode , getSemiResolvedType , hydrate , isAnyType , isAssociationType , isCollectionType , isComponentType , isDirty , isEntityType , isEqual , isEqual , isModified , isSame , isXMLElement , replace , replaceNode , resolve , semiResolve |
SerializableType
public SerializableType(Class serializableClass)
assemble
public Object assemble(Serializable cached,
SessionImplementor session,
Object owner)
throws HibernateException
Reconstruct the object from its cached "disassembled" state.
- assemble in interface Type
- assemble in interface AbstractType
cached
- the disassembled state from the cachesession
- the sessionowner
- the parent entity object
disassemble
public Serializable disassemble(Object value,
SessionImplementor session,
Object owner)
throws HibernateException
Return a cacheable "disassembled" representation of the object.
- disassemble in interface Type
- disassemble in interface AbstractType
value
- the value to cachesession
- the sessionowner
- optional parent entity object (needed for collections)
- the disassembled, deep cloned state
getName
public String getName()
Returns the abbreviated name of the type.
- getName in interface Type
- String the Hibernate type name
getReturnedClass
public Class getReturnedClass()
The class returned by nullSafeGet() methods. This is used to
establish the class of an array of this type.
- getReturnedClass in interface Type