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

java.lang.Object
  extended by org.xerial.db.sql.ResultSetHandler<T>
Direct Known Subclasses:
BeanReader, ColumnReader, JSONObjectReader, JSONValueReader, ResultPullReader

public abstract class ResultSetHandler<T>
extends Object

A ResultSet handler converts a given row in a ResultSet (java.sql.ResultSet) into a object of type T.

Author:
leo

Constructor Summary
ResultSetHandler()
           
 
Method Summary
 void finish()
           
abstract  T handle(ResultSet rs)
           
 void init()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetHandler

public ResultSetHandler()
Method Detail

init

public void init()

handle

public abstract T handle(ResultSet rs)
                  throws SQLException
Throws:
SQLException

finish

public void finish()


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