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

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

public class ArrayHandler
extends java.lang.Object
implements ResultSetHandler

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

関連項目:
ResultSetHandler

コンストラクタの概要
ArrayHandler()
          Creates a new instance of ArrayHandler using a BasicRowProcessor for conversion.
ArrayHandler(RowProcessor convert)
          Creates a new instance of ArrayHandler.
 
メソッドの概要
 java.lang.Object handle(java.sql.ResultSet rs)
          Places the column values from the first row in an Object[].
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ArrayHandler

public ArrayHandler()
Creates a new instance of ArrayHandler using a BasicRowProcessor for conversion.


ArrayHandler

public ArrayHandler(RowProcessor convert)
Creates a new instance of ArrayHandler.

パラメータ:
convert - The RowProcessor implementation to use when converting rows into arrays.
メソッドの詳細

handle

public java.lang.Object handle(java.sql.ResultSet rs)
                        throws java.sql.SQLException
Places the column values from the first row in an Object[].

定義:
インタフェース ResultSetHandler 内の handle
パラメータ:
rs - The ResultSet to handle. It has not been touched before being passed to this method.
戻り値:
An Object[] or null if there are no rows in the ResultSet.
例外:
java.sql.SQLException - if a database access error occurs
関連項目:
ResultSetHandler.handle(java.sql.ResultSet)