com.atlassian.crowd.util.persistence.hibernate
Class BooleanStringUserType

java.lang.Object
  extended by org.hibernate.type.AbstractType
      extended by org.hibernate.type.NullableType
          extended by org.hibernate.type.ImmutableType
              extended by org.hibernate.type.PrimitiveType
                  extended by org.hibernate.type.BooleanType
                      extended by org.hibernate.type.CharBooleanType
                          extended by com.atlassian.crowd.util.persistence.hibernate.BooleanStringUserType
All Implemented Interfaces:
java.io.Serializable, org.hibernate.type.DiscriminatorType, org.hibernate.type.IdentifierType, org.hibernate.type.LiteralType, org.hibernate.type.Type

public class BooleanStringUserType
extends org.hibernate.type.CharBooleanType

Boolean implementation that allows us to store Booleans as "true" and "false"

See Also:
Serialized Form

Constructor Summary
BooleanStringUserType()
           
 
Method Summary
protected  java.lang.String getFalseString()
           
protected  java.lang.String getTrueString()
           
 int sqlType()
           
 
Methods inherited from class org.hibernate.type.CharBooleanType
get, objectToSQLString, set, stringToObject
 
Methods inherited from class org.hibernate.type.BooleanType
fromStringValue, getDefaultValue, getName, 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

BooleanStringUserType

public BooleanStringUserType()
Method Detail

getTrueString

protected java.lang.String getTrueString()
Specified by:
getTrueString in class org.hibernate.type.CharBooleanType

getFalseString

protected java.lang.String getFalseString()
Specified by:
getFalseString in class org.hibernate.type.CharBooleanType

sqlType

public int sqlType()
Overrides:
sqlType in class org.hibernate.type.CharBooleanType


Copyright © 2010 Atlassian. All Rights Reserved.