Class ConvertibleToStringUserType<T>
- java.lang.Object
-
- com.atlassian.bamboo.persistence3.ConvertibleToStringUserType<T>
-
- All Implemented Interfaces:
Serializable,org.hibernate.usertype.UserType
- Direct Known Subclasses:
AuditLogEntityTypeUserType,BuildStateUserType,CapabilityScopeUserType,ChainStorageTagUserType,DeltaStateUserType,DeploymentVersionStateUserType,KeyUserType,LifeCycleStateUserType,ReasonForBuildUserType,ReleaseApprovalPrerequisiteUserType,ResultKeyUserType
public abstract class ConvertibleToStringUserType<T> extends Object implements org.hibernate.usertype.UserType, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConvertibleToStringUserType(Class<T> objectClass)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Objectassemble(Serializable cached, Object owner)ObjectdeepCopy(Object value)Serializabledisassemble(Object value)booleanequals(Object x, Object y)abstract TfromString(@NotNull String stringValue)inthashCode(Object x)booleanisMutable()ObjectnullSafeGet(ResultSet resultSet, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner)voidnullSafeSet(PreparedStatement preparedStatement, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session)Objectreplace(Object original, Object target, Object owner)Class<T>returnedClass()int[]sqlTypes()StringtoString(T object)
-
-
-
Method Detail
-
sqlTypes
public int[] sqlTypes()
- Specified by:
sqlTypesin interfaceorg.hibernate.usertype.UserType
-
returnedClass
public Class<T> returnedClass()
- Specified by:
returnedClassin interfaceorg.hibernate.usertype.UserType
-
equals
public boolean equals(Object x, Object y) throws org.hibernate.HibernateException
- Specified by:
equalsin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
nullSafeGet
public Object nullSafeGet(ResultSet resultSet, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) throws org.hibernate.HibernateException, SQLException
- Specified by:
nullSafeGetin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateExceptionSQLException
-
nullSafeSet
public void nullSafeSet(PreparedStatement preparedStatement, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws org.hibernate.HibernateException, SQLException
- Specified by:
nullSafeSetin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateExceptionSQLException
-
deepCopy
public Object deepCopy(Object value) throws org.hibernate.HibernateException
- Specified by:
deepCopyin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
isMutable
public boolean isMutable()
- Specified by:
isMutablein interfaceorg.hibernate.usertype.UserType
-
hashCode
public int hashCode(Object x) throws org.hibernate.HibernateException
- Specified by:
hashCodein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
disassemble
public Serializable disassemble(Object value) throws org.hibernate.HibernateException
- Specified by:
disassemblein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
assemble
public Object assemble(Serializable cached, Object owner) throws org.hibernate.HibernateException
- Specified by:
assemblein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
-