6.3.10 PctoResultSetMetadataクラス
- 説明
-
ResultSetオブジェクトの列の型とプロパティに関する情報を取得するのに使用するクラスです。
- メソッド
-
PctoResultSetMetadataクラスのメソッドの一覧を次の表に示します。
表6‒20 PctoResultSetMetadataクラスのメソッドの一覧 メソッド
説明
getColumnClassName(int column)
Javaクラスの完全指定された名前を返します。
getColumnCount()
このResultSetオブジェクトの列数を返します。
getColumnLabel(int column)
印刷や表示に使用する、指定された列の推奨タイトルを取得します。
getColumnName(int column)
指定された列の名前を取得します。
getColumnType(int column)
指定された列のSQL型を取得します。
- パッケージ名称
jp.co.Hitachi.soft.hmppcto.jdbc.client
- 〈この項の構成〉
(1) getColumnClassName(int column)
- 説明
-
Javaクラスの完全指定された名前を返します。
- 形式
public java.lang.String getColumnClassName(int column) throws java.sql.SQLException
- 引数
-
- int column:
-
列インデックスを指定します。最初の列は1、2番目の列は2、…となります。
- 戻り値
-
Javaプログラミング言語のクラスの完全指定された名前を返します。
- 例外
-
PctoCommunicationFailureException例外とPctoInternalContradictionException例外以外は、ParticipantでJDBC Driverが送出した例外を送出します。
- java.sql.SQLException:
-
データベースアクセスエラーが発生した場合に送出します。
- PctoCommunicationFailureException:
-
Entity-ServiceとParticipant間の通信に失敗した場合に送出します。
- PctoInternalContradictionException:
-
Participantの内部で障害が発生した場合に送出します。
- PctoTransactionStartException:
-
トランザクションの範囲外で実行されたためトランザクションブランチの開始に失敗した場合に送出します。
(2) getColumnCount()
- 説明
-
このResultSetオブジェクトの列数を返します。
- 形式
public int getColumnCount() throws java.sql.SQLException
- 引数
-
なし。
- 戻り値
-
列数を返します。
- 例外
-
PctoCommunicationFailureException例外とPctoInternalContradictionException例外以外は、ParticipantでJDBC Driverが送出した例外を送出します。
- java.sql.SQLException:
-
データベースアクセスエラーが発生した場合に送出します。
- PctoCommunicationFailureException:
-
Entity-ServiceとParticipant間の通信に失敗した場合に送出します。
- PctoInternalContradictionException:
-
Participantの内部で障害が発生した場合に送出します。
- PctoTransactionStartException:
-
トランザクションの範囲外で実行されたためトランザクションブランチの開始に失敗した場合に送出します。
(3) getColumnLabel(int column)
- 説明
-
印刷や表示に使用する、指定された列の推奨タイトルを取得します。通常、推奨タイトルは、SQL AS節として指定されます。SQL AS節が指定されていない場合、getColumnLabelから返される値は、getColumnNameメソッドによって返される値と同じになります。
- 形式
public java.lang.String getColumnLabel(int column) throws java.sql.SQLException
- 引数
-
- int column:
-
列インデックスを指定します。最初の列は1、2番目の列は2、…となります。
- 戻り値
-
列の推奨タイトルを返します。
- 例外
-
PctoCommunicationFailureException例外とPctoInternalContradictionException例外以外は、ParticipantでJDBC Driverが送出した例外を送出します。
- java.sql.SQLException:
-
データベースアクセスエラーが発生した場合に送出します。
- PctoCommunicationFailureException:
-
Entity-ServiceとParticipant間の通信に失敗した場合に送出します。
- PctoInternalContradictionException:
-
Participantの内部で障害が発生した場合に送出します。
- PctoTransactionStartException:
-
トランザクションの範囲外で実行されたためトランザクションブランチの開始に失敗した場合に送出します。
(4) getColumnName(int column)
- 説明
-
指定された列の名前を取得します。
- 形式
public java.lang.String getColumnName(int column) throws java.sql.SQLException
- 引数
-
- int column:
-
列インデックスを指定します。最初の列は1、2番目の列は2、…となります。
- 戻り値
-
列名を返します。
- 例外
-
PctoCommunicationFailureException例外とPctoInternalContradictionException例外以外は、ParticipantでJDBC Driverが送出した例外を送出します。
- java.sql.SQLException:
-
データベースアクセスエラーが発生した場合に送出します。
- PctoCommunicationFailureException:
-
Entity-ServiceとParticipant間の通信に失敗した場合に送出します。
- PctoInternalContradictionException:
-
Participantの内部で障害が発生した場合に送出します。
- PctoTransactionStartException:
-
トランザクションの範囲外で実行されたためトランザクションブランチの開始に失敗した場合に送出します。
(5) getColumnType(int column)
- 説明
-
指定された列のSQL型を取得します。
- 形式
public int getColumnType(int column) throws java.sql.SQLException
- 引数
-
- int column:
-
列インデックスを指定します。最初の列は1、2番目の列は2、…となります。
- 戻り値
-
java.sql.TypesからのSQL型を返します。
- 例外
-
PctoCommunicationFailureException例外とPctoInternalContradictionException例外以外は、ParticipantでJDBC Driverが送出した例外を送出します。
- java.sql.SQLException:
-
データベースアクセスエラーが発生した場合に送出します。
- PctoCommunicationFailureException:
-
Entity-ServiceとParticipant間の通信に失敗した場合に送出します。
- PctoInternalContradictionException:
-
Participantの内部で障害が発生した場合に送出します。
- PctoTransactionStartException:
-
トランザクションの範囲外で実行されたためトランザクションブランチの開始に失敗した場合に送出します。