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

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

public class MapListHandler
extends Object
implements ResultSetHandler

ResultSet の先頭行を MapList へ変換する ResultSetHandler の実装です。 このクラスはスレッドセーフです。

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

作成者:
David Graham
関連項目:
ResultSetHandler
翻訳者:
小川 環
校正者:
日置 聡
翻訳状況:
校正者校正中
翻訳更新日:
2003/12/22

コンストラクタの概要
MapListHandler()
          変換に BasicRowProcessor を使用する MapListHandler の新規インスタンスを作成します。
MapListHandler(RowProcessor convert)
          MapListHandler の新規インスタンスを作成します。
 
メソッドの概要
 Object handle(ResultSet rs)
          ResultSet の行を MapList へ変換します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

MapListHandler

public MapListHandler()
変換に BasicRowProcessor を使用する MapListHandler の新規インスタンスを作成します。
Creates a new instance of MapListHandler using a BasicRowProcessor for conversion.


MapListHandler

public MapListHandler(RowProcessor convert)
MapListHandler の新規インスタンスを作成します。
Creates a new instance of MapListHandler.

パラメータ:
convert - 行を Map へ変換する際に使用する RowProcessor 実装。
The RowProcessor implementation to use when converting rows into Maps.
メソッドの詳細

handle

public Object handle(ResultSet rs)
              throws SQLException
ResultSet の行を MapList へ変換します。
Converts the ResultSet rows into a List of Map objects.

定義:
インタフェース ResultSetHandler 内の handle
パラメータ:
rs - ハンドルする ResultSet。 このメソッドに渡す前に手をつけてはいけません。
The ResultSet to handle. It has not been touched before being passed to this method.
戻り値:
MapList 、null は返されません。
A List of Maps, never null.
例外:
SQLException
関連項目:
ResultSetHandler.handle(java.sql.ResultSet)


このドキュメントは、Ja-Jakartaにより訳されました。 コメントがある場合は report@jajakarta.orgまでお願いします。
Translated into Japanese by jajakarta.org. The original page is here.
Copyright (c) 2002-2003 - Apache Software Foundation