Package org.hibernate.type
Class CharBooleanConverter
java.lang.Object
org.hibernate.type.CharBooleanConverter
- All Implemented Interfaces:
AttributeConverter<Boolean,,Character> BasicValueConverter<Boolean,,Character> StandardBooleanConverter<Character>,StandardConverter<Boolean,Character>
- Direct Known Subclasses:
TrueFalseConverter,YesNoConverter
public abstract class CharBooleanConverter
extends Object
implements StandardBooleanConverter<Character>
- Author:
- Steve Ebersole, Gavin King
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToDatabaseColumn(Boolean attribute) Converts the value stored in the entity attribute into the data representation to be stored in the database.convertToEntityAttribute(Character dbData) Converts the data stored in the database column into the value to be stored in the entity attribute.Descriptor for the Java type for the domain portion of this converterDescriptor for the Java type for the relational portion of this converterprotected abstract String[]Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.type.descriptor.converter.spi.BasicValueConverter
toDomainValue, toRelationalValue
-
Constructor Details
-
CharBooleanConverter
public CharBooleanConverter()
-
-
Method Details
-
convertToDatabaseColumn
Description copied from interface:AttributeConverterConverts the value stored in the entity attribute into the data representation to be stored in the database.- Specified by:
convertToDatabaseColumnin interfaceAttributeConverter<Boolean,Character> - Parameters:
attribute- the entity attribute value to be converted- Returns:
- the converted data to be stored in the database column
-
convertToEntityAttribute
Description copied from interface:AttributeConverterConverts the data stored in the database column into the value to be stored in the entity attribute. Note that it is the responsibility of the converter writer to specify the correctdbDatatype for the corresponding column for use by the JDBC driver: i.e., persistence providers are not expected to do such type conversion.- Specified by:
convertToEntityAttributein interfaceAttributeConverter<Boolean,Character> - Parameters:
dbData- the data from the database column to be converted- Returns:
- the converted value to be stored in the entity attribute
-
getDomainJavaType
Description copied from interface:BasicValueConverterDescriptor for the Java type for the domain portion of this converter- Specified by:
getDomainJavaTypein interfaceBasicValueConverter<Boolean,Character>
-
getRelationalJavaType
Description copied from interface:BasicValueConverterDescriptor for the Java type for the relational portion of this converter- Specified by:
getRelationalJavaTypein interfaceBasicValueConverter<Boolean,Character>
-
getValues
-