|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectca.uhn.cache.internal.hibernate.HibernateEnum
Used to allow Hibernate to persist Jakarta Commons Enums.
Example usage:
public class Gender extends Enum {
...
}
public class HibernateGender extends HibernateEnumUserType {
public HibernateGender() {
super( Gender.class );
}
}
public class Person {
...
/**
* @hibernate.property class="HibernateGender"
*
public Gender getGender() {
return myGender;
}
}
| Constructor Summary | |
protected |
HibernateEnum(java.lang.Class theEnumType)
|
| Method Summary | |
java.lang.Object |
deepCopy(java.lang.Object theValue)
|
boolean |
equals(java.lang.Object theX,
java.lang.Object theY)
|
boolean |
isMutable()
|
java.lang.Object |
nullSafeGet(java.sql.ResultSet theResultSet,
java.lang.String[] theNames,
java.lang.Object theOwner)
|
void |
nullSafeSet(java.sql.PreparedStatement theStatement,
java.lang.Object theValue,
int theIndex)
|
java.lang.Class |
returnedClass()
|
int[] |
sqlTypes()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected HibernateEnum(java.lang.Class theEnumType)
| Method Detail |
public int[] sqlTypes()
sqlTypes in interface net.sf.hibernate.UserTypepublic java.lang.Class returnedClass()
returnedClass in interface net.sf.hibernate.UserTypepublic java.lang.Object deepCopy(java.lang.Object theValue)
deepCopy in interface net.sf.hibernate.UserTypepublic boolean isMutable()
isMutable in interface net.sf.hibernate.UserType
public java.lang.Object nullSafeGet(java.sql.ResultSet theResultSet,
java.lang.String[] theNames,
java.lang.Object theOwner)
throws net.sf.hibernate.HibernateException,
java.sql.SQLException
nullSafeGet in interface net.sf.hibernate.UserTypenet.sf.hibernate.HibernateException
java.sql.SQLException
public void nullSafeSet(java.sql.PreparedStatement theStatement,
java.lang.Object theValue,
int theIndex)
throws net.sf.hibernate.HibernateException,
java.sql.SQLException
nullSafeSet in interface net.sf.hibernate.UserTypenet.sf.hibernate.HibernateException
java.sql.SQLException
public boolean equals(java.lang.Object theX,
java.lang.Object theY)
throws net.sf.hibernate.HibernateException
equals in interface net.sf.hibernate.UserTypenet.sf.hibernate.HibernateException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||