|
database b2007102101 |
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.phosphoresce.commons.database.accessor.ResultAccessorAbstract
org.phosphoresce.commons.database.accessor.ResultRowDefinition
行定義情報保持クラス
当クラスは行定義情報に閉じられたクラスであり、それらの情報を更新する固有のrefreshResultインタフェースを
コンストラクタによって呼ばれるため、このクラスを継承されることを許可しません。
また、当クラスは基底となるResultSetにおいて、行位置の情報は不要であるため、行位置情報は保持、提供しません。
フィールドの概要 |
クラス 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 |
メソッドの詳細 |
protected void refreshResult(boolean force) throws ResultSetAccessException, IllegalResultSetLocationIndexException, IllegalResultSetAdjustmentException
ResultAccessorAbstract
内の refreshResult
force
- 定義情報のみの後身であるため、フラグに関係なく必ず更新が行われます
ResultSetAccessException
- 正常にResultSetへの操作が行えなかった場合に発生
IllegalResultSetLocationIndexException
- 不正な位置情報を操作した場合に発生
IllegalResultSetAdjustmentException
- ResultSetとの整合性が取られていない場合に発生ResultAccessorAbstract.refreshResult(boolean)
protected void updateResult() throws ResultSetAccessException, IllegalResultSetLocationIndexException, IllegalResultSetAdjustmentException
ResultAccessorAbstract
内の updateResult
ResultSetAccessException
- 正常にResultSetへの操作が行えなかった場合に発生
IllegalResultSetLocationIndexException
- 不正な位置情報を操作した場合に発生
IllegalResultSetAdjustmentException
- ResultSetとの整合性が取られていない場合に発生ResultAccessorAbstract.updateResult()
public java.util.Iterator getColumnNameIterator()
public java.lang.String[] getColumnNames()
public int getColumnCount()
public int getColumnIndex(java.lang.String name) throws IllegalResultSetLocationIndexException
name
- カラム名
IllegalResultSetLocationIndexException
- 指定されたカラム名が行に存在しない場合に発生public java.lang.String getColumnName(int resultColumnsIndex) throws IllegalResultSetLocationIndexException
resultColumnsIndex
- カラムインデックス(0〜)
IllegalResultSetLocationIndexException
- 不正なカラムインデックスが指定された場合に発生public ResultColumnDefinition getColumnDefinition(int columnIndex) throws IllegalResultSetLocationIndexException
columnIndex
- カラムインデックス(0〜)
IllegalResultSetLocationIndexException
- 不正なカラムインデックスが指定された場合に発生public ResultColumnDefinition getColumnDefinition(java.lang.String name) throws IllegalResultSetLocationIndexException
name
- カラム名
IllegalResultSetLocationIndexException
- 指定されたカラム名が行に存在しない場合に発生public java.lang.String toString()
Object.toString()
|
database b2007102101 |
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |