com.atlassian.confluence.impl.journal
Class JournalIdentifierUserType

java.lang.Object
  extended by com.atlassian.confluence.impl.journal.JournalIdentifierUserType
All Implemented Interfaces:
net.sf.hibernate.UserType

public class JournalIdentifierUserType
extends Object
implements net.sf.hibernate.UserType

Converts JournalIdentifiers to and from strings in the DB.

Since:
5.6

Constructor Summary
JournalIdentifierUserType()
           
 
Method Summary
 Object deepCopy(Object object)
           
 boolean equals(Object x, Object y)
           
 boolean isMutable()
           
 JournalIdentifier nullSafeGet(ResultSet rs, String[] columns, Object owner)
           
 void nullSafeSet(PreparedStatement ps, Object value, int index)
           
 Class returnedClass()
           
 int[] sqlTypes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JournalIdentifierUserType

public JournalIdentifierUserType()
Method Detail

sqlTypes

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

returnedClass

public Class returnedClass()
Specified by:
returnedClass in interface net.sf.hibernate.UserType

equals

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

nullSafeGet

public JournalIdentifier nullSafeGet(ResultSet rs,
                                     String[] columns,
                                     Object owner)
                              throws net.sf.hibernate.HibernateException,
                                     SQLException
Specified by:
nullSafeGet in interface net.sf.hibernate.UserType
Throws:
net.sf.hibernate.HibernateException
SQLException

nullSafeSet

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

deepCopy

public Object deepCopy(Object object)
                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 © 2003–2015 Atlassian. All rights reserved.