Package org.knowm.yank.handlers
Class FloatScalarHandler
java.lang.Object
org.apache.commons.dbutils.handlers.ScalarHandler<Float>
org.knowm.yank.handlers.FloatScalarHandler
- All Implemented Interfaces:
- org.apache.commons.dbutils.ResultSetHandler<Float>
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new instance of ColumnListHandler.FloatScalarHandler(int columnIndex) Creates a new instance of ColumnListHandler.FloatScalarHandler(String columnName) Creates a new instance of ColumnListHandler.
- 
Method Summary
- 
Constructor Details- 
FloatScalarHandlerpublic FloatScalarHandler()Creates a new instance of ColumnListHandler. The first column of each row will be returned fromhandle().
- 
FloatScalarHandlerpublic FloatScalarHandler(int columnIndex) Creates a new instance of ColumnListHandler.- Parameters:
- columnIndex- The index of the column to retrieve from the- ResultSet.
 
- 
FloatScalarHandlerCreates a new instance of ColumnListHandler.- Parameters:
- columnName- The name of the column to retrieve from the- ResultSet.
 
 
- 
- 
Method Details- 
handleReturns oneResultSetcolumn as an object via theResultSet.getObject()method that performs type conversions.- Specified by:
- handlein interface- org.apache.commons.dbutils.ResultSetHandler<Float>
- Overrides:
- handlein class- org.apache.commons.dbutils.handlers.ScalarHandler<Float>
- Parameters:
- rs-- ResultSetto process.
- Returns:
- The column or nullif there are no rows in theResultSet.
- Throws:
- SQLException- if a database access error occurs
- ClassCastException- if the class datatype does not match the column type
- See Also:
- 
- ResultSetHandler.handle(java.sql.ResultSet)
 
 
 
-