Class HibernateUserType
- java.lang.Object
-
- com.atlassian.confluence.impl.hibernate.HibernateUserType
-
- All Implemented Interfaces:
Serializable
,org.hibernate.usertype.UserType
- Direct Known Subclasses:
BodyTypeUserType
,ContentTypeEnumUserType
,EnumPersistentType
,InstantType
,JournalIdentifierUserType
,NamespaceUserType
,RelatableEntityTypeEnumUserType
,SpaceStatusUserType
,SpaceTypeUserType
,UserKeyUserType
public abstract class HibernateUserType extends Object implements org.hibernate.usertype.UserType, Serializable
Base class for Hibernate UserType objects in Confluence.- Since:
- 6.1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HibernateUserType()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Object
assemble(Serializable cached, Object owner)
Serializable
disassemble(Object value)
int
hashCode(Object x)
Object
nullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner)
abstract Object
nullSafeGetImpl(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)
abstract void
nullSafeSetImpl(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session)
Object
replace(Object original, Object target, Object owner)
-
-
-
Method Detail
-
nullSafeGetImpl
public abstract Object nullSafeGetImpl(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) throws SQLException
- Throws:
SQLException
-
nullSafeSetImpl
public abstract void nullSafeSetImpl(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws SQLException
- Throws:
SQLException
-
nullSafeGet
public final Object nullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) throws org.hibernate.HibernateException, SQLException
- Specified by:
nullSafeGet
in interfaceorg.hibernate.usertype.UserType
- Throws:
org.hibernate.HibernateException
SQLException
-
nullSafeSet
public final void nullSafeSet(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws org.hibernate.HibernateException, SQLException
- Specified by:
nullSafeSet
in interfaceorg.hibernate.usertype.UserType
- Throws:
org.hibernate.HibernateException
SQLException
-
hashCode
public int hashCode(Object x) throws org.hibernate.HibernateException
- Specified by:
hashCode
in interfaceorg.hibernate.usertype.UserType
- Throws:
org.hibernate.HibernateException
-
disassemble
public Serializable disassemble(Object value) throws org.hibernate.HibernateException
- Specified by:
disassemble
in interfaceorg.hibernate.usertype.UserType
- Throws:
org.hibernate.HibernateException
-
assemble
public Object assemble(Serializable cached, Object owner) throws org.hibernate.HibernateException
- Specified by:
assemble
in interfaceorg.hibernate.usertype.UserType
- Throws:
org.hibernate.HibernateException
-
-