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
FieldsConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionprotectedString[]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:
getValuesin classCharBooleanConverter
toDomainValue
Description copied from interface:BasicValueConverterConvert the relational form just retrieved from JDBC ResultSet into the domain form.toRelationalValue
Description copied from interface:BasicValueConverterConvert the domain form into the relational form in preparation for storage into JDBC