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>
public class TrueFalseConverter extends CharBooleanConverter
Handles conversion to/fromBooleanas'T'or'F'
-
-
Field Summary
Fields Modifier and Type Field Description static TrueFalseConverterINSTANCESingleton access
-
Constructor Summary
Constructors Constructor Description TrueFalseConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]getValues()BooleantoDomainValue(Character relationalForm)Convert the relational form just retrieved from JDBC ResultSet into the domain form.CharactertoRelationalValue(Boolean domainForm)Convert the domain form into the relational form in preparation for storage into JDBC-
Methods inherited from class org.hibernate.type.CharBooleanConverter
convertToDatabaseColumn, convertToEntityAttribute, getDomainJavaType, getRelationalJavaType
-
-
-
-
Field Detail
-
INSTANCE
public static final TrueFalseConverter INSTANCE
Singleton access
-
-
Method Detail
-
getValues
protected String[] getValues()
- Specified by:
getValuesin classCharBooleanConverter
-
toDomainValue
public Boolean toDomainValue(Character relationalForm)
Description copied from interface:BasicValueConverterConvert the relational form just retrieved from JDBC ResultSet into the domain form.
-
toRelationalValue
public Character toRelationalValue(Boolean domainForm)
Description copied from interface:BasicValueConverterConvert the domain form into the relational form in preparation for storage into JDBC
-
-