org.xerial.db.sql
Class ColumnReader<T>

java.lang.Object
  extended by org.xerial.db.sql.ResultSetHandler<T>
      extended by org.xerial.db.sql.ColumnReader<T>

public class ColumnReader<T>
extends ResultSetHandler<T>

convert a column in a ResultSet into the specified value

Author:
leo

Constructor Summary
ColumnReader(String columnName)
           
 
Method Summary
 T handle(ResultSet rs)
           
 
Methods inherited from class org.xerial.db.sql.ResultSetHandler
finish, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnReader

public ColumnReader(String columnName)
Method Detail

handle

public T handle(ResultSet rs)
         throws SQLException
Specified by:
handle in class ResultSetHandler<T>
Throws:
SQLException


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.