Package org.opennms.netmgt.enlinkd.model
Class StatusUserType
- java.lang.Object
-
- org.hibernate.type.EnumType
-
- org.opennms.netmgt.enlinkd.model.StatusUserType
-
- All Implemented Interfaces:
java.io.Serializable
,org.hibernate.usertype.EnhancedUserType
,org.hibernate.usertype.ParameterizedType
,org.hibernate.usertype.UserType
public class StatusUserType extends org.hibernate.type.EnumType
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StatusUserType()
A public default constructor is required by Hibernate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
hashCode(java.lang.Object x)
java.lang.Object
nullSafeGet(java.sql.ResultSet rs, java.lang.String[] names, java.lang.Object owner)
void
nullSafeSet(java.sql.PreparedStatement st, java.lang.Object value, int index)
java.lang.Class<OspfElement.Status>
returnedClass()
void
setParameterValues(java.util.Properties parameters)
int[]
sqlTypes()
-
-
-
Method Detail
-
hashCode
public int hashCode(java.lang.Object x) throws org.hibernate.HibernateException
- Specified by:
hashCode
in interfaceorg.hibernate.usertype.UserType
- Overrides:
hashCode
in classorg.hibernate.type.EnumType
- Throws:
org.hibernate.HibernateException
-
nullSafeGet
public java.lang.Object nullSafeGet(java.sql.ResultSet rs, java.lang.String[] names, java.lang.Object owner) throws org.hibernate.HibernateException, java.sql.SQLException
- Specified by:
nullSafeGet
in interfaceorg.hibernate.usertype.UserType
- Overrides:
nullSafeGet
in classorg.hibernate.type.EnumType
- Throws:
org.hibernate.HibernateException
java.sql.SQLException
-
nullSafeSet
public void nullSafeSet(java.sql.PreparedStatement st, java.lang.Object value, int index) throws org.hibernate.HibernateException, java.sql.SQLException
- Specified by:
nullSafeSet
in interfaceorg.hibernate.usertype.UserType
- Overrides:
nullSafeSet
in classorg.hibernate.type.EnumType
- Throws:
org.hibernate.HibernateException
java.sql.SQLException
-
returnedClass
public java.lang.Class<OspfElement.Status> returnedClass()
- Specified by:
returnedClass
in interfaceorg.hibernate.usertype.UserType
- Overrides:
returnedClass
in classorg.hibernate.type.EnumType
-
sqlTypes
public int[] sqlTypes()
- Specified by:
sqlTypes
in interfaceorg.hibernate.usertype.UserType
- Overrides:
sqlTypes
in classorg.hibernate.type.EnumType
-
setParameterValues
public void setParameterValues(java.util.Properties parameters)
- Specified by:
setParameterValues
in interfaceorg.hibernate.usertype.ParameterizedType
- Overrides:
setParameterValues
in classorg.hibernate.type.EnumType
-
-