|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
public interface IQueryTransaction
一括して確定処理されるべきクエリを囲むトランザクション・クラスの
インターフェイス。
begin()メソッドの実行からend()メソッドの実行までを一つの
トランザクションとして、その間に実行されたクエリによる各接続先への更新の確定
または取消をまとめて実行する。
| 入れ子のクラスの概要 | |
|---|---|
static class |
IQueryTransaction.Error
このクラスで発生しうるエラーの列挙型。 |
static class |
IQueryTransaction.State
トランザクションの状態を示す列挙型。 |
| メソッドの概要 | |
|---|---|
void |
begin()
トランザクションの開始処理を実行する。 |
void |
commit()
トランザクション内のクエリの実行結果の確定処理を実行する。 |
void |
end()
トランザクションを終了する。 |
long |
getBeginTimeMillis()
トランザクションの開始時刻を取得する。 |
long |
getLimitTimeMillis()
トランザクションの制限時刻を取得する。 |
IQuery |
getQuery(java.lang.String queryId)
指定されたクエリIDに対応するクエリ・オブジェクトを取得する。 |
IQueryConnection |
getQueryConnection(java.lang.String connId)
指定された接続先IDに対応するクエリ・コネクション・オブジェクトを取得する。 |
IQueryExecution |
getQueryExecution(java.lang.String execId)
指定された実行IDに対応するクエリ実行ブジェクトを取得する。 |
IQueryHistory |
getQueryHistory()
このトランザクションの中で実行されたクエリの実行履歴を格納する IQueryHistoryオブジェクトを取得する。 |
IQueryTransaction.State |
getState()
トランザクションの状態を取得する。 |
long |
getTimeoutMillis()
トランザクションのタイムアウト時間を取得する。 |
void |
rollback()
トランザクション内のクエリの実行結果の取消処理を実行する。 |
void |
setTimeoutMillis(long millis)
トランザクションのタイムアウト時間を設定する。 |
| メソッドの詳細 |
|---|
void begin()
throws ts.util.ReasonedException,
ts.util.ReasonedRuntimeException
ts.util.ReasonedException - トランザクションの開始処理に失敗した場合。
ts.util.ReasonedRuntimeException - トランザクションの状態が不正な場合。
void commit()
throws ts.util.ReasonedException,
ts.util.ReasonedRuntimeException
ts.util.ReasonedException - トランザクションの確定処理に失敗した場合。
ts.util.ReasonedRuntimeException - トランザクションの状態が不正な場合。
void rollback()
throws ts.util.ReasonedRuntimeException
ts.util.ReasonedRuntimeException - トランザクションの取消処理に失敗した場合、
又はトランザクションの状態が不正な場合。
void end()
throws ts.util.ReasonedRuntimeException
ts.util.ReasonedRuntimeException - トランザクションの終了処理に失敗した場合、
又はトランザクションの状態が不正な場合。IQueryTransaction.State getState()
long getBeginTimeMillis()
long getLimitTimeMillis()
long getTimeoutMillis()
void setTimeoutMillis(long millis)
millis - トランザクションのタイムアウト時間 [msec]。IQueryHistory getQueryHistory()
IQueryHistoryオブジェクトを取得する。
IQueryHistoryオブジェクト。
IQueryConnection getQueryConnection(java.lang.String connId)
throws ts.util.ReasonedException,
ts.util.ReasonedRuntimeException
connId - 接続先ID。
ts.util.ReasonedException - コネクションの開始処理に失敗した場合。
ts.util.ReasonedRuntimeException - コネクション・オブジェクトの作成に失敗
した場合、又はトランザクションの状態が不正な場合。
IQueryExecution getQueryExecution(java.lang.String execId)
throws ts.util.ReasonedException,
ts.util.ReasonedRuntimeException
execId - 実行ID。
ts.util.ReasonedException - クエリが使用するコネクションの開始処理に失敗した
場合。
ts.util.ReasonedRuntimeException - クエリ実行オブジェクトの作成に失敗した
場合、又はトランザクションの状態が不正な場合。
IQuery getQuery(java.lang.String queryId)
throws ts.util.ReasonedException,
ts.util.ReasonedRuntimeException
queryId - クエリID。
ts.util.ReasonedException - クエリが使用するコネクションの開始処理に失敗した
場合。
ts.util.ReasonedRuntimeException - クエリ・オブジェクトの作成に失敗した場合、
又はトランザクションの状態が不正な場合。
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||