Interface BasicValueConverter<D,R>
-
- Type Parameters:
D
- The Java type we can use to represent the domain (object) typeR
- The Java type we can use to represent the relational type
- All Known Subinterfaces:
EnumValueConverter<O,R>
,JpaAttributeConverter<O,R>
- All Known Implementing Classes:
AnyDiscriminatorConverter
,CharBooleanConverter
,DiscriminatorType
,JpaAttributeConverterImpl
,NamedEnumValueConverter
,NumericBooleanConverter
,OrdinalEnumValueConverter
,TrueFalseConverter
,YesNoConverter
public interface BasicValueConverter<D,R>
Support for basic-value conversions. Conversions might be defined by: * a custom JPAAttributeConverter
, * implicitly, based on the Java type (e.g., enums) * etc
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default String
getCheckCondition(String columnName, JdbcType sqlType, Dialect dialect)
The check constraint that should be added to the column definition in generated DDL.JavaType<D>
getDomainJavaType()
Descriptor for the Java type for the domain portion of this converterJavaType<R>
getRelationalJavaType()
Descriptor for the Java type for the relational portion of this converterdefault String
getSpecializedTypeDeclaration(JdbcType jdbcType, Dialect dialect)
D
toDomainValue(R relationalForm)
Convert the relational form just retrieved from JDBC ResultSet into the domain form.R
toRelationalValue(D domainForm)
Convert the domain form into the relational form in preparation for storage into JDBC
-
-
-
Method Detail
-
toDomainValue
D toDomainValue(R relationalForm)
Convert the relational form just retrieved from JDBC ResultSet into the domain form.
-
toRelationalValue
R toRelationalValue(D domainForm)
Convert the domain form into the relational form in preparation for storage into JDBC
-
getDomainJavaType
JavaType<D> getDomainJavaType()
Descriptor for the Java type for the domain portion of this converter
-
getRelationalJavaType
JavaType<R> getRelationalJavaType()
Descriptor for the Java type for the relational portion of this converter
-
getCheckCondition
default String getCheckCondition(String columnName, JdbcType sqlType, Dialect dialect)
The check constraint that should be added to the column definition in generated DDL.
-
-