public abstract class AbstractMultiColumnUserType<T> extends AbstractUserType implements org.hibernate.usertype.CompositeUserType, Serializable
Constructor and Description |
---|
AbstractMultiColumnUserType() |
Modifier and Type | Method and Description |
---|---|
Object |
assemble(Serializable cached,
org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object owner) |
Serializable |
disassemble(Object value,
org.hibernate.engine.spi.SharedSessionContractImplementor session) |
protected org.hibernate.engine.spi.SharedSessionContractImplementor |
doWrapSession(org.hibernate.engine.spi.SharedSessionContractImplementor session) |
protected abstract T |
fromConvertedColumns(Object[] convertedColumns) |
protected abstract ColumnMapper<?,?>[] |
getColumnMappers() |
String[] |
getPropertyNames() |
org.hibernate.type.Type[] |
getPropertyTypes() |
Object |
getPropertyValue(Object component,
int property) |
protected void |
initialise() |
T |
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,
org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object owner) |
Class<T> |
returnedClass() |
void |
setPropertyValue(Object component,
int property,
Object value) |
int[] |
sqlTypes() |
protected abstract Object[] |
toConvertedColumns(T value) |
afterNullSafeOperation, assemble, beforeNullSafeOperation, deepCopy, disassemble, equals, hashCode, isMutable, replace
public AbstractMultiColumnUserType()
protected final void initialise()
public int[] sqlTypes()
public Class<T> returnedClass()
returnedClass
in interface org.hibernate.usertype.CompositeUserType
protected abstract ColumnMapper<?,?>[] getColumnMappers()
public T nullSafeGet(ResultSet resultSet, String[] strings, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object object) throws SQLException
nullSafeGet
in interface org.hibernate.usertype.CompositeUserType
SQLException
protected abstract T fromConvertedColumns(Object[] convertedColumns)
protected abstract Object[] toConvertedColumns(T value)
public void nullSafeSet(PreparedStatement preparedStatement, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws SQLException
nullSafeSet
in interface org.hibernate.usertype.CompositeUserType
SQLException
protected org.hibernate.engine.spi.SharedSessionContractImplementor doWrapSession(org.hibernate.engine.spi.SharedSessionContractImplementor session)
public String[] getPropertyNames()
getPropertyNames
in interface org.hibernate.usertype.CompositeUserType
public org.hibernate.type.Type[] getPropertyTypes()
getPropertyTypes
in interface org.hibernate.usertype.CompositeUserType
public Object getPropertyValue(Object component, int property) throws org.hibernate.HibernateException
getPropertyValue
in interface org.hibernate.usertype.CompositeUserType
org.hibernate.HibernateException
public void setPropertyValue(Object component, int property, Object value) throws org.hibernate.HibernateException
setPropertyValue
in interface org.hibernate.usertype.CompositeUserType
org.hibernate.HibernateException
public Serializable disassemble(Object value, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws org.hibernate.HibernateException
disassemble
in interface org.hibernate.usertype.CompositeUserType
org.hibernate.HibernateException
public Object assemble(Serializable cached, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) throws org.hibernate.HibernateException
assemble
in interface org.hibernate.usertype.CompositeUserType
org.hibernate.HibernateException
Copyright © 2010–2018 Jadira Systems. All rights reserved.