Package org.hibernate.type
Class CharBooleanConverter
- java.lang.Object
-
- org.hibernate.type.CharBooleanConverter
-
- All Implemented Interfaces:
jakarta.persistence.AttributeConverter<Boolean,Character>
,BasicValueConverter<Boolean,Character>
- Direct Known Subclasses:
TrueFalseConverter
,YesNoConverter
public abstract class CharBooleanConverter extends Object implements jakarta.persistence.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 Character
convertToDatabaseColumn(Boolean attribute)
Singleton accessBoolean
convertToEntityAttribute(Character dbData)
String
getCheckCondition(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 converterString
getSpecializedTypeDeclaration(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.metamodel.model.convert.spi.BasicValueConverter
toDomainValue, toRelationalValue
-
-
-
-
Method Detail
-
convertToDatabaseColumn
public Character convertToDatabaseColumn(Boolean attribute)
Singleton access
-
getDomainJavaType
public JavaType<Boolean> getDomainJavaType()
Description copied from interface:BasicValueConverter
Descriptor for the Java type for the domain portion of this converter- Specified by:
getDomainJavaType
in interfaceBasicValueConverter<Boolean,Character>
-
getRelationalJavaType
public JavaType<Character> getRelationalJavaType()
Description copied from interface:BasicValueConverter
Descriptor for the Java type for the relational portion of this converter- Specified by:
getRelationalJavaType
in interfaceBasicValueConverter<Boolean,Character>
-
getCheckCondition
public String getCheckCondition(String columnName, JdbcType jdbcType, Dialect dialect)
Description copied from interface:BasicValueConverter
The check constraint that should be added to the column definition in generated DDL.- Specified by:
getCheckCondition
in interfaceBasicValueConverter<Boolean,Character>
- Parameters:
columnName
- the name of the columnjdbcType
- theJdbcType
of the mapped columndialect
- the SQLDialect
- Returns:
- a check constraint condition or null
-
getSpecializedTypeDeclaration
public String getSpecializedTypeDeclaration(JdbcType jdbcType, Dialect dialect)
- Specified by:
getSpecializedTypeDeclaration
in interfaceBasicValueConverter<Boolean,Character>
-
getValues
protected abstract String[] getValues()
-
-