Package it.ovunque.bd
Class EnumeraHibernate<E extends Enum<E>>
java.lang.Object
it.ovunque.bd.EnumeraHibernate<E>
- All Implemented Interfaces:
org.hibernate.usertype.ParameterizedType,org.hibernate.usertype.UserType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassemble(Serializable memorizzato, Object proprietario) disassemble(Object valore) booleanintbooleannullSafeGet(ResultSet risultati, String[] nomiColonne, Object proprietario) voidnullSafeSet(PreparedStatement istruzioneSql, Object valore, int indice) Class<?>voidsetParameterValues(Properties param) int[]sqlTypes()
-
Constructor Details
-
EnumeraHibernate
public EnumeraHibernate()
-
-
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
-
nullSafeGet
public Object nullSafeGet(ResultSet risultati, String[] nomiColonne, Object proprietario) throws org.hibernate.HibernateException, SQLException - Specified by:
nullSafeGetin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateExceptionSQLException
-
nullSafeSet
public void nullSafeSet(PreparedStatement istruzioneSql, Object valore, int indice) 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
-
assemble
public Object assemble(Serializable memorizzato, Object proprietario) throws org.hibernate.HibernateException - Specified by:
assemblein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
disassemble
- Specified by:
disassemblein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
replace
public Object replace(Object originale, Object destinazione, Object proprietario) throws org.hibernate.HibernateException - Specified by:
replacein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
hashCode
- Specified by:
hashCodein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
equals
- Specified by:
equalsin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-