Package com.axelor.db.hibernate.type
Class ValueEnumType
- java.lang.Object
-
- com.axelor.db.hibernate.type.ValueEnumType
-
- All Implemented Interfaces:
Serializable
,DynamicParameterizedType
,ParameterizedType
,UserType
public class ValueEnumType extends Object implements DynamicParameterizedType, UserType, Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.usertype.DynamicParameterizedType
DynamicParameterizedType.ParameterType
-
-
Field Summary
-
Fields inherited from interface org.hibernate.usertype.DynamicParameterizedType
ACCESS_TYPE, ENTITY, IS_DYNAMIC, IS_PRIMARY_KEY, PARAMETER_TYPE, PROPERTY, RETURNED_CLASS, XPROPERTY
-
-
Constructor Summary
Constructors Constructor Description ValueEnumType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
assemble(Serializable cached, Object owner)
Object
deepCopy(Object value)
Serializable
disassemble(Object value)
boolean
equals(Object x, Object y)
int
hashCode(Object x)
boolean
isMutable()
Object
nullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor session, Object owner)
void
nullSafeSet(PreparedStatement st, Object value, int index, SharedSessionContractImplementor session)
Object
replace(Object original, Object target, Object owner)
Class<? extends ValueEnum<?>>
returnedClass()
void
setParameterValues(Properties parameters)
int[]
sqlTypes()
-
-
-
Method Detail
-
setParameterValues
public void setParameterValues(Properties parameters)
- Specified by:
setParameterValues
in interfaceParameterizedType
-
returnedClass
public Class<? extends ValueEnum<?>> returnedClass()
- Specified by:
returnedClass
in interfaceUserType
-
equals
public boolean equals(Object x, Object y) throws HibernateException
- Specified by:
equals
in interfaceUserType
- Throws:
HibernateException
-
hashCode
public int hashCode(Object x) throws HibernateException
- Specified by:
hashCode
in interfaceUserType
- Throws:
HibernateException
-
nullSafeGet
public Object nullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor session, Object owner) throws HibernateException, SQLException
- Specified by:
nullSafeGet
in interfaceUserType
- Throws:
HibernateException
SQLException
-
nullSafeSet
public void nullSafeSet(PreparedStatement st, Object value, int index, SharedSessionContractImplementor session) throws HibernateException, SQLException
- Specified by:
nullSafeSet
in interfaceUserType
- Throws:
HibernateException
SQLException
-
deepCopy
public Object deepCopy(Object value) throws HibernateException
- Specified by:
deepCopy
in interfaceUserType
- Throws:
HibernateException
-
disassemble
public Serializable disassemble(Object value) throws HibernateException
- Specified by:
disassemble
in interfaceUserType
- Throws:
HibernateException
-
assemble
public Object assemble(Serializable cached, Object owner) throws HibernateException
- Specified by:
assemble
in interfaceUserType
- Throws:
HibernateException
-
replace
public Object replace(Object original, Object target, Object owner) throws HibernateException
- Specified by:
replace
in interfaceUserType
- Throws:
HibernateException
-
-