public class GenericEnumType<E extends java.lang.Enum<E>>
extends java.lang.Object
implements org.hibernate.usertype.UserType, org.hibernate.usertype.ParameterizedType
Constructor and Description |
---|
GenericEnumType() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
assemble(java.io.Serializable cached,
java.lang.Object owner) |
java.lang.Object |
deepCopy(java.lang.Object obj) |
java.io.Serializable |
disassemble(java.lang.Object obj) |
boolean |
equals(java.lang.Object obj1,
java.lang.Object obj2) |
java.lang.Class<? extends Unit> |
getQuantityClass() |
int |
hashCode(java.lang.Object obj) |
boolean |
isMutable() |
java.lang.Object |
nullSafeGet(java.sql.ResultSet rs,
java.lang.String[] names,
java.lang.Object owner) |
void |
nullSafeSet(java.sql.PreparedStatement ps,
java.lang.Object obj,
int index) |
java.lang.Object |
replace(java.lang.Object original,
java.lang.Object target,
java.lang.Object owner) |
java.lang.Class<E> |
returnedClass() |
void |
setParameterValues(java.util.Properties parameters) |
int[] |
sqlTypes() |
public void setParameterValues(java.util.Properties parameters)
setParameterValues
in interface org.hibernate.usertype.ParameterizedType
public java.lang.Object assemble(java.io.Serializable cached, java.lang.Object owner) throws org.hibernate.HibernateException
assemble
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public java.lang.Object deepCopy(java.lang.Object obj) throws org.hibernate.HibernateException
deepCopy
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public java.io.Serializable disassemble(java.lang.Object obj) throws org.hibernate.HibernateException
disassemble
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public boolean equals(java.lang.Object obj1, java.lang.Object obj2) throws org.hibernate.HibernateException
equals
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public int hashCode(java.lang.Object obj) throws org.hibernate.HibernateException
hashCode
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public boolean isMutable()
isMutable
in interface org.hibernate.usertype.UserType
public java.lang.Object nullSafeGet(java.sql.ResultSet rs, java.lang.String[] names, java.lang.Object owner) throws org.hibernate.HibernateException, java.sql.SQLException
nullSafeGet
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
java.sql.SQLException
public void nullSafeSet(java.sql.PreparedStatement ps, java.lang.Object obj, int index) throws org.hibernate.HibernateException, java.sql.SQLException
nullSafeSet
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
java.sql.SQLException
public java.lang.Object replace(java.lang.Object original, java.lang.Object target, java.lang.Object owner) throws org.hibernate.HibernateException
replace
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public java.lang.Class<E> returnedClass()
returnedClass
in interface org.hibernate.usertype.UserType
public java.lang.Class<? extends Unit> getQuantityClass()
public int[] sqlTypes()
sqlTypes
in interface org.hibernate.usertype.UserType