Package org.openurp.edu.clazz.util
Class GenderRatioType
java.lang.Object
org.openurp.edu.clazz.util.GenderRatioType
- All Implemented Interfaces:
org.hibernate.usertype.UserType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassemble(Serializable cached, Object owner) disassemble(Object value) booleanintbooleannullSafeGet(ResultSet resultSet, String[] names, org.hibernate.engine.spi.SessionImplementor session, Object owner) voidnullSafeSet(PreparedStatement statement, Object value, int index, org.hibernate.engine.spi.SessionImplementor session) Class<?> int[]sqlTypes()
-
Constructor Details
-
GenderRatioType
public GenderRatioType()
-
-
Method Details
-
sqlTypes
public int[] sqlTypes()- Specified by:
sqlTypesin interfaceorg.hibernate.usertype.UserType
-
returnedClass
- Specified by:
returnedClassin interfaceorg.hibernate.usertype.UserType
-
equals
- Specified by:
equalsin interfaceorg.hibernate.usertype.UserType
-
hashCode
- Specified by:
hashCodein interfaceorg.hibernate.usertype.UserType
-
deepCopy
- Specified by:
deepCopyin interfaceorg.hibernate.usertype.UserType
-
isMutable
public boolean isMutable()- Specified by:
isMutablein interfaceorg.hibernate.usertype.UserType
-
disassemble
- Specified by:
disassemblein interfaceorg.hibernate.usertype.UserType
-
assemble
- Specified by:
assemblein interfaceorg.hibernate.usertype.UserType
-
replace
- Specified by:
replacein interfaceorg.hibernate.usertype.UserType
-
nullSafeGet
public Object nullSafeGet(ResultSet resultSet, String[] names, org.hibernate.engine.spi.SessionImplementor session, Object owner) throws org.hibernate.HibernateException, SQLException - Specified by:
nullSafeGetin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateExceptionSQLException
-
nullSafeSet
public void nullSafeSet(PreparedStatement statement, Object value, int index, org.hibernate.engine.spi.SessionImplementor session) throws org.hibernate.HibernateException, SQLException - Specified by:
nullSafeSetin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateExceptionSQLException
-