|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.util.UserTypeBase
public abstract class UserTypeBase
Base class for Hibernate User Types. This class is used by the Hibernate binding for StrongTypes. There exist subclasses for the specific kinds of StrongTypes like RestrictedString.
| Constructor Summary | |
|---|---|
UserTypeBase()
|
|
| Method Summary | |
|---|---|
Object |
assemble(Serializable cached,
Object owner)
|
Object |
deepCopy(Object value)
|
Serializable |
disassemble(Object value)
|
boolean |
equals(Object x,
Object y)
|
int |
hashCode(Object x)
|
boolean |
isMutable()
|
abstract Object |
nullSafeGet(ResultSet resultSet,
String[] types,
Object owner)
|
abstract void |
nullSafeSet(PreparedStatement statement,
Object value,
int index)
|
Object |
replace(Object original,
Object target,
Object owner)
|
abstract Class |
returnedClass()
|
abstract int[] |
sqlTypes()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserTypeBase()
| Method Detail |
|---|
public abstract int[] sqlTypes()
sqlTypes in interface org.hibernate.usertype.UserTypepublic abstract Class returnedClass()
returnedClass in interface org.hibernate.usertype.UserType
public boolean equals(Object x,
Object y)
equals in interface org.hibernate.usertype.UserTypepublic Object deepCopy(Object value)
deepCopy in interface org.hibernate.usertype.UserTypepublic boolean isMutable()
isMutable in interface org.hibernate.usertype.UserType
public abstract Object nullSafeGet(ResultSet resultSet,
String[] types,
Object owner)
throws org.hibernate.HibernateException,
SQLException
nullSafeGet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
SQLException
public abstract void nullSafeSet(PreparedStatement statement,
Object value,
int index)
throws org.hibernate.HibernateException,
SQLException
nullSafeSet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
SQLException
public int hashCode(Object x)
throws org.hibernate.HibernateException
hashCode in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
public Serializable disassemble(Object value)
throws org.hibernate.HibernateException
disassemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
public Object assemble(Serializable cached,
Object owner)
throws org.hibernate.HibernateException
assemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
public Object replace(Object original,
Object target,
Object owner)
throws org.hibernate.HibernateException
replace in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||