public abstract class AbstractMapUserType<K,V> extends AbstractUserType implements org.hibernate.usertype.UserType, Serializable
Constructor and Description |
---|
AbstractMapUserType() |
Modifier and Type | Method and Description |
---|---|
Object |
assemble(Serializable value,
Object o) |
Map<String,?> |
deepCopy(Object value) |
Serializable |
disassemble(Object value) |
protected Map<K,V> |
doNullSafeGet(ResultSet resultSet,
String[] strings,
org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object object) |
protected void |
doNullSafeSet(PreparedStatement preparedStatement,
Map<K,V> value,
int index,
org.hibernate.engine.spi.SharedSessionContractImplementor session) |
int |
hashCode(Object x) |
boolean |
isMutable() |
Map<K,V> |
nullSafeGet(ResultSet resultSet,
String[] strings,
org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object object) |
void |
nullSafeSet(PreparedStatement preparedStatement,
Object value,
int index,
org.hibernate.engine.spi.SharedSessionContractImplementor session) |
Object |
replace(Object original,
Object target,
Object owner) |
Class<Map> |
returnedClass() |
int[] |
sqlTypes() |
protected abstract Map<K,V> |
toMap(String value) |
protected abstract String |
toString(Map<K,V> map) |
afterNullSafeOperation, beforeNullSafeOperation, equals
public AbstractMapUserType()
public int[] sqlTypes()
sqlTypes
in interface org.hibernate.usertype.UserType
public boolean isMutable()
isMutable
in interface org.hibernate.usertype.UserType
isMutable
in class AbstractUserType
public Class<Map> returnedClass()
returnedClass
in interface org.hibernate.usertype.UserType
public int hashCode(Object x) throws org.hibernate.HibernateException
hashCode
in interface org.hibernate.usertype.UserType
hashCode
in class AbstractUserType
org.hibernate.HibernateException
public Map<K,V> nullSafeGet(ResultSet resultSet, String[] strings, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object object) throws SQLException
nullSafeGet
in interface org.hibernate.usertype.UserType
SQLException
protected Map<K,V> doNullSafeGet(ResultSet resultSet, String[] strings, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object object) throws SQLException
SQLException
public void nullSafeSet(PreparedStatement preparedStatement, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws SQLException
nullSafeSet
in interface org.hibernate.usertype.UserType
SQLException
protected void doNullSafeSet(PreparedStatement preparedStatement, Map<K,V> value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws SQLException
SQLException
public Map<String,?> deepCopy(Object value) throws org.hibernate.HibernateException
deepCopy
in interface org.hibernate.usertype.UserType
deepCopy
in class AbstractUserType
org.hibernate.HibernateException
public Serializable disassemble(Object value) throws org.hibernate.HibernateException
disassemble
in interface org.hibernate.usertype.UserType
disassemble
in class AbstractUserType
org.hibernate.HibernateException
public Object assemble(Serializable value, Object o) throws org.hibernate.HibernateException
assemble
in interface org.hibernate.usertype.UserType
assemble
in class AbstractUserType
org.hibernate.HibernateException
public Object replace(Object original, Object target, Object owner) throws org.hibernate.HibernateException
replace
in interface org.hibernate.usertype.UserType
replace
in class AbstractUserType
org.hibernate.HibernateException
Copyright © 2010–2018 Jadira Systems. All rights reserved.