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.SharedSessionContractImplementor session,
Object owner) |
int |
hashCode(Object x) |
boolean |
isMutable() |
Object |
nullSafeGet(ResultSet rs,
String[] names,
org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object owner) |
void |
nullSafeSet(PreparedStatement st,
Object value,
int index,
org.hibernate.engine.spi.SharedSessionContractImplementor 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.SharedSessionContractImplementor session) |
public Object nullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) throws SQLException
nullSafeGet
in interface org.hibernate.usertype.UserType
SQLException
public void nullSafeSet(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws SQLException
nullSafeSet
in interface org.hibernate.usertype.UserType
SQLException
protected abstract T get(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) throws SQLException
SQLException
protected abstract void set(PreparedStatement st, T value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws SQLException
SQLException
public Class<T> returnedClass()
returnedClass
in interface org.hibernate.usertype.UserType
public boolean equals(Object x, Object y)
equals
in interface org.hibernate.usertype.UserType
public int hashCode(Object x)
hashCode
in interface org.hibernate.usertype.UserType
public Object deepCopy(Object value)
deepCopy
in interface org.hibernate.usertype.UserType
public boolean isMutable()
isMutable
in interface org.hibernate.usertype.UserType
public Serializable disassemble(Object o)
disassemble
in interface org.hibernate.usertype.UserType
public Object assemble(Serializable cached, Object owner)
assemble
in interface org.hibernate.usertype.UserType
Copyright © 2017. All rights reserved.