Package org.knowm.yank.handlers
Class FloatColumnListHandler
java.lang.Object
org.apache.commons.dbutils.handlers.AbstractListHandler<T>
org.apache.commons.dbutils.handlers.ColumnListHandler<Float>
org.knowm.yank.handlers.FloatColumnListHandler
public class FloatColumnListHandler
extends org.apache.commons.dbutils.handlers.ColumnListHandler<Float>
-
Constructor Summary
ConstructorDescriptionCreates a new instance of ColumnListHandler.FloatColumnListHandler
(int columnIndex) Creates a new instance of ColumnListHandler.FloatColumnListHandler
(String columnName) Creates a new instance of ColumnListHandler. -
Method Summary
Methods inherited from class org.apache.commons.dbutils.handlers.AbstractListHandler
handle
-
Constructor Details
-
FloatColumnListHandler
public FloatColumnListHandler()Creates a new instance of ColumnListHandler. The first column of each row will be returned fromhandle()
. -
FloatColumnListHandler
public FloatColumnListHandler(int columnIndex) Creates a new instance of ColumnListHandler.- Parameters:
columnIndex
- The index of the column to retrieve from theResultSet
.
-
FloatColumnListHandler
Creates a new instance of ColumnListHandler.- Parameters:
columnName
- The name of the column to retrieve from theResultSet
.
-
-
Method Details
-
handleRow
Returns oneResultSet
column value asObject
.- Overrides:
handleRow
in classorg.apache.commons.dbutils.handlers.ColumnListHandler<Float>
- Parameters:
rs
-ResultSet
to 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)
-