public class EnumCodeUserType extends AbstractEnumUserType
IntCodeEnum
as an INTEGER
using its integer code.
This should be preferred to using the enum.ordinal() or enum.name().
enumClass
Constructor | Description |
---|---|
EnumCodeUserType() |
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 EnumCodeUserType()
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.