public abstract class AbstractEnumUserType<T extends Enum> extends Object implements org.hibernate.usertype.EnhancedUserType, ParameterizedType
Constructor and Description |
---|
AbstractEnumUserType() |
public abstract String getDefaultValue()
public abstract int getType()
public Class returnedClass()
returnedClass
in interface org.hibernate.usertype.UserType
public boolean isMutable()
isMutable
in interface org.hibernate.usertype.UserType
public Object nullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SessionImplementor sessionImplementor, Object owner) throws org.hibernate.HibernateException, SQLException
nullSafeGet
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
SQLException
public void nullSafeSet(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SessionImplementor session) throws org.hibernate.HibernateException, SQLException
nullSafeSet
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
SQLException
public Object assemble(Serializable cached, Object owner) throws org.hibernate.HibernateException
assemble
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public Serializable disassemble(Object value) throws org.hibernate.HibernateException
disassemble
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public Object deepCopy(Object value) throws org.hibernate.HibernateException
deepCopy
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public boolean equals(Object x, Object y) throws org.hibernate.HibernateException
equals
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public int hashCode(Object x) throws org.hibernate.HibernateException
hashCode
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public Object replace(Object original, Object target, Object owner) throws org.hibernate.HibernateException
replace
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public String objectToSQLString(Object value)
objectToSQLString
in interface org.hibernate.usertype.EnhancedUserType
public String toXMLString(Object value)
toXMLString
in interface org.hibernate.usertype.EnhancedUserType
public Object fromXMLString(String xmlValue)
fromXMLString
in interface org.hibernate.usertype.EnhancedUserType
public Type[] getActualTypeArguments()
getActualTypeArguments
in interface ParameterizedType
public Type getRawType()
getRawType
in interface ParameterizedType
public Type getOwnerType()
getOwnerType
in interface ParameterizedType
public int[] sqlTypes()
sqlTypes
in interface org.hibernate.usertype.UserType
Copyright (c) 2013-2014 Jama Software, Inc. All Rights Reserved.