|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
RowProcessor の実装は、 ResultSet の行を他のさまざまなオブジェクトへ変換します。
実装は、このインターフェースに対する変更から自身を保護するために、 BasicRowProcessor を継承可能です。
RowProcessor implementations convert
ResultSet rows into various other objects. Implementations
can extend BasicRowProcessor to protect themselves
from changes to this interface.
BasicRowProcessor | メソッドの概要 | |
Object[] |
toArray(ResultSet rs)
ResultSet 一行分のカラム値から Object[] を作成します。
|
Object |
toBean(ResultSet rs,
Class type)
ResultSet 一行分のカラム値から JavaBean を作成します。
|
List |
toBeanList(ResultSet rs,
Class type)
ResultSet 全行のカラム値からJavaBeansの List を作成します。
|
Map |
toMap(ResultSet rs)
ResultSet 一行分のカラム値から Map を作成します。
|
| メソッドの詳細 |
public Object[] toArray(ResultSet rs)
throws SQLException
ResultSet 一行分のカラム値から Object[] を作成します。
ResultSet はこのメソッドへ渡す前に、有効な行へ位置を設定しておいてください。
このメソッドの実装では、ResultSet の行の位置を変更してはいけません。
Object[] from the column values in one
ResultSet row. The ResultSet should be
positioned on a valid row before passing it to this method.
Implementations of this method must not alter the row position of
the ResultSet.
SQLException
public Object toBean(ResultSet rs,
Class type)
throws SQLException
ResultSet 一行分のカラム値から JavaBean を作成します。
ResultSet はこのメソッドへ渡す前に、有効な行へ位置を設定しておいてください。
このメソッドの実装では、ResultSet の行の位置を変更してはいけません。
ResultSet
row. The ResultSet should be positioned on a valid row before
passing it to this method. Implementations of this method must not
alter the row position of the ResultSet.
SQLException
public List toBeanList(ResultSet rs,
Class type)
throws SQLException
ResultSet 全行のカラム値からJavaBeansの List を作成します。
このメソッドへ渡す前に、ResultSet.next() を呼び出しを行わないでください。
List of JavaBeans from the column values in all
ResultSet rows. ResultSet.next() should
not be called before passing it to this method.
ResultSet によって返された順序にしたがっている指定された型の Bean の List。
List of beans with the given type in the order
they were returned by the ResultSet.SQLException
public Map toMap(ResultSet rs)
throws SQLException
ResultSet 一行分のカラム値から Map を作成します。
ResultSet はこのメソッドへ渡す前に、有効な行へ位置を設定しておいてください。
このメソッドの実装では、ResultSet の行の位置を変更してはいけません。
Map from the column values in one
ResultSet row. The ResultSet should be
positioned on a valid row before
passing it to this method. Implementations of this method must not
alter the row position of the ResultSet.
SQLException
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||