org.apache.commons.dbutils.handlers
クラス MapHandler
java.lang.Object
org.apache.commons.dbutils.handlers.MapHandler
- すべての実装インタフェース:
- ResultSetHandler
- public class MapHandler
- extends Object
- implements ResultSetHandler
ResultSetの先頭行をMapへ変換するResultSetHandlerの実装です。 このクラスはスレッドセーフです。
ResultSetHandler implementation that converts the first
ResultSet row into a Map. This class is thread
safe.
- 作成者:
- Juozas Baliuka, David Graham
- 関連項目:
ResultSetHandler - 翻訳者:
- 小川 環
- 校正者:
- 日置 聡
- 翻訳状況:
- 校正者校正中
- 翻訳更新日:
- 2003/12/22
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapHandler
public MapHandler()
- 変換に
BasicRowProcessor を使用する MapHandler の新規インスタンスを作成します。
Creates a new instance of MapHandler using a
BasicRowProcessor for conversion.
MapHandler
public MapHandler(RowProcessor convert)
- MapHandlerの新規インスタンスを作成します。
Creates a new instance of MapHandler.
- パラメータ:
convert - 行を Map へ変換する際に使用する RowProcessor 実装。
The RowProcessor implementation
to use when converting rows into Maps.
handle
public Object handle(ResultSet rs)
throws SQLException
ResultSet の先頭行を Map へ変換します。
Converts the first row in the ResultSet into a
Map.
- 定義:
- インタフェース
ResultSetHandler 内の handle
- パラメータ:
rs - ハンドルする ResultSet。 このメソッドに渡す前に手をつけてはいけません。
The ResultSet to handle. It has not been touched
before being passed to this method.
- 戻り値:
- 先頭行から取得した値を入れた
Map、 ResultSet が0行の場合は null。
A Map with the values from the first row or
null if there are no rows in the ResultSet.
- 例外:
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