public class BooleanStringUserType extends org.hibernate.type.AbstractSingleColumnStandardBasicType<Boolean> implements org.hibernate.type.PrimitiveType<Boolean>, org.hibernate.type.DiscriminatorType<Boolean>
For Hibernate 4 this type has been reimplemented as a AbstractSingleColumnStandardBasicType
, 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 and Description |
---|
BooleanStringUserType() |
Modifier and Type | Method and Description |
---|---|
Serializable |
getDefaultValue() |
String |
getName() |
Class |
getPrimitiveClass() |
String |
objectToSQLString(Boolean value,
org.hibernate.dialect.Dialect dialect) |
Boolean |
stringToObject(String xml) |
nullSafeSet, sqlType
assemble, beforeAssemble, canDoExtraction, canDoSetting, compare, deepCopy, deepCopy, defaultSizes, dictatedSizes, disassemble, extract, extract, fromString, fromStringValue, 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, nullSafeSet, nullSafeSet, registerUnderJavaType, remapSqlTypeDescriptor, replace, replace, resolve, semiResolve, set, setJavaTypeDescriptor, setSqlTypeDescriptor, sqlTypes, toColumnNullness, toLoggableString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
assemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, disassemble, getColumnSpan, getHashCode, getHashCode, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, resolve, semiResolve, sqlTypes, toColumnNullness, toLoggableString
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
Copyright © 2017 Atlassian. All rights reserved.