com.atlassian.bamboo.persistence3
Class ConvertibleToStringUserType<T>

java.lang.Object
  extended by com.atlassian.bamboo.persistence3.ConvertibleToStringUserType<T>
All Implemented Interfaces:
net.sf.hibernate.UserType
Direct Known Subclasses:
AuditLogEntityTypeUserType, BuildStateUserType, CapabilityScopeUserType, DeltaStateUserType, DeploymentVersionStateUserType, KeyUserType, LifeCycleStateUserType, PlanResultKeyUserType, ReasonForBuildUserType, ResultKeyUserType

public abstract class ConvertibleToStringUserType<T>
extends java.lang.Object
implements net.sf.hibernate.UserType


Constructor Summary
protected ConvertibleToStringUserType(java.lang.Class<T> objectClass)
           
 
Method Summary
 java.lang.Object deepCopy(java.lang.Object value)
           
 boolean equals(java.lang.Object x, java.lang.Object y)
           
abstract  T fromString(java.lang.String stringValue)
           
 boolean isMutable()
           
 java.lang.Object nullSafeGet(java.sql.ResultSet resultSet, java.lang.String[] names, java.lang.Object owner)
           
 void nullSafeSet(java.sql.PreparedStatement preparedStatement, java.lang.Object value, int index)
           
 java.lang.Class<T> returnedClass()
           
 int[] sqlTypes()
           
 java.lang.String toString(T object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertibleToStringUserType

protected ConvertibleToStringUserType(java.lang.Class<T> objectClass)
Method Detail

sqlTypes

public int[] sqlTypes()
Specified by:
sqlTypes in interface net.sf.hibernate.UserType

returnedClass

public java.lang.Class<T> returnedClass()
Specified by:
returnedClass in interface net.sf.hibernate.UserType

equals

public boolean equals(java.lang.Object x,
                      java.lang.Object y)
               throws net.sf.hibernate.HibernateException
Specified by:
equals in interface net.sf.hibernate.UserType
Throws:
net.sf.hibernate.HibernateException

nullSafeGet

public java.lang.Object nullSafeGet(java.sql.ResultSet resultSet,
                                    java.lang.String[] names,
                                    java.lang.Object owner)
                             throws net.sf.hibernate.HibernateException,
                                    java.sql.SQLException
Specified by:
nullSafeGet in interface net.sf.hibernate.UserType
Throws:
net.sf.hibernate.HibernateException
java.sql.SQLException

fromString

public abstract T fromString(@NotNull
                             java.lang.String stringValue)

toString

public java.lang.String toString(@NotNull
                                 T object)

nullSafeSet

public void nullSafeSet(java.sql.PreparedStatement preparedStatement,
                        java.lang.Object value,
                        int index)
                 throws net.sf.hibernate.HibernateException,
                        java.sql.SQLException
Specified by:
nullSafeSet in interface net.sf.hibernate.UserType
Throws:
net.sf.hibernate.HibernateException
java.sql.SQLException

deepCopy

public java.lang.Object deepCopy(java.lang.Object value)
                          throws net.sf.hibernate.HibernateException
Specified by:
deepCopy in interface net.sf.hibernate.UserType
Throws:
net.sf.hibernate.HibernateException

isMutable

public boolean isMutable()
Specified by:
isMutable in interface net.sf.hibernate.UserType


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.