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

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

public class MapListHandler
extends java.lang.Object

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

関連項目:
ResultSetHandler

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

コンストラクタの詳細

MapListHandler

public MapListHandler()
Creates a new instance of MapListHandler using a BasicRowProcessor for conversion.


MapListHandler

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

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

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)