|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.hibernate.type.AbstractType
net.sf.hibernate.type.NullableType
net.sf.hibernate.type.MutableType
net.sf.hibernate.type.SerializableType
serializable: A type that maps an SQL VARBINARY to a serializable Java object.
| Constructor Summary | |
SerializableType(Class serializableClass)
|
|
| Method Summary | |
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)
Return a cacheable "disassembled" representation of the object. |
boolean |
equals(Object object)
|
boolean |
equals(Object x,
Object y)
Compare two instances of the class mapped by this type for persistence "equality", ie. |
Object |
fromStringValue(String xml)
|
Object |
get(ResultSet rs,
String name)
|
String |
getName()
Returns the abbreviated name of the type. |
Class |
getReturnedClass()
The class returned by nullSafeGet() methods. |
int |
hashCode()
|
void |
set(PreparedStatement st,
Object value,
int index)
|
int |
sqlType()
|
String |
toString(Object value)
|
| Methods inherited from class net.sf.hibernate.type.MutableType |
copy, hasNiceEquals, isMutable |
| Methods inherited from class net.sf.hibernate.type.NullableType |
deepCopy, fromString, getColumnSpan, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, sqlTypes, toString |
| Methods inherited from class net.sf.hibernate.type.AbstractType |
hydrate, isAssociationType, isComponentType, isDirty, isEntityType, isModified, isObjectType, isPersistentCollectionType, resolveIdentifier |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SerializableType(Class serializableClass)
| Method Detail |
public void set(PreparedStatement st, Object value, int index) throws HibernateException, SQLException
set in class NullableTypeHibernateException
SQLExceptionpublic Object get(ResultSet rs, String name) throws HibernateException, SQLException
get in class NullableTypeHibernateException
SQLExceptionpublic Class getReturnedClass()
Type
public boolean equals(Object x, Object y) throws HibernateException
Type
x - y -
HibernateExceptionpublic String toString(Object value) throws HibernateException
toString in class NullableTypeHibernateExceptionpublic Object fromStringValue(String xml) throws HibernateException
fromStringValue in class NullableTypeHibernateExceptionpublic String getName()
Type
public Object deepCopyNotNull(Object value) throws HibernateException
deepCopyNotNull in class NullableTypeHibernateExceptionpublic int sqlType()
sqlType in class NullableTypepublic Object assemble(Serializable cached, SessionImplementor session, Object owner) throws HibernateException
Type
assemble in interface Typeassemble in class AbstractTypeHibernateExceptionpublic Serializable disassemble(Object value, SessionImplementor session) throws HibernateException
Type
disassemble in interface Typedisassemble in class AbstractTypeHibernateExceptionpublic boolean equals(Object object)
equals in class AbstractTypepublic int hashCode()
hashCode in class AbstractType
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||