|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.hibernate.extras.type.GenericEnumUserType com.atlassian.crowd.util.persistence.hibernate.GenericEnumUserType
public class GenericEnumUserType
This class is now an alias for GenericEnumUserType
from the atlassian-hibernate-extras
library. It is retained in Crowd only for backward compatibility.
identifierMethod
and valueOf
methods. In the base class, the
defaults are "getId" and "fromId", respectively; for this class, they are "name" and "valueOf". While the defaults
used here are satisfied automatically by every Java enumeration, they are weak for refactoring; renaming an enum
constant requires a database upgrade task to adjust previous rows.
Field Summary | |
---|---|
static String |
DEFAULT_IDENTIFIER_METHOD_NAME
|
static String |
DEFAULT_VALUE_OF_METHOD_NAME
|
Constructor Summary | |
---|---|
GenericEnumUserType()
|
Method Summary | |
---|---|
void |
setParameterValues(Properties parameters)
|
Methods inherited from class com.atlassian.hibernate.extras.type.GenericEnumUserType |
---|
assemble, deepCopy, disassemble, equals, fromXMLString, hashCode, isMutable, nullSafeGet, nullSafeSet, objectToSQLString, replace, returnedClass, sqlTypes, toXMLString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_IDENTIFIER_METHOD_NAME
public static final String DEFAULT_VALUE_OF_METHOD_NAME
Constructor Detail |
---|
public GenericEnumUserType()
Method Detail |
---|
public void setParameterValues(Properties parameters)
setParameterValues
in interface org.hibernate.usertype.ParameterizedType
setParameterValues
in class com.atlassian.hibernate.extras.type.GenericEnumUserType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |