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

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

public abstract class BeanResultHandler<T>
extends Object


Constructor Summary
protected BeanResultHandler(Class<T> beanClass)
           
 
Method Summary
 void finish()
           
 Class<T> getClassType()
           
abstract  void handle(T bean)
           
 void init()
           
 T toBean(ResultSet resultSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanResultHandler

protected BeanResultHandler(Class<T> beanClass)
Method Detail

init

public void init()

handle

public abstract void handle(T bean)
                     throws SQLException
Throws:
SQLException

toBean

public T toBean(ResultSet resultSet)
         throws SQLException
Throws:
SQLException

getClassType

public Class<T> getClassType()

finish

public void finish()


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