Interface JdbcTypesTransformer

All Known Implementing Classes:
JdbcTypesDefaultTransformer

public interface JdbcTypesTransformer
API for implementing custom mapping logic for loaded from store data.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final List<Integer>
    Numeric types.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Object
    getColumnValue(ResultSet rs, int colIdx, Class<?> type)
    Retrieves the value of the designated column in the current row of this ResultSet object and will convert to the requested Java data type.
  • Field Details

    • NUMERIC_TYPES

      static final List<Integer> NUMERIC_TYPES
      Numeric types.
  • Method Details

    • getColumnValue

      @Nullable @Nullable Object getColumnValue(ResultSet rs, int colIdx, Class<?> type) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object and will convert to the requested Java data type.
      Parameters:
      rs - Result set.
      colIdx - Column index in result set.
      type - Class representing the Java data type to convert the designated column to.
      Returns:
      Value in column.
      Throws:
      SQLException - If a database access error occurs or this method is called.