net.sf.jzeno.hibernate
Interface PersistentEnumItf

All Superinterfaces:
org.hibernate.usertype.UserType
All Known Implementing Classes:
PersistentEnum

public interface PersistentEnumItf
extends org.hibernate.usertype.UserType

Immutable enumeration objects should implement this interface.


Method Summary
 java.lang.Object deepCopy(java.lang.Object value)
           
 java.io.Serializable getEnumCode()
           Gets the persistable enum code of this enum.
 boolean isMutable()
           
 java.lang.Object nullSafeGet(java.sql.ResultSet rs, java.lang.String[] names, java.lang.Object owner)
           
 void nullSafeSet(java.sql.PreparedStatement st, java.lang.Object value, int index)
           
 java.lang.Class returnedClass()
           
 int[] sqlTypes()
           
 
Methods inherited from interface org.hibernate.usertype.UserType
assemble, disassemble, equals, hashCode, replace
 

Method Detail

getEnumCode

java.io.Serializable getEnumCode()

Gets the persistable enum code of this enum.


sqlTypes

int[] sqlTypes()
Specified by:
sqlTypes in interface org.hibernate.usertype.UserType

deepCopy

java.lang.Object deepCopy(java.lang.Object value)
                          throws org.hibernate.HibernateException
Specified by:
deepCopy in interface org.hibernate.usertype.UserType
Throws:
org.hibernate.HibernateException

isMutable

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

returnedClass

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

nullSafeGet

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

nullSafeSet

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