Package org.hibernate.type
Class TrueFalseConverter
java.lang.Object
org.hibernate.type.CharBooleanConverter
org.hibernate.type.TrueFalseConverter
- All Implemented Interfaces:
AttributeConverter<Boolean,
,Character> BasicValueConverter<Boolean,
,Character> StandardBooleanConverter<Character>
,StandardConverter<Boolean,
Character>
Handles conversion to/from
Boolean
as 'T'
or 'F'
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]
toDomainValue
(Character relationalForm) Convert the relational form just retrieved from JDBC ResultSet into the domain form.toRelationalValue
(Boolean domainForm) Convert the domain form into the relational form in preparation for storage into JDBCMethods inherited from class org.hibernate.type.CharBooleanConverter
convertToDatabaseColumn, convertToEntityAttribute, getDomainJavaType, getRelationalJavaType
-
Field Details
-
INSTANCE
Singleton access
-
-
Constructor Details
-
TrueFalseConverter
public TrueFalseConverter()
-
-
Method Details
-
getValues
- Specified by:
getValues
in classCharBooleanConverter
-
toDomainValue
Description copied from interface:BasicValueConverter
Convert the relational form just retrieved from JDBC ResultSet into the domain form. -
toRelationalValue
Description copied from interface:BasicValueConverter
Convert the domain form into the relational form in preparation for storage into JDBC
-