|
database b2007102101 |
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectorg.phosphoresce.commons.database.accessor.ResultAccessorAbstract
org.phosphoresce.commons.database.accessor.ResultTemplateRow
行情報保持クラス
当クラスはResultSetへの直接参照更新は行われず、常に独立した情報を操作します。
ユーザーによって当オブジェクトが挿入されたタイミングで自身のオブジェクトと同一の情報を保持するカラムオブジェクトが
レコードアクセスクラスに新規に発生します。但し、自身のオブジェクト参照がレコードアクセスに挿入される訳ではありません。
あくまでも当オブジェクトはテンプレートクラスとしての位置づけであり、ResultSetとの依存関係は発生しません。
但し、定義情報のみはResultSetへの参照が行われ、妥当性はその情報と比較が行われます。
| フィールドの概要 |
| クラス org.phosphoresce.commons.database.accessor.ResultAccessorAbstract から継承したフィールド |
error, listener, log, resultSet, state |
| メソッドの概要 | |
ResultTemplateColumn |
getColumn(int index)
指定されたカラムインデックスのカラム情報オブジェクトを取得します。 |
ResultTemplateColumn |
getColumn(java.lang.String name)
指定されたカラム名のカラム情報オブジェクトを取得します。 |
ResultColumnDefinition |
getColumnDefinition(int index)
指定されたカラムインデックスのカラム定義情報オブジェクトを取得します。 |
ResultColumnDefinition |
getColumnDefinition(java.lang.String name)
指定されたカラム名のカラム定義情報オブジェクトを取得します。 |
ResultRowDefinition |
getDefinition()
行定義情報オブジェクトを取得します。 |
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 |
| メソッドの詳細 |
protected void refreshResult(boolean force)
throws ResultSetAccessException,
IllegalResultSetLocationIndexException,
IllegalResultSetAdjustmentException
ResultAccessorAbstract 内の refreshResultforce - 定義情報のみの更新であるため、フラグに関係なく必ず更新が行われます
ResultSetAccessException - 正常にResultSetへの操作が行えなかった場合に発生
IllegalResultSetLocationIndexException - 不正な位置情報を操作した場合に発生
IllegalResultSetAdjustmentException - ResultSetとの整合性が取られていない場合に発生ResultAccessorAbstract.refreshResult(boolean)
protected void updateResult()
throws ResultSetAccessException,
IllegalResultSetLocationIndexException,
IllegalResultSetAdjustmentException
ResultAccessorAbstract 内の updateResultResultSetAccessException - 正常にResultSetへの操作が行えなかった場合に発生
IllegalResultSetLocationIndexException - 不正な位置情報を操作した場合に発生
IllegalResultSetAdjustmentException - ResultSetとの整合性が取られていない場合に発生ResultAccessorAbstract.updateResult()public ResultRowDefinition getDefinition()
public ResultColumnDefinition getColumnDefinition(int index)
throws IllegalResultSetLocationIndexException
IllegalResultSetLocationIndexException - 不正なカラムインデックスが指定された場合に発生
public ResultColumnDefinition getColumnDefinition(java.lang.String name)
throws IllegalResultSetLocationIndexException
IllegalResultSetLocationIndexException - 不正なカラムインデックスが指定された場合に発生
public ResultTemplateColumn getColumn(int index)
throws IllegalResultSetLocationIndexException
index - カラムインデックス(0〜)
IllegalResultSetLocationIndexException - 不正なカラムインデックスが指定された場合に発生
public ResultTemplateColumn getColumn(java.lang.String name)
throws IllegalResultSetLocationIndexException
name - カラム名
IllegalResultSetLocationIndexException - 指定されたカラム名が行に存在しない場合に発生public java.lang.String toString()
Object.toString()
|
database b2007102101 |
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||