Package org.hibernate.type
Class CharBooleanConverter
- java.lang.Object
-
- org.hibernate.type.CharBooleanConverter
-
- All Implemented Interfaces:
AttributeConverter<Boolean,Character>,BasicValueConverter<Boolean,Character>
- Direct Known Subclasses:
TrueFalseConverter,YesNoConverter
public abstract class CharBooleanConverter extends Object implements AttributeConverter<Boolean,Character>, BasicValueConverter<Boolean,Character>
-
-
Constructor Summary
Constructors Constructor Description CharBooleanConverter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description CharacterconvertToDatabaseColumn(Boolean attribute)Singleton accessBooleanconvertToEntityAttribute(Character dbData)StringgetCheckCondition(String columnName, JdbcType jdbcType, Dialect dialect)The check constraint that should be added to the column definition in generated DDL.JavaType<Boolean>getDomainJavaType()Descriptor for the Java type for the domain portion of this converterJavaType<Character>getRelationalJavaType()Descriptor for the Java type for the relational portion of this converterStringgetSpecializedTypeDeclaration(JdbcType jdbcType, Dialect dialect)protected abstract String[]getValues()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.type.descriptor.converter.spi.BasicValueConverter
toDomainValue, toRelationalValue
-
-
-
-
Method Detail
-
convertToDatabaseColumn
public Character convertToDatabaseColumn(Boolean attribute)
Singleton access- Specified by:
convertToDatabaseColumnin interfaceAttributeConverter<Boolean,Character>
-
convertToEntityAttribute
public Boolean convertToEntityAttribute(Character dbData)
- Specified by:
convertToEntityAttributein interfaceAttributeConverter<Boolean,Character>
-
getDomainJavaType
public JavaType<Boolean> getDomainJavaType()
Description copied from interface:BasicValueConverterDescriptor for the Java type for the domain portion of this converter- Specified by:
getDomainJavaTypein interfaceBasicValueConverter<Boolean,Character>
-
getRelationalJavaType
public JavaType<Character> getRelationalJavaType()
Description copied from interface:BasicValueConverterDescriptor for the Java type for the relational portion of this converter- Specified by:
getRelationalJavaTypein interfaceBasicValueConverter<Boolean,Character>
-
getCheckCondition
public String getCheckCondition(String columnName, JdbcType jdbcType, Dialect dialect)
Description copied from interface:BasicValueConverterThe check constraint that should be added to the column definition in generated DDL.- Specified by:
getCheckConditionin interfaceBasicValueConverter<Boolean,Character>- Parameters:
columnName- the name of the columnjdbcType- theJdbcTypeof the mapped columndialect- the SQLDialect- Returns:
- a check constraint condition or null
-
getSpecializedTypeDeclaration
public String getSpecializedTypeDeclaration(JdbcType jdbcType, Dialect dialect)
- Specified by:
getSpecializedTypeDeclarationin interfaceBasicValueConverter<Boolean,Character>
-
getValues
protected abstract String[] getValues()
-
-