public class GenericUserType extends Object implements org.hibernate.usertype.UserType, org.hibernate.usertype.ParameterizedType
This is a Hibernate subclass that wraps any user defined data type. This way it can be persisted into the data base easly.
TypeAdaptor| Constructor and Description |
|---|
GenericUserType() |
| Modifier and Type | Method and Description |
|---|---|
Object |
assemble(Serializable arg0,
Object arg1) |
Object |
deepCopy(Object arg0) |
Serializable |
disassemble(Object arg0) |
boolean |
equals(Object arg0,
Object arg1) |
int |
hashCode(Object arg0) |
boolean |
isMutable() |
Object |
nullSafeGet(ResultSet arg0,
String[] arg1,
Object arg2) |
Object |
nullSafeGet(ResultSet resultSet,
String[] strings,
org.hibernate.engine.spi.SharedSessionContractImplementor sharedSessionContractImplementor,
Object o) |
void |
nullSafeSet(PreparedStatement arg0,
Object arg1,
int i) |
void |
nullSafeSet(PreparedStatement preparedStatement,
Object o,
int i,
org.hibernate.engine.spi.SharedSessionContractImplementor sharedSessionContractImplementor) |
Object |
replace(Object arg0,
Object arg1,
Object arg2) |
Class |
returnedClass() |
void |
setParameterValues(Properties params) |
int[] |
sqlTypes() |
public GenericUserType()
public void setParameterValues(Properties params)
setParameterValues in interface org.hibernate.usertype.ParameterizedTypepublic Object assemble(Serializable arg0, Object arg1) throws org.hibernate.HibernateException
assemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic Serializable disassemble(Object arg0) throws org.hibernate.HibernateException
disassemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic Object deepCopy(Object arg0) throws org.hibernate.HibernateException
deepCopy in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic boolean equals(Object arg0, Object arg1) throws org.hibernate.HibernateException
equals in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic int hashCode(Object arg0) throws org.hibernate.HibernateException
hashCode in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic Object nullSafeGet(ResultSet resultSet, String[] strings, org.hibernate.engine.spi.SharedSessionContractImplementor sharedSessionContractImplementor, Object o) throws org.hibernate.HibernateException, SQLException
nullSafeGet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionSQLExceptionpublic void nullSafeSet(PreparedStatement preparedStatement, Object o, int i, org.hibernate.engine.spi.SharedSessionContractImplementor sharedSessionContractImplementor) throws org.hibernate.HibernateException, SQLException
nullSafeSet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionSQLExceptionpublic boolean isMutable()
isMutable in interface org.hibernate.usertype.UserTypepublic Object nullSafeGet(ResultSet arg0, String[] arg1, Object arg2) throws org.hibernate.HibernateException, SQLException
org.hibernate.HibernateExceptionSQLExceptionpublic void nullSafeSet(PreparedStatement arg0, Object arg1, int i) throws org.hibernate.HibernateException, SQLException
org.hibernate.HibernateExceptionSQLExceptionpublic Object replace(Object arg0, Object arg1, Object arg2) throws org.hibernate.HibernateException
replace in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic Class returnedClass()
returnedClass in interface org.hibernate.usertype.UserTypepublic int[] sqlTypes()
sqlTypes in interface org.hibernate.usertype.UserTypeCopyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.