Package org.knowm.yank.handlers
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 Summary
ConstructorsConstructorDescriptionCreates a new instance of ColumnListHandler.BigDecimalColumnListHandler(int columnIndex) Creates a new instance of ColumnListHandler.BigDecimalColumnListHandler(String columnName) Creates a new instance of ColumnListHandler. -
Method Summary
Modifier and TypeMethodDescriptionprotected BigDecimalReturns oneResultSetcolumn value asObject.Methods inherited from class org.apache.commons.dbutils.handlers.AbstractListHandler
handle
-
Constructor Details
-
BigDecimalColumnListHandler
public BigDecimalColumnListHandler()Creates a new instance of ColumnListHandler. The first column of each row will be returned fromhandle(). -
BigDecimalColumnListHandler
public BigDecimalColumnListHandler(int columnIndex) Creates a new instance of ColumnListHandler.- Parameters:
columnIndex- The index of the column to retrieve from theResultSet.
-
BigDecimalColumnListHandler
Creates a new instance of ColumnListHandler.- Parameters:
columnName- The name of the column to retrieve from theResultSet.
-
-
Method Details
-
handleRow
Returns oneResultSetcolumn value asObject.- Overrides:
handleRowin classorg.apache.commons.dbutils.handlers.ColumnListHandler<BigDecimal>- Parameters:
rs-ResultSetto process.- Returns:
Object, nevernull.- Throws:
SQLException- if a database access error occursClassCastException- if the class datatype does not match the column type- See Also:
-
AbstractListHandler.handle(ResultSet)
-