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

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

public class MapHandler
extends java.lang.Object
implements ResultSetHandler

ResultSetHandler implementation that converts the first ResultSet row into a Map. This class is thread safe.

関連項目:
ResultSetHandler

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

コンストラクタの詳細

MapHandler

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


MapHandler

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

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

handle

public java.lang.Object handle(java.sql.ResultSet rs)
                        throws java.sql.SQLException
Converts the first row in the ResultSet into a Map.

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