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

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

public class ArrayHandler
extends Object
implements ResultSetHandler

ResultSetObject[]へ変換する ResultSetHandler の実装です。 このクラスはスレッドセーフです。

ResultSetHandler implementation that converts a ResultSet into an Object[]. This class is thread safe.

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

コンストラクタの概要
ArrayHandler()
          変換に BasicRowProcessor を使用する ArrayHandler の新規インスタンスを作成します。
ArrayHandler(RowProcessor convert)
          ArrayHandler の新規インスタンスを作成します。
 
メソッドの概要
 Object handle(ResultSet rs)
          Object[]に先頭行から取得したカラム値を設定します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ArrayHandler

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


ArrayHandler

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

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

handle

public Object handle(ResultSet rs)
              throws SQLException
Object[]に先頭行から取得したカラム値を設定します。
Places the column values from the first row in an Object[].

定義:
インタフェース ResultSetHandler 内の handle
パラメータ:
rs - ハンドルする ResultSet。 このメソッドに渡す前に手をつけてはいけません。
The ResultSet to handle. It has not been touched before being passed to this method.
戻り値:
Object[]、ResultSet が0行の場合は null
An Object[] 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