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

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

public class ArrayListHandler
extends java.lang.Object

ResultSetHandler implementation that converts the ResultSet into a List of Object[]s. This class is thread safe.

関連項目:
ResultSetHandler

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

コンストラクタの詳細

ArrayListHandler

public ArrayListHandler()
Creates a new instance of ArrayListHandler using a BasicRowProcessor for conversions.


ArrayListHandler

public ArrayListHandler(RowProcessor convert)
Creates a new instance of ArrayListHandler.

パラメータ:
convert - The RowProcessor implementation to use when converting rows into Object[]s.
メソッドの詳細

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)