|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.type.AbstractStandardBasicType<T> org.hibernate.type.AbstractSingleColumnStandardBasicType<T> org.hibernate.type.SerializableType<T>
public class SerializableType<T extends Serializable>
A type that maps between a VARBINARY
and Serializable
classes.
INSTANCE
indicates a mapping using the Serializable
interface itself.SerializableType(Class)
indicates a mapping using the specific classClassLoader
to use during deserialization.
In the fist form we are always using the ClassLoader
of the JVM (Hibernate will always fallback to trying
its classloader as well). The second form is better at targeting the needed ClassLoader
actually needed.
Field Summary | |
---|---|
static SerializableType<Serializable> |
INSTANCE
|
Constructor Summary | |
---|---|
SerializableType(Class<T> serializableClass)
|
Method Summary | |
---|---|
String |
getName()
Returns the abbreviated name of the type. |
Methods inherited from class org.hibernate.type.AbstractSingleColumnStandardBasicType |
---|
nullSafeSet, sqlType |
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.SingleColumnType |
---|
fromStringValue, get, nullSafeGet, set, toString |
Methods inherited from interface org.hibernate.type.Type |
---|
assemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, disassemble, fromXMLNode, getColumnSpan, getHashCode, getHashCode, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeSet, replace, replace, resolve, semiResolve, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString |
Field Detail |
---|
public static final SerializableType<Serializable> INSTANCE
Constructor Detail |
---|
public SerializableType(Class<T> serializableClass)
Method Detail |
---|
public String getName()
Type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |