Interface BasicValueConverter<D,​R>

    • 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.
        Parameters:
        columnName - the name of the column
        sqlType - the JdbcType of the mapped column
        dialect - the SQL Dialect
        Returns:
        a check constraint condition or null
      • getSpecializedTypeDeclaration

        default String getSpecializedTypeDeclaration​(JdbcType jdbcType,
                                                     Dialect dialect)