public final class EnumOrdinalUserType extends AbstractEnumUserType
Beware that the enum.ordinal() returns a is zero based that changes if the position of the enum members change!
enumClass
Constructor | Description |
---|---|
EnumOrdinalUserType() |
Default constructor, required by Hibernate.
|
Modifier and Type | Method | Description |
---|---|---|
Object |
fromXMLString(String xmlValue) |
|
Object |
nullSafeGet(ResultSet rs,
String[] names,
Object owner) |
|
void |
nullSafeSet(PreparedStatement stmt,
Object value,
int index) |
|
String |
objectToSQLString(Object value) |
|
void |
setParameterValues(Properties parameters) |
|
int[] |
sqlTypes() |
|
String |
toXMLString(Object value) |
assemble, deepCopy, disassemble, equals, hashCode, isMutable, replace, returnedClass
public EnumOrdinalUserType()
public void setParameterValues(Properties parameters)
setParameterValues
in class AbstractEnumUserType
public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws org.hibernate.HibernateException, SQLException
org.hibernate.HibernateException
SQLException
public void nullSafeSet(PreparedStatement stmt, Object value, int index) throws org.hibernate.HibernateException, SQLException
org.hibernate.HibernateException
SQLException
public int[] sqlTypes()
Copyright © 2002–2019 itracker. All rights reserved.