database
b2007102101

org.phosphoresce.commons.database.accessor
クラス ResultRowDefinition

java.lang.Object
  拡張org.phosphoresce.commons.database.accessor.ResultAccessorAbstract
      拡張org.phosphoresce.commons.database.accessor.ResultRowDefinition
すべての実装インタフェース:
ResultAccessor

public final class ResultRowDefinition
extends ResultAccessorAbstract

行定義情報保持クラス

当クラスは行定義情報に閉じられたクラスであり、それらの情報を更新する固有のrefreshResultインタフェースを コンストラクタによって呼ばれるため、このクラスを継承されることを許可しません。
また、当クラスは基底となるResultSetにおいて、行位置の情報は不要であるため、行位置情報は保持、提供しません。

作成者:
Kitagawa

フィールドの概要
 
クラス org.phosphoresce.commons.database.accessor.ResultAccessorAbstract から継承したフィールド
error, listener, log, resultSet, state
 
メソッドの概要
 int getColumnCount()
          行が保持するカラム数を取得します。
 ResultColumnDefinition getColumnDefinition(int columnIndex)
          指定されたカラムインデックスのカラム定義情報オブジェクトを取得します。
 ResultColumnDefinition getColumnDefinition(java.lang.String name)
          指定されたカラム名のカラム定義情報オブジェクトを取得します。
 int getColumnIndex(java.lang.String name)
          指定されたカラム名のカラムインデックスを取得します。
 java.lang.String getColumnName(int resultColumnsIndex)
          指定されたカラムインデックスのカラム名を取得します。
 java.util.Iterator getColumnNameIterator()
          カラム名のIteratorオブジェクトを取得します。
 java.lang.String[] getColumnNames()
          カラム名配列を取得します。
protected  void refreshResult(boolean force)
          ResultSetが現在提供する内容で自身のオブジェクトフィールドの更新を行います。
 java.lang.String toString()
          クラス情報を文字列として提供します。
protected  void updateResult()
          自身が保持する内容をResultSetに対して反映します。
 
クラス org.phosphoresce.commons.database.accessor.ResultAccessorAbstract から継承したメソッド
getError, getResultSetRowIndex, getState, hasError, moveCurser, refreshResult, validateStateListener
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

メソッドの詳細

refreshResult

protected void refreshResult(boolean force)
                      throws ResultSetAccessException,
                             IllegalResultSetLocationIndexException,
                             IllegalResultSetAdjustmentException
ResultSetが現在提供する内容で自身のオブジェクトフィールドの更新を行います。

定義:
クラス ResultAccessorAbstract 内の refreshResult
パラメータ:
force - 定義情報のみの後身であるため、フラグに関係なく必ず更新が行われます
例外:
ResultSetAccessException - 正常にResultSetへの操作が行えなかった場合に発生
IllegalResultSetLocationIndexException - 不正な位置情報を操作した場合に発生
IllegalResultSetAdjustmentException - ResultSetとの整合性が取られていない場合に発生
関連項目:
ResultAccessorAbstract.refreshResult(boolean)

updateResult

protected void updateResult()
                     throws ResultSetAccessException,
                            IllegalResultSetLocationIndexException,
                            IllegalResultSetAdjustmentException
自身が保持する内容をResultSetに対して反映します。
当オブジェクトは定義情報のみを閲覧専用として提供する為、当処理は何も行いません。

定義:
クラス ResultAccessorAbstract 内の updateResult
例外:
ResultSetAccessException - 正常にResultSetへの操作が行えなかった場合に発生
IllegalResultSetLocationIndexException - 不正な位置情報を操作した場合に発生
IllegalResultSetAdjustmentException - ResultSetとの整合性が取られていない場合に発生
関連項目:
ResultAccessorAbstract.updateResult()

getColumnNameIterator

public java.util.Iterator getColumnNameIterator()
カラム名のIteratorオブジェクトを取得します。

戻り値:
カラム名のIteratorオブジェクト

getColumnNames

public java.lang.String[] getColumnNames()
カラム名配列を取得します。

戻り値:
カラム名配列

getColumnCount

public int getColumnCount()
行が保持するカラム数を取得します。

戻り値:
行が保持するカラム数

getColumnIndex

public int getColumnIndex(java.lang.String name)
                   throws IllegalResultSetLocationIndexException
指定されたカラム名のカラムインデックスを取得します。

パラメータ:
name - カラム名
戻り値:
指定されたカラム名のカラムインデックス(0〜)
例外:
IllegalResultSetLocationIndexException - 指定されたカラム名が行に存在しない場合に発生

getColumnName

public java.lang.String getColumnName(int resultColumnsIndex)
                               throws IllegalResultSetLocationIndexException
指定されたカラムインデックスのカラム名を取得します。

パラメータ:
resultColumnsIndex - カラムインデックス(0〜)
戻り値:
指定されたカラムインデックスのカラム名
例外:
IllegalResultSetLocationIndexException - 不正なカラムインデックスが指定された場合に発生

getColumnDefinition

public ResultColumnDefinition getColumnDefinition(int columnIndex)
                                           throws IllegalResultSetLocationIndexException
指定されたカラムインデックスのカラム定義情報オブジェクトを取得します。

パラメータ:
columnIndex - カラムインデックス(0〜)
戻り値:
カラム定義情報オブジェクト
例外:
IllegalResultSetLocationIndexException - 不正なカラムインデックスが指定された場合に発生

getColumnDefinition

public ResultColumnDefinition getColumnDefinition(java.lang.String name)
                                           throws IllegalResultSetLocationIndexException
指定されたカラム名のカラム定義情報オブジェクトを取得します。

パラメータ:
name - カラム名
戻り値:
カラム定義情報オブジェクト
例外:
IllegalResultSetLocationIndexException - 指定されたカラム名が行に存在しない場合に発生

toString

public java.lang.String toString()
クラス情報を文字列として提供します。

戻り値:
クラス情報文字列
関連項目:
Object.toString()

database
b2007102101