database
b2007092001

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

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

public final class ResultColumnDefinition
extends ResultAccessorAbstract

カラム定義情報保持クラス

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

作成者:
Kitagawa

フィールドの概要
 
クラス org.phosphoresce.commons.database.accessor.ResultAccessorAbstract から継承したフィールド
error, listener, log, resultSet, state
 
メソッドの概要
 java.lang.String getCatalog()
          カタログ名を取得します。
 java.lang.Class getColumnClass()
          カラムクラスを取得します。
 int getDisplaySize()
          カラム通常最大幅を取得します。
 int getIndex()
          カラムインデックスを取得します。
 java.lang.String getLabel()
          カラムラベルを取得します。
 java.lang.String getName()
          カラム名を取得します。
 int getPrecision()
          10進桁数を取得します。
 int getScale()
          小数点以下桁数を取得します。
 java.lang.String getSchema()
          スキーマ名を取得します。
 java.lang.String getTable()
          テーブル名を取得します。
 int getType()
          カラムタイプを取得します。
 java.lang.String getTypeName()
          カラムタイプ名を取得します。
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()

getIndex

public int getIndex()
カラムインデックスを取得します。

戻り値:
カラムインデックス

getCatalog

public java.lang.String getCatalog()
カタログ名を取得します。

戻り値:
カタログ名

getColumnClass

public java.lang.Class getColumnClass()
カラムクラスを取得します。

戻り値:
カラムクラス

getDisplaySize

public int getDisplaySize()
カラム通常最大幅を取得します。

戻り値:
カラム通常最大幅

getLabel

public java.lang.String getLabel()
カラムラベルを取得します。

戻り値:
カラムラベル

getName

public java.lang.String getName()
カラム名を取得します。

戻り値:
カラム名

getType

public int getType()
カラムタイプを取得します。

戻り値:
カラムタイプ

getTypeName

public java.lang.String getTypeName()
カラムタイプ名を取得します。

戻り値:
カラムタイプ名

getPrecision

public int getPrecision()
10進桁数を取得します。

戻り値:
10進桁数

getScale

public int getScale()
小数点以下桁数を取得します。

戻り値:
小数点以下桁数

getSchema

public java.lang.String getSchema()
スキーマ名を取得します。

戻り値:
スキーマ名

getTable

public java.lang.String getTable()
テーブル名を取得します。

戻り値:
tableName

toString

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

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

database
b2007092001