Package net.binis.codegen.hibernate
Class CodeEnumType<T extends net.binis.codegen.objects.base.enumeration.CodeEnum>
java.lang.Object
net.binis.codegen.hibernate.CodeEnumType<T>
- All Implemented Interfaces:
Serializable,org.hibernate.type.spi.TypeConfigurationAware,org.hibernate.usertype.DynamicParameterizedType,org.hibernate.usertype.EnhancedUserType,org.hibernate.usertype.LoggableUserType,org.hibernate.usertype.ParameterizedType,org.hibernate.usertype.UserType
public class CodeEnumType<T extends net.binis.codegen.objects.base.enumeration.CodeEnum> extends Object implements org.hibernate.usertype.EnhancedUserType, org.hibernate.usertype.DynamicParameterizedType, org.hibernate.usertype.LoggableUserType, org.hibernate.type.spi.TypeConfigurationAware, Serializable
- See Also:
- Serialized Form
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CodeEnumType() -
Method Summary
Modifier and Type Method Description Objectassemble(Serializable cached, Object owner)ObjectdeepCopy(Object value)Serializabledisassemble(Object value)booleanequals(Object x, Object y)ObjectfromXMLString(String xmlValue)org.hibernate.type.spi.TypeConfigurationgetTypeConfiguration()inthashCode(Object x)booleanisMutable()booleanisOrdinal()ObjectnullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner)voidnullSafeSet(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session)StringobjectToSQLString(Object value)Objectreplace(Object original, Object target, Object owner)Class<? extends net.binis.codegen.objects.base.enumeration.CodeEnum>returnedClass()voidsetParameterValues(Properties parameters)voidsetTypeConfiguration(org.hibernate.type.spi.TypeConfiguration typeConfiguration)int[]sqlTypes()StringtoLoggableString(Object value, org.hibernate.engine.spi.SessionFactoryImplementor factory)StringtoXMLString(Object value)
-
Field Details
-
ENUM
- See Also:
- Constant Field Values
-
NAMED
- See Also:
- Constant Field Values
-
TYPE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
CodeEnumType
public CodeEnumType()
-
-
Method Details
-
setParameterValues
- Specified by:
setParameterValuesin interfaceorg.hibernate.usertype.ParameterizedType
-
sqlTypes
public int[] sqlTypes()- Specified by:
sqlTypesin interfaceorg.hibernate.usertype.UserType
-
returnedClass
- Specified by:
returnedClassin interfaceorg.hibernate.usertype.UserType
-
equals
- Specified by:
equalsin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
hashCode
- Specified by:
hashCodein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
nullSafeGet
public Object nullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) throws SQLException- Specified by:
nullSafeGetin interfaceorg.hibernate.usertype.UserType- Throws:
SQLException
-
nullSafeSet
public void nullSafeSet(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws org.hibernate.HibernateException, SQLException- Specified by:
nullSafeSetin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateExceptionSQLException
-
deepCopy
- Specified by:
deepCopyin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
isMutable
public boolean isMutable()- Specified by:
isMutablein interfaceorg.hibernate.usertype.UserType
-
disassemble
- Specified by:
disassemblein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
assemble
- Specified by:
assemblein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
replace
public Object replace(Object original, Object target, Object owner) throws org.hibernate.HibernateException- Specified by:
replacein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
getTypeConfiguration
public org.hibernate.type.spi.TypeConfiguration getTypeConfiguration()- Specified by:
getTypeConfigurationin interfaceorg.hibernate.type.spi.TypeConfigurationAware
-
setTypeConfiguration
public void setTypeConfiguration(org.hibernate.type.spi.TypeConfiguration typeConfiguration)- Specified by:
setTypeConfigurationin interfaceorg.hibernate.type.spi.TypeConfigurationAware
-
objectToSQLString
- Specified by:
objectToSQLStringin interfaceorg.hibernate.usertype.EnhancedUserType
-
toXMLString
- Specified by:
toXMLStringin interfaceorg.hibernate.usertype.EnhancedUserType
-
fromXMLString
- Specified by:
fromXMLStringin interfaceorg.hibernate.usertype.EnhancedUserType
-
toLoggableString
public String toLoggableString(Object value, org.hibernate.engine.spi.SessionFactoryImplementor factory)- Specified by:
toLoggableStringin interfaceorg.hibernate.usertype.LoggableUserType
-
isOrdinal
public boolean isOrdinal()
-