|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.type.AbstractStandardBasicType<T> org.hibernate.type.AbstractSingleColumnStandardBasicType<Boolean> com.atlassian.crowd.util.persistence.hibernate.BooleanStringUserType
public class BooleanStringUserType
Boolean implementation that allows us to store Booleans as "true" and "false".
For Hibernate 4 this type has been reimplemented as aAbstractSingleColumnStandardBasicType
, as it is no
longer possible to change the true and false strings for CharBooleanType
. Due to the short-sighted way
Hibernate's BooleanType
is implemented, this class cannot extend from that, because that class explicitly
references Hibernate's BooleanTypeDescriptor
, which only uses "T" or "F" for its value, rather than the
whole word as required by this type.
BooleanTypeDescriptor
,
Serialized FormConstructor Summary | |
---|---|
BooleanStringUserType()
|
Method Summary | |
---|---|
Serializable |
getDefaultValue()
|
String |
getName()
|
Class |
getPrimitiveClass()
|
String |
objectToSQLString(Boolean value,
org.hibernate.dialect.Dialect dialect)
|
Boolean |
stringToObject(String xml)
|
Methods inherited from class org.hibernate.type.AbstractSingleColumnStandardBasicType |
---|
nullSafeSet, sqlType |
Methods inherited from class org.hibernate.type.AbstractStandardBasicType |
---|
assemble, beforeAssemble, compare, deepCopy, deepCopy, defaultSizes, dictatedSizes, disassemble, fromString, fromStringValue, fromXMLNode, fromXMLString, 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, registerUnderJavaType, remapSqlTypeDescriptor, replace, replace, resolve, semiResolve, set, setJavaTypeDescriptor, setSqlTypeDescriptor, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString, toString, toXMLString |
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.PrimitiveType |
---|
toString |
Methods inherited from interface org.hibernate.type.Type |
---|
assemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, disassemble, fromXMLNode, getColumnSpan, getHashCode, getHashCode, getReturnedClass, 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 |
Methods inherited from interface org.hibernate.type.SingleColumnType |
---|
fromStringValue, get, nullSafeGet, set, toString |
Constructor Detail |
---|
public BooleanStringUserType()
Method Detail |
---|
public Serializable getDefaultValue()
getDefaultValue
in interface org.hibernate.type.PrimitiveType<Boolean>
public String getName()
getName
in interface org.hibernate.type.Type
public Class getPrimitiveClass()
getPrimitiveClass
in interface org.hibernate.type.PrimitiveType<Boolean>
public String objectToSQLString(Boolean value, org.hibernate.dialect.Dialect dialect) throws Exception
objectToSQLString
in interface org.hibernate.type.LiteralType<Boolean>
Exception
public Boolean stringToObject(String xml) throws Exception
stringToObject
in interface org.hibernate.type.IdentifierType<Boolean>
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |