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

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


net.sf.hibernate.type
Class YesNoType

java.lang.Object
  extended bynet.sf.hibernate.type.AbstractType
      extended bynet.sf.hibernate.type.NullableType
          extended bynet.sf.hibernate.type.ImmutableType
              extended bynet.sf.hibernate.type.PrimitiveType
                  extended bynet.sf.hibernate.type.BooleanType
                      extended bynet.sf.hibernate.type.CharBooleanType
                          extended bynet.sf.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 net.sf.hibernate.type.CharBooleanType
get, objectToSQLString, set, sqlType, stringToObject
 
Methods inherited from class net.sf.hibernate.type.BooleanType
fromStringValue, getPrimitiveClass, getReturnedClass
 
Methods inherited from class net.sf.hibernate.type.PrimitiveType
equals, toString
 
Methods inherited from class net.sf.hibernate.type.ImmutableType
copy, deepCopyNotNull, hasNiceEquals, isMutable
 
Methods inherited from class net.sf.hibernate.type.NullableType
deepCopy, fromString, getColumnSpan, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, sqlTypes, toString
 
Methods inherited from class net.sf.hibernate.type.AbstractType
assemble, disassemble, equals, hashCode, hydrate, isAssociationType, isComponentType, isDirty, isEntityType, isModified, isObjectType, isPersistentCollectionType, resolveIdentifier
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.hibernate.type.Type
assemble, copy, deepCopy, disassemble, equals, fromString, getColumnSpan, hasNiceEquals, hydrate, isAssociationType, isComponentType, isDirty, isEntityType, isModified, isMutable, isObjectType, isPersistentCollectionType, nullSafeGet, nullSafeGet, nullSafeSet, resolveIdentifier, sqlTypes, toString
 

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