org.archiviststoolkit.hibernate
Class AuditInfoType

java.lang.Object
  extended by org.archiviststoolkit.hibernate.AuditInfoType
All Implemented Interfaces:
org.hibernate.usertype.CompositeUserType

public class AuditInfoType
extends java.lang.Object
implements org.hibernate.usertype.CompositeUserType


Field Summary
static int CREATED
           
static int CREATED_BY
           
static int LAST_UPDATED
           
static int LAST_UPDATED_BY
           
 
Constructor Summary
AuditInfoType()
           
 
Method Summary
 java.lang.Object assemble(java.io.Serializable serializable, java.lang.Object object)
           
 java.lang.Object assemble(java.io.Serializable serializable, org.hibernate.engine.SessionImplementor sessionImplementor, java.lang.Object object)
           
 java.lang.Object deepCopy(java.lang.Object value)
           
 java.io.Serializable disassemble(java.lang.Object object)
           
 java.io.Serializable disassemble(java.lang.Object object, org.hibernate.engine.SessionImplementor sessionImplementor)
           
 boolean equals(java.lang.Object x, java.lang.Object y)
           
 java.lang.String[] getPropertyNames()
           
 org.hibernate.type.Type[] getPropertyTypes()
           
 java.lang.Object getPropertyValue(java.lang.Object object, int property)
           
 int hashCode(java.lang.Object object)
           
 boolean isMutable()
           
 java.lang.Object nullSafeGet(java.sql.ResultSet rs, java.lang.String[] names, org.hibernate.engine.SessionImplementor sessionImplementor, java.lang.Object owner)
           
 void nullSafeSet(java.sql.PreparedStatement st, java.lang.Object value, int index, org.hibernate.engine.SessionImplementor sessionImplementor)
           
 java.lang.Object replace(java.lang.Object object, java.lang.Object object1, java.lang.Object object2)
           
 java.lang.Object replace(java.lang.Object object, java.lang.Object object1, org.hibernate.engine.SessionImplementor sessionImplementor, java.lang.Object object2)
           
 java.lang.Class returnedClass()
           
 void setPropertyValue(java.lang.Object object, int property, java.lang.Object value)
           
 int[] sqlTypes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAST_UPDATED

public static final int LAST_UPDATED
See Also:
Constant Field Values

CREATED

public static final int CREATED
See Also:
Constant Field Values

LAST_UPDATED_BY

public static final int LAST_UPDATED_BY
See Also:
Constant Field Values

CREATED_BY

public static final int CREATED_BY
See Also:
Constant Field Values
Constructor Detail

AuditInfoType

public AuditInfoType()
Method Detail

sqlTypes

public int[] sqlTypes()

isMutable

public boolean isMutable()
Specified by:
isMutable in interface org.hibernate.usertype.CompositeUserType

disassemble

public java.io.Serializable disassemble(java.lang.Object object,
                                        org.hibernate.engine.SessionImplementor sessionImplementor)
                                 throws org.hibernate.HibernateException
Specified by:
disassemble in interface org.hibernate.usertype.CompositeUserType
Throws:
org.hibernate.HibernateException

assemble

public java.lang.Object assemble(java.io.Serializable serializable,
                                 org.hibernate.engine.SessionImplementor sessionImplementor,
                                 java.lang.Object object)
                          throws org.hibernate.HibernateException
Specified by:
assemble in interface org.hibernate.usertype.CompositeUserType
Throws:
org.hibernate.HibernateException

replace

public java.lang.Object replace(java.lang.Object object,
                                java.lang.Object object1,
                                org.hibernate.engine.SessionImplementor sessionImplementor,
                                java.lang.Object object2)
                         throws org.hibernate.HibernateException
Specified by:
replace in interface org.hibernate.usertype.CompositeUserType
Throws:
org.hibernate.HibernateException

disassemble

public java.io.Serializable disassemble(java.lang.Object object)
                                 throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException

assemble

public java.lang.Object assemble(java.io.Serializable serializable,
                                 java.lang.Object object)
                          throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException

replace

public java.lang.Object replace(java.lang.Object object,
                                java.lang.Object object1,
                                java.lang.Object object2)
                         throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException

getPropertyNames

public java.lang.String[] getPropertyNames()
Specified by:
getPropertyNames in interface org.hibernate.usertype.CompositeUserType

getPropertyTypes

public org.hibernate.type.Type[] getPropertyTypes()
Specified by:
getPropertyTypes in interface org.hibernate.usertype.CompositeUserType

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object object,
                                         int property)
                                  throws org.hibernate.HibernateException
Specified by:
getPropertyValue in interface org.hibernate.usertype.CompositeUserType
Throws:
org.hibernate.HibernateException

setPropertyValue

public void setPropertyValue(java.lang.Object object,
                             int property,
                             java.lang.Object value)
                      throws org.hibernate.HibernateException
Specified by:
setPropertyValue in interface org.hibernate.usertype.CompositeUserType
Throws:
org.hibernate.HibernateException

returnedClass

public java.lang.Class returnedClass()
Specified by:
returnedClass in interface org.hibernate.usertype.CompositeUserType

equals

public boolean equals(java.lang.Object x,
                      java.lang.Object y)
Specified by:
equals in interface org.hibernate.usertype.CompositeUserType

hashCode

public int hashCode(java.lang.Object object)
             throws org.hibernate.HibernateException
Specified by:
hashCode in interface org.hibernate.usertype.CompositeUserType
Throws:
org.hibernate.HibernateException

deepCopy

public java.lang.Object deepCopy(java.lang.Object value)
Specified by:
deepCopy in interface org.hibernate.usertype.CompositeUserType

nullSafeGet

public java.lang.Object nullSafeGet(java.sql.ResultSet rs,
                                    java.lang.String[] names,
                                    org.hibernate.engine.SessionImplementor sessionImplementor,
                                    java.lang.Object owner)
                             throws org.hibernate.HibernateException,
                                    java.sql.SQLException
Specified by:
nullSafeGet in interface org.hibernate.usertype.CompositeUserType
Throws:
org.hibernate.HibernateException
java.sql.SQLException

nullSafeSet

public void nullSafeSet(java.sql.PreparedStatement st,
                        java.lang.Object value,
                        int index,
                        org.hibernate.engine.SessionImplementor sessionImplementor)
                 throws org.hibernate.HibernateException,
                        java.sql.SQLException
Specified by:
nullSafeSet in interface org.hibernate.usertype.CompositeUserType
Throws:
org.hibernate.HibernateException
java.sql.SQLException