public class BooleanTypeDescriptor extends org.hibernate.type.descriptor.java.AbstractTypeDescriptor<Boolean>
AbstractTypeDescriptor
which maps Java Boolean
values to String
values containing either
"true"
or "false"
.
By default, Hibernate includes types which manage Boolean
s as Number
s or char
s (containing
"T"
/"Y"
for true
and "F"
/"N"
for false
). This type provides backward
compatibility for behaviour applied by previous versions of Crowd.
Modifier and Type | Field and Description |
---|---|
static BooleanTypeDescriptor |
INSTANCE |
Constructor and Description |
---|
BooleanTypeDescriptor() |
Modifier and Type | Method and Description |
---|---|
Boolean |
fromString(String string) |
String |
toString(Boolean value) |
<X> X |
unwrap(Boolean value,
Class<X> type,
org.hibernate.type.descriptor.WrapperOptions options) |
<X> Boolean |
wrap(X value,
org.hibernate.type.descriptor.WrapperOptions options) |
areEqual, extractHashCode, extractLoggableRepresentation, getComparator, getJavaType, getJavaTypeClass, getMutabilityPlan, unknownUnwrap, unknownWrap
public static final BooleanTypeDescriptor INSTANCE
Copyright © 2021 Atlassian. All rights reserved.