Class BigDecimalColumnListHandler

java.lang.Object
org.apache.commons.dbutils.handlers.AbstractListHandler<T>
org.apache.commons.dbutils.handlers.ColumnListHandler<BigDecimal>
org.knowm.yank.handlers.BigDecimalColumnListHandler
All Implemented Interfaces:
org.apache.commons.dbutils.ResultSetHandler<List<BigDecimal>>

public class BigDecimalColumnListHandler extends org.apache.commons.dbutils.handlers.ColumnListHandler<BigDecimal>
  • Constructor Details

    • BigDecimalColumnListHandler

      public BigDecimalColumnListHandler()
      Creates a new instance of ColumnListHandler. The first column of each row will be returned from handle().
    • BigDecimalColumnListHandler

      public BigDecimalColumnListHandler(int columnIndex)
      Creates a new instance of ColumnListHandler.
      Parameters:
      columnIndex - The index of the column to retrieve from the ResultSet.
    • BigDecimalColumnListHandler

      public BigDecimalColumnListHandler(String columnName)
      Creates a new instance of ColumnListHandler.
      Parameters:
      columnName - The name of the column to retrieve from the ResultSet.
  • Method Details

    • handleRow

      protected BigDecimal handleRow(ResultSet rs) throws SQLException
      Returns one ResultSet column value as Object.
      Overrides:
      handleRow in class org.apache.commons.dbutils.handlers.ColumnListHandler<BigDecimal>
      Parameters:
      rs - ResultSet to process.
      Returns:
      Object, never null.
      Throws:
      SQLException - if a database access error occurs
      ClassCastException - if the class datatype does not match the column type
      See Also:
      • AbstractListHandler.handle(ResultSet)