Class JdbcTypesDefaultTransformer

java.lang.Object
org.gridgain.cache.store.jdbc.JdbcTypesDefaultTransformer
All Implemented Interfaces:
JdbcTypesTransformer

public class JdbcTypesDefaultTransformer extends Object implements JdbcTypesTransformer
Default implementation of JdbcTypesTransformer.
  • Field Details

  • Constructor Details

    • JdbcTypesDefaultTransformer

      public JdbcTypesDefaultTransformer()
  • Method Details

    • getColumnValue

      @Nullable public @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.
      Specified by:
      getColumnValue in interface JdbcTypesTransformer
      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.