|
|||||||||||
| 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.ImmutableType
net.sf.hibernate.type.PersistentEnumType
A type for Hibernate PersistentEnum
PersistentEnum,
Serialized Form| Constructor Summary | |
PersistentEnumType(Class enumClass)
Deprecated. |
|
| Method Summary | |
Object |
assemble(Serializable cached,
SessionImplementor session,
Object owner)
Deprecated. Reconstruct the object from its cached "disassembled" state. |
Serializable |
disassemble(Object value,
SessionImplementor session)
Deprecated. Return a cacheable "disassembled" representation of the object. |
boolean |
equals(Object object)
Deprecated. |
boolean |
equals(Object x,
Object y)
Deprecated. Compare two instances of the class mapped by this type for persistence "equality", ie. |
Object |
fromStringValue(String xml)
Deprecated. |
Object |
get(ResultSet rs,
String name)
Deprecated. |
Object |
getInstance(Integer code)
Deprecated. |
String |
getName()
Deprecated. Returns the abbreviated name of the type. |
Class |
getReturnedClass()
Deprecated. The class returned by nullSafeGet() methods. |
int |
hashCode()
Deprecated. |
String |
objectToSQLString(Object value)
Deprecated. String representation of the value, suitable for embedding in an SQL statement. |
void |
set(PreparedStatement st,
Object value,
int index)
Deprecated. |
int |
sqlType()
Deprecated. |
String |
toString(Object value)
Deprecated. |
| Methods inherited from class net.sf.hibernate.type.ImmutableType |
copy, deepCopyNotNull, 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 PersistentEnumType(Class enumClass)
throws MappingException
| Method Detail |
public Object get(ResultSet rs,
String name)
throws HibernateException,
SQLException
get in class NullableTypeHibernateException
SQLException
public Object getInstance(Integer code)
throws HibernateException
HibernateException
public boolean equals(Object x,
Object y)
Type
equals in interface Typex - y -
public Class getReturnedClass()
Type
getReturnedClass in interface Type
public void set(PreparedStatement st,
Object value,
int index)
throws SQLException
set in class NullableTypeSQLExceptionpublic int sqlType()
sqlType in class NullableTypepublic String getName()
Type
getName in interface Typepublic String toString(Object value)
toString in class NullableType
public Object fromStringValue(String xml)
throws HibernateException
fromStringValue in class NullableTypeHibernateException
public Object assemble(Serializable cached,
SessionImplementor session,
Object owner)
throws HibernateException
Type
assemble in interface Typeassemble in class AbstractTypeHibernateException
public Serializable disassemble(Object value,
SessionImplementor session)
throws HibernateException
Type
disassemble in interface Typedisassemble in class AbstractTypeHibernateException
public String objectToSQLString(Object value)
throws Exception
LiteralType
objectToSQLString in interface LiteralTypevalue -
Exceptionpublic 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 | ||||||||||