Package org.openxava.types
Class SiNoType
- java.lang.Object
-
- org.hibernate.type.AbstractStandardBasicType<T>
-
- org.hibernate.type.AbstractSingleColumnStandardBasicType<java.lang.Boolean>
-
- org.openxava.types.SiNoType
-
- All Implemented Interfaces:
java.io.Serializable,org.hibernate.type.BasicType,org.hibernate.type.DiscriminatorType<java.lang.Boolean>,org.hibernate.type.IdentifierType<java.lang.Boolean>,org.hibernate.type.LiteralType<java.lang.Boolean>,org.hibernate.type.PrimitiveType<java.lang.Boolean>,org.hibernate.type.ProcedureParameterExtractionAware<java.lang.Boolean>,org.hibernate.type.ProcedureParameterNamedBinder,org.hibernate.type.SingleColumnType<java.lang.Boolean>,org.hibernate.type.StringRepresentableType<java.lang.Boolean>,org.hibernate.type.Type
public class SiNoType extends org.hibernate.type.AbstractSingleColumnStandardBasicType<java.lang.Boolean> implements org.hibernate.type.PrimitiveType<java.lang.Boolean>, org.hibernate.type.DiscriminatorType<java.lang.Boolean>Stores a boolean value as 'S' or 'N' in database.- Author:
- Javier Paniza
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static org.hibernate.type.YesNoTypeINSTANCE
-
Constructor Summary
Constructors Constructor Description SiNoType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.SerializablegetDefaultValue()java.lang.StringgetName()java.lang.ClassgetPrimitiveClass()java.lang.StringobjectToSQLString(java.lang.Boolean value, org.hibernate.dialect.Dialect dialect)java.lang.BooleanstringToObject(java.lang.String xml)-
Methods inherited from class org.hibernate.type.AbstractSingleColumnStandardBasicType
nullSafeSet, sqlType
-
Methods inherited from class org.hibernate.type.AbstractStandardBasicType
assemble, beforeAssemble, canDoExtraction, canDoSetting, compare, deepCopy, deepCopy, defaultSizes, dictatedSizes, disassemble, extract, extract, fromString, fromStringValue, get, getColumnSpan, getDefaultSize, getDictatedSize, getHashCode, getHashCode, getJavaTypeDescriptor, getMutabilityPlan, getRegistrationKeys, getReplacement, getReturnedClass, getSemiResolvedType, getSqlTypeDescriptor, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, nullSafeSet, nullSafeSet, registerUnderJavaType, remapSqlTypeDescriptor, replace, replace, resolve, semiResolve, set, setJavaTypeDescriptor, setSqlTypeDescriptor, sqlTypes, toColumnNullness, toLoggableString, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.type.SingleColumnType
fromStringValue, get, nullSafeGet, set, toString
-
Methods inherited from interface org.hibernate.type.Type
assemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, disassemble, getColumnSpan, getHashCode, getHashCode, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, resolve, resolve, semiResolve, sqlTypes, toColumnNullness, toLoggableString
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceorg.hibernate.type.Type
-
getPrimitiveClass
public java.lang.Class getPrimitiveClass()
- Specified by:
getPrimitiveClassin interfaceorg.hibernate.type.PrimitiveType<java.lang.Boolean>
-
stringToObject
public java.lang.Boolean stringToObject(java.lang.String xml) throws java.lang.Exception- Specified by:
stringToObjectin interfaceorg.hibernate.type.IdentifierType<java.lang.Boolean>- Throws:
java.lang.Exception
-
getDefaultValue
public java.io.Serializable getDefaultValue()
- Specified by:
getDefaultValuein interfaceorg.hibernate.type.PrimitiveType<java.lang.Boolean>
-
objectToSQLString
public java.lang.String objectToSQLString(java.lang.Boolean value, org.hibernate.dialect.Dialect dialect) throws java.lang.Exception- Specified by:
objectToSQLStringin interfaceorg.hibernate.type.LiteralType<java.lang.Boolean>- Throws:
java.lang.Exception
-
-