站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.4 正式版 API 英文文档

YesNoType (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


org.hibernate.type
Class YesNoType

java.lang.Object
  extended byorg.hibernate.type.AbstractType
      extended byorg.hibernate.type.NullableType
          extended byorg.hibernate.type.ImmutableType
              extended byorg.hibernate.type.PrimitiveType
                  extended byorg.hibernate.type.BooleanType
                      extended byorg.hibernate.type.CharBooleanType
                          extended byorg.hibernate.type.YesNoType
All Implemented Interfaces:
DiscriminatorType, IdentifierType, 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
See Also:
Serialized Form

Constructor Summary
YesNoType()
           
 
Method Summary
protected  String getFalseString()
           
 String getName()
          Returns the abbreviated name of the type.
protected  String getTrueString()
           
 
Methods inherited from class org.hibernate.type.CharBooleanType
get, objectToSQLString, set, sqlType, stringToObject
 
Methods inherited from class org.hibernate.type.BooleanType
fromStringValue, getDefaultValue, getPrimitiveClass, getReturnedClass
 
Methods inherited from class org.hibernate.type.PrimitiveType
toString
 
Methods inherited from class org.hibernate.type.ImmutableType
deepCopy, isMutable, replace
 
Methods inherited from class org.hibernate.type.NullableType
fromXMLNode, fromXMLString, getColumnSpan, isDirty, isEqual, isEqual, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, nullSafeSet, nullSafeToString, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString, toXMLString
 
Methods inherited from class org.hibernate.type.AbstractType
assemble, beforeAssemble, compare, disassemble, getHashCode, getHashCode, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isEntityType, isEqual, isModified, isSame, isXMLElement, replace, replaceNode, resolve, semiResolve
 
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.Type
assemble, beforeAssemble, compare, deepCopy, disassemble, fromXMLNode, getColumnSpan, getHashCode, getHashCode, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, resolve, semiResolve, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString
 

Constructor Detail

YesNoType

public YesNoType()
Method Detail

getTrueString

protected final String getTrueString()
Specified by:
getTrueString in class CharBooleanType

getFalseString

protected final String getFalseString()
Specified by:
getFalseString in class CharBooleanType

getName

public String getName()
Description copied from interface: Type
Returns the abbreviated name of the type.

Specified by:
getName in interface Type
Overrides:
getName in class BooleanType