Interface BasicValueConverter<D,R>

Type Parameters:
D - The Java type we use to represent the domain (object) type
R - The Java type we use to represent the relational type
All Known Subinterfaces:
JpaAttributeConverter<O,R>, StandardBooleanConverter<R>, StandardConverter<O,R>
All Known Implementing Classes:
ArrayConverter, CharBooleanConverter, CollectionConverter, DefaultDiscriminatorConverter, DiscriminatorConverter, EmbeddableDiscriminatorConverter, JpaAttributeConverterImpl, MappedDiscriminatorConverter, NumericBooleanConverter, TrueFalseConverter, YesNoConverter

@Incubating public interface BasicValueConverter<D,R>
Support for basic-typed value conversions.

Conversions might be determined by:

  • a custom JPA AttributeConverter, or
  • implicitly, based on the Java type, for example, for Java enums.
  • Method Summary

    Modifier and Type
    Method
    Description
    Descriptor for the Java type for the domain portion of this converter
    Descriptor for the Java type for the relational portion of this converter
    @Nullable D
    toDomainValue(@Nullable R relationalForm)
    Convert the relational form just retrieved from JDBC ResultSet into the domain form.
    @Nullable R
    toRelationalValue(@Nullable D domainForm)
    Convert the domain form into the relational form in preparation for storage into JDBC
  • Method Details

    • toDomainValue

      @Nullable D toDomainValue(@Nullable R relationalForm)
      Convert the relational form just retrieved from JDBC ResultSet into the domain form.
    • toRelationalValue

      @Nullable R toRelationalValue(@Nullable 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