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