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

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

public class ColumnListHandler
extends java.lang.Object

ResultSetHandler implementation that converts one ResultSet column into a List of Objects. This class is thread safe.

導入されたバージョン:
DbUtils 1.1
関連項目:
ResultSetHandler

コンストラクタの概要
ColumnListHandler()
          Creates a new instance of ColumnListHandler.
ColumnListHandler(int columnIndex)
          Creates a new instance of ColumnListHandler.
ColumnListHandler(java.lang.String columnName)
          Creates a new instance of ColumnListHandler.
 
メソッドの概要
 java.lang.Object handle(java.sql.ResultSet rs)
          Whole ResultSet handler.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ColumnListHandler

public ColumnListHandler()
Creates a new instance of ColumnListHandler. The first column of each row will be returned from handle().


ColumnListHandler

public ColumnListHandler(int columnIndex)
Creates a new instance of ColumnListHandler.

パラメータ:
columnIndex - The index of the column to retrieve from the ResultSet.

ColumnListHandler

public ColumnListHandler(java.lang.String columnName)
Creates a new instance of ColumnListHandler.

パラメータ:
columnName - The name of the column to retrieve from the ResultSet.
メソッドの詳細

handle

public java.lang.Object handle(java.sql.ResultSet rs)
                        throws java.sql.SQLException
Whole ResultSet handler. It produce List as result. To convert individual rows into Java objects it uses handleRow(ResultSet) method.

定義:
インタフェース ResultSetHandler 内の handle
パラメータ:
rs - The ResultSet to handle. It has not been touched before being passed to this method.
戻り値:
An Object initialized with ResultSet data. It is legal for implementations to return null if the ResultSet contained 0 rows.
例外:
java.sql.SQLException - if a database access error occurs
関連項目:
handleRow(ResultSet)