org.hibernate.type

Class YesNoType

Implemented Interfaces:
DiscriminatorType, IdentifierType, Serializable, LiteralType, Serializable, Type

public class YesNoType
extends CharBooleanType

yes_no: A type that maps an SQL CHAR(1) to a Java Boolean.
Author:
Gavin King

Method Summary

protected String
getFalseString()
String
getName()
protected String
getTrueString()

Methods inherited from class org.hibernate.type.CharBooleanType

get, getFalseString, getTrueString, objectToSQLString, set, sqlType, stringToObject

Methods inherited from class org.hibernate.type.BooleanType

fromStringValue, get, getDefaultValue, getName, getPrimitiveClass, getReturnedClass, objectToSQLString, set, sqlType, stringToObject

Methods inherited from class org.hibernate.type.PrimitiveType

getDefaultValue, getPrimitiveClass, toString

Methods inherited from class org.hibernate.type.ImmutableType

deepCopy, isMutable, replace

Methods inherited from class org.hibernate.type.NullableType

fromStringValue, fromXMLNode, fromXMLString, get, getColumnSpan, isDirty, isEqual, isEqual, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, nullSafeSet, nullSafeToString, set, setToXMLNode, sqlType, sqlTypes, toColumnNullness, toLoggableString, toString, toXMLString

Methods inherited from class org.hibernate.type.AbstractType

assemble, beforeAssemble, compare, disassemble, getHashCode, getHashCode, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isEntityType, isEqual, isEqual, isModified, isSame, isXMLElement, replace, replaceNode, resolve, semiResolve

Method Details

getFalseString

protected final String getFalseString()
Overrides:
getFalseString in interface CharBooleanType

getName

public String getName()
Specified by:
getName in interface Type
Overrides:
getName in interface BooleanType

getTrueString

protected final String getTrueString()
Overrides:
getTrueString in interface CharBooleanType