org.apache.commons.dbutils.handlers
クラス BeanListHandler

java.lang.Object
  上位を拡張 org.apache.commons.dbutils.handlers.BeanListHandler
すべての実装されたインタフェース:
ResultSetHandler

public class BeanListHandler
extends java.lang.Object

ResultSetHandler implementation that converts a ResultSet into a List of beans. This class is thread safe.

関連項目:
ResultSetHandler

コンストラクタの概要
BeanListHandler(java.lang.Class type)
          Creates a new instance of BeanListHandler.
BeanListHandler(java.lang.Class type, RowProcessor convert)
          Creates a new instance of BeanListHandler.
 
メソッドの概要
 java.lang.Object handle(java.sql.ResultSet rs)
          Whole ResultSet handler.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BeanListHandler

public BeanListHandler(java.lang.Class type)
Creates a new instance of BeanListHandler.

パラメータ:
type - The Class that objects returned from handle() are created from.

BeanListHandler

public BeanListHandler(java.lang.Class type,
                       RowProcessor convert)
Creates a new instance of BeanListHandler.

パラメータ:
type - The Class that objects returned from handle() are created from.
convert - The RowProcessor implementation to use when converting rows into beans.
メソッドの詳細

handle

public java.lang.Object handle(java.sql.ResultSet rs)
                        throws java.sql.SQLException
Whole ResultSet handler. It produce List as result. To convert individual rows into Java objects it uses handleRow(ResultSet) method.

定義:
インタフェース ResultSetHandler 内の handle
パラメータ:
rs - The ResultSet to handle. It has not been touched before being passed to this method.
戻り値:
An Object initialized with ResultSet data. It is legal for implementations to return null if the ResultSet contained 0 rows.
例外:
java.sql.SQLException - if a database access error occurs
関連項目:
handleRow(ResultSet)