T
- Java type to create Hibernate user defined type for.public abstract class ObjectHbm<T> extends Object implements org.hibernate.usertype.UserType
Modifier and Type | Field and Description |
---|---|
private Class<T> |
clazz
Type to create Hibernate user type for.
|
private js.converter.Converter |
converter
Converter instance.
|
private static int[] |
SQL_TYPES
Supported SQL types.
|
Constructor and Description |
---|
ObjectHbm(Class<T> clazz)
Create Hibernate user defined type for request Java class.
|
Modifier and Type | Method and Description |
---|---|
Object |
assemble(Serializable cached,
Object owner) |
Object |
deepCopy(Object object) |
Serializable |
disassemble(Object object) |
boolean |
equals(Object x,
Object y) |
int |
hashCode(Object x) |
boolean |
isMutable() |
Object |
nullSafeGet(ResultSet resultSet,
String[] values,
Object owner) |
void |
nullSafeSet(PreparedStatement preparedStatement,
Object object,
int index) |
Object |
replace(Object original,
Object target,
Object owner) |
Class<?> |
returnedClass() |
int[] |
sqlTypes() |
private js.converter.Converter converter
private static final int[] SQL_TYPES
public Object assemble(Serializable cached, Object owner) throws org.hibernate.HibernateException
assemble
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public Object deepCopy(Object object) throws org.hibernate.HibernateException
deepCopy
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public Serializable disassemble(Object object) throws org.hibernate.HibernateException
disassemble
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public boolean equals(Object x, Object y) throws org.hibernate.HibernateException
equals
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public int hashCode(Object x) throws org.hibernate.HibernateException
hashCode
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public boolean isMutable()
isMutable
in interface org.hibernate.usertype.UserType
public Object nullSafeGet(ResultSet resultSet, String[] values, Object owner) throws org.hibernate.HibernateException, SQLException
nullSafeGet
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
SQLException
public void nullSafeSet(PreparedStatement preparedStatement, Object object, int index) throws org.hibernate.HibernateException, SQLException
nullSafeSet
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
SQLException
public Object replace(Object original, Object target, Object owner) throws org.hibernate.HibernateException
replace
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public Class<?> returnedClass()
returnedClass
in interface org.hibernate.usertype.UserType
public int[] sqlTypes()
sqlTypes
in interface org.hibernate.usertype.UserType
Copyright © 2019. All rights reserved.