org.apache.commons.dbutils
クラス ResultSetIterator

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

public class ResultSetIterator
extends Object
implements Iterator

IteratorResultSet をラップしたものです。 これは、領域非依存データを非データベースアプリケーション層へ提供したいときに有効です。

Wraps a ResultSet in an Iterator. This is useful when you want to present a non-database application layer with domain neutral data.

この実装は、ResultSet.isLast() メソッドの実装を必要とします。

This implementation requires the ResultSet.isLast() method to be implemented.

作成者:
Henri Yandell, David Graham
翻訳者:
小川 環
校正者:
日置 聡
翻訳状況:
校正者校正中
翻訳更新日:
2003/12/22

コンストラクタの概要
ResultSetIterator(ResultSet rs)
          ResultSetIterator のコンストラクタ。
ResultSetIterator(ResultSet rs, RowProcessor convert)
          ResultSetIterator のコンストラクタ。
 
メソッドの概要
 boolean hasNext()
           
 Object next()
          次行の中身を Object[] として返します。
 void remove()
          ResultSet から現在行を削除します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ResultSetIterator

public ResultSetIterator(ResultSet rs)
ResultSetIterator のコンストラクタ。
Constructor for ResultSetIterator.

パラメータ:
rs - Iterator にこの ResultSet をラップします。
Wrap this ResultSet in an Iterator.

ResultSetIterator

public ResultSetIterator(ResultSet rs,
                         RowProcessor convert)
ResultSetIterator のコンストラクタ。
Constructor for ResultSetIterator.

パラメータ:
rs - Iterator にこの ResultSet をラップします。
Wrap this ResultSet in an Iterator.
convert - 行を Object[] へ変換する際に使用するプロセッサ。 デフォルトでは BasicRowProcessor が使用されます。
The processor to use when converting a row into an Object[]. Defaults to a BasicRowProcessor.
メソッドの詳細

hasNext

public boolean hasNext()
定義:
インタフェース Iterator 内の hasNext

next

public Object next()
次行の中身を Object[] として返します。
Returns the next row as an Object[].

定義:
インタフェース Iterator 内の next
戻り値:
ResultSetのカラムと同じ要素数の Object[]
An Object[] with the same number of elements as columns in the ResultSet.
関連項目:
Iterator.next()

remove

public void remove()
ResultSet から現在行を削除します。
Deletes the current row from the ResultSet.

定義:
インタフェース Iterator 内の remove
関連項目:
Iterator.remove()


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