Package org.openxava.types
Class SiNoType
java.lang.Object
org.openxava.types.SiNoType
- All Implemented Interfaces:
org.hibernate.usertype.UserType<Boolean>
Stores a boolean value as 'S' or 'N' in database.
- Since:
- 8.0
- Author:
- Javier Paniza
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassemble(Serializable cached, Object owner) disassemble(Boolean value) booleanintintbooleannullSafeGet(ResultSet rs, int position, org.hibernate.type.descriptor.WrapperOptions options) voidnullSafeSet(PreparedStatement st, Boolean value, int index, org.hibernate.type.descriptor.WrapperOptions options) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.usertype.UserType
getDefaultSqlLength, getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlPrecision, getDefaultSqlScale, getDefaultSqlScale, getValueConverter, isComparable, nullSafeGet, nullSafeSet
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
SiNoType
public SiNoType()
-
-
Method Details
-
getSqlType
public int getSqlType()- Specified by:
getSqlTypein interfaceorg.hibernate.usertype.UserType<Boolean>
-
returnedClass
- Specified by:
returnedClassin interfaceorg.hibernate.usertype.UserType<Boolean>
-
equals
- Specified by:
equalsin interfaceorg.hibernate.usertype.UserType<Boolean>
-
hashCode
- Specified by:
hashCodein interfaceorg.hibernate.usertype.UserType<Boolean>
-
nullSafeGet
public Boolean nullSafeGet(ResultSet rs, int position, org.hibernate.type.descriptor.WrapperOptions options) throws SQLException - Specified by:
nullSafeGetin interfaceorg.hibernate.usertype.UserType<Boolean>- Throws:
SQLException
-
nullSafeSet
public void nullSafeSet(PreparedStatement st, Boolean value, int index, org.hibernate.type.descriptor.WrapperOptions options) throws SQLException - Specified by:
nullSafeSetin interfaceorg.hibernate.usertype.UserType<Boolean>- Throws:
SQLException
-
deepCopy
- Specified by:
deepCopyin interfaceorg.hibernate.usertype.UserType<Boolean>
-
isMutable
public boolean isMutable()- Specified by:
isMutablein interfaceorg.hibernate.usertype.UserType<Boolean>
-
disassemble
- Specified by:
disassemblein interfaceorg.hibernate.usertype.UserType<Boolean>
-
assemble
- Specified by:
assemblein interfaceorg.hibernate.usertype.UserType<Boolean>
-
replace
- Specified by:
replacein interfaceorg.hibernate.usertype.UserType<Boolean>
-