public abstract class ImmutableType<T> extends Object implements org.hibernate.usertype.UserType
UserType.| Modifier | Constructor and Description |
|---|---|
protected |
ImmutableType(Class<T> clazz) |
| Modifier and Type | Method and Description |
|---|---|
Object |
assemble(Serializable cached,
Object owner) |
Object |
deepCopy(Object value) |
Serializable |
disassemble(Object o) |
boolean |
equals(Object x,
Object y) |
protected abstract T |
get(ResultSet rs,
String[] names,
org.hibernate.engine.spi.SessionImplementor session,
Object owner) |
int |
hashCode(Object x) |
boolean |
isMutable() |
Object |
nullSafeGet(ResultSet rs,
String[] names,
org.hibernate.engine.spi.SessionImplementor session,
Object owner) |
void |
nullSafeSet(PreparedStatement st,
Object value,
int index,
org.hibernate.engine.spi.SessionImplementor session) |
Object |
replace(Object o,
Object target,
Object owner) |
Class<T> |
returnedClass() |
protected abstract void |
set(PreparedStatement st,
T value,
int index,
org.hibernate.engine.spi.SessionImplementor session) |
public Object nullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SessionImplementor session, Object owner) throws SQLException
nullSafeGet in interface org.hibernate.usertype.UserTypeSQLExceptionpublic void nullSafeSet(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SessionImplementor session) throws SQLException
nullSafeSet in interface org.hibernate.usertype.UserTypeSQLExceptionprotected abstract T get(ResultSet rs, String[] names, org.hibernate.engine.spi.SessionImplementor session, Object owner) throws SQLException
SQLExceptionprotected abstract void set(PreparedStatement st, T value, int index, org.hibernate.engine.spi.SessionImplementor session) throws SQLException
SQLExceptionpublic Class<T> returnedClass()
returnedClass in interface org.hibernate.usertype.UserTypepublic boolean equals(Object x, Object y)
equals in interface org.hibernate.usertype.UserTypepublic int hashCode(Object x)
hashCode in interface org.hibernate.usertype.UserTypepublic Object deepCopy(Object value)
deepCopy in interface org.hibernate.usertype.UserTypepublic boolean isMutable()
isMutable in interface org.hibernate.usertype.UserTypepublic Serializable disassemble(Object o)
disassemble in interface org.hibernate.usertype.UserTypepublic Object assemble(Serializable cached, Object owner)
assemble in interface org.hibernate.usertype.UserTypeCopyright © 2017. All rights reserved.