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 Objectassemble(Serializable cached, Object owner)ObjectdeepCopy(Object value)Serializabledisassemble(Object value)booleanequals(Object x, Object y)inthashCode(Object x)booleanisMutable()ObjectnullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor session, Object owner)voidnullSafeSet(PreparedStatement st, Object value, int index, SharedSessionContractImplementor session)Objectreplace(Object original, Object target, Object owner)Class<? extends ValueEnum<?>>returnedClass()voidsetParameterValues(Properties parameters)int[]sqlTypes()
-
-
-
Method Detail
-
setParameterValues
public void setParameterValues(Properties parameters)
- Specified by:
setParameterValuesin interfaceParameterizedType
-
returnedClass
public Class<? extends ValueEnum<?>> returnedClass()
- Specified by:
returnedClassin interfaceUserType
-
equals
public boolean equals(Object x, Object y) throws HibernateException
- Specified by:
equalsin interfaceUserType- Throws:
HibernateException
-
hashCode
public int hashCode(Object x) throws HibernateException
- Specified by:
hashCodein interfaceUserType- Throws:
HibernateException
-
nullSafeGet
public Object nullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor session, Object owner) throws HibernateException, SQLException
- Specified by:
nullSafeGetin interfaceUserType- Throws:
HibernateExceptionSQLException
-
nullSafeSet
public void nullSafeSet(PreparedStatement st, Object value, int index, SharedSessionContractImplementor session) throws HibernateException, SQLException
- Specified by:
nullSafeSetin interfaceUserType- Throws:
HibernateExceptionSQLException
-
deepCopy
public Object deepCopy(Object value) throws HibernateException
- Specified by:
deepCopyin interfaceUserType- Throws:
HibernateException
-
disassemble
public Serializable disassemble(Object value) throws HibernateException
- Specified by:
disassemblein interfaceUserType- Throws:
HibernateException
-
assemble
public Object assemble(Serializable cached, Object owner) throws HibernateException
- Specified by:
assemblein interfaceUserType- Throws:
HibernateException
-
replace
public Object replace(Object original, Object target, Object owner) throws HibernateException
- Specified by:
replacein interfaceUserType- Throws:
HibernateException
-
-