org.hibernate.usertype.EnhancedUserType, org.hibernate.usertype.ParameterizedType, org.hibernate.usertype.UserTypeEnumCodeUserType, EnumNameUserType, EnumOrdinalUserTypepublic abstract class AbstractEnumUserType extends Object implements org.hibernate.usertype.EnhancedUserType, org.hibernate.usertype.ParameterizedType
This is a parameterized type, which requires the following parameter :
enumClassName = fully qualified name of the enum class
to persist.
Example of inline mapping :
com.company.project.Suit
Example of typedef :
com.company.project.Suit
| Constructor | Description |
|---|---|
AbstractEnumUserType() |
| Modifier and Type | Method | Description |
|---|---|---|
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() |
|
Object |
replace(Object original,
Object target,
Object owner) |
|
Class<?> |
returnedClass() |
|
void |
setParameterValues(Properties parameters) |
fromXMLString, objectToSQLString, toXMLStringpublic void setParameterValues(Properties parameters)
setParameterValues in interface org.hibernate.usertype.ParameterizedTypepublic Object assemble(Serializable cached, Object owner) throws org.hibernate.HibernateException
assemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic Object deepCopy(Object value) throws org.hibernate.HibernateException
deepCopy in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic Serializable disassemble(Object value) throws org.hibernate.HibernateException
disassemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic boolean equals(Object x, Object y) throws org.hibernate.HibernateException
equals in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic int hashCode(Object x) throws org.hibernate.HibernateException
hashCode in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic boolean isMutable()
isMutable in interface org.hibernate.usertype.UserTypepublic Object replace(Object original, Object target, Object owner) throws org.hibernate.HibernateException
replace in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionpublic Class<?> returnedClass()
returnedClass in interface org.hibernate.usertype.UserTypeCopyright © 2002–2019 itracker. All rights reserved.