|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectts.query.QueryTransaction
public class QueryTransaction
トランザクションを表すクラス。
| 入れ子のクラスの概要 |
|---|
| インタフェース ts.query.IQueryTransaction から継承された入れ子のクラス/インタフェース |
|---|
IQueryTransaction.Error, IQueryTransaction.State |
| コンストラクタの概要 | |
|---|---|
protected |
QueryTransaction()
デフォルト・コンストラクタ。 |
| メソッドの概要 | |
|---|---|
void |
begin()
トランザクションの開始処理を実行する。 |
protected void |
changeState(IQueryTransaction.State[] froms,
IQueryTransaction.State to)
トランザクションの状態を変更する。 |
protected void |
checkState(IQueryTransaction.State[] allows)
現在の状態が、指定された状態のいずれかに含まれるかどうかを判定する。 |
void |
commit()
トランザクション内のクエリの実行結果の確定処理を実行する。 |
void |
end()
トランザクションを終了する。 |
protected IQueryConnection |
findConnection(java.lang.String connId)
指定された接続先IDに対応する IQueryConnectionオブジェクトを取得
する。 |
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()
トランザクションのタイムアウト時間を取得する。 |
protected java.util.Map<java.lang.String,IQueryConnection> |
newConnectionMap()
IQueryConnectionオブジェクトを格納するマップを作成する。 |
protected QueryHistory |
newQueryHistory()
クエリの実行履歴を作成する。 |
void |
rollback()
トランザクション内のクエリの実行結果の取消処理を実行する。 |
void |
setTimeoutMillis(long millis)
トランザクションのタイムアウト時間を設定する。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
protected QueryTransaction()
QueryTransactionManagerクラスによって
生成されることを意図しているため、アクセス指定子をprotectedに
している。
| メソッドの詳細 |
|---|
protected java.util.Map<java.lang.String,IQueryConnection> newConnectionMap()
IQueryConnectionオブジェクトを格納するマップを作成する。
IQueryConnectionオブジェクトを格納するマップ。protected QueryHistory newQueryHistory()
QueryHistoryオブジェクト。public long getBeginTimeMillis()
IQueryTransaction 内の getBeginTimeMillispublic long getLimitTimeMillis()
IQueryTransaction 内の getLimitTimeMillispublic long getTimeoutMillis()
IQueryTransaction 内の getTimeoutMillispublic void setTimeoutMillis(long millis)
IQueryTransaction 内の setTimeoutMillismillis - トランザクションのタイムアウト時間 [msec]。public IQueryHistory getQueryHistory()
IQueryHistoryオブジェクトを取得する。
IQueryTransaction 内の getQueryHistoryIQueryHistoryオブジェクト。public IQueryTransaction.State getState()
IQueryTransaction 内の getState
protected final void changeState(IQueryTransaction.State[] froms,
IQueryTransaction.State to)
throws ts.util.ReasonedRuntimeException
froms - 許される現在の状態。to - 変更後の状態。
ts.util.ReasonedRuntimeException - 現在の状態が、第一引数に指定された状態の
いずれにも含まれていない場合。
protected final void checkState(IQueryTransaction.State[] allows)
throws ts.util.ReasonedRuntimeException
allows - 許される現在の状態。
ts.util.ReasonedRuntimeException - 現在の状態が、指定された状態のいずれにも
含まれていない場合。
java.lang.AssertionError - 引数がヌルの場合(デバッグ・モードのみ)。
public void begin()
throws ts.util.ReasonedException,
ts.util.ReasonedRuntimeException
IQueryTransaction 内の begints.util.ReasonedException - トランザクションの開始処理に失敗した場合。
ts.util.ReasonedRuntimeException - トランザクションの状態が不正な場合。
public void commit()
throws ts.util.ReasonedException,
ts.util.ReasonedRuntimeException
IQueryTransaction 内の committs.util.ReasonedException - トランザクションの確定処理に失敗した場合。
ts.util.ReasonedRuntimeException - トランザクションの状態が不正な場合。
public void rollback()
throws ts.util.ReasonedRuntimeException
IQueryTransaction 内の rollbackts.util.ReasonedRuntimeException - トランザクションの取消処理に失敗した場合、
又はトランザクションの状態が不正な場合。
public void end()
throws ts.util.ReasonedRuntimeException
IQueryTransaction 内の endts.util.ReasonedRuntimeException - トランザクションの終了処理に失敗した場合、
又はトランザクションの状態が不正な場合。
protected IQueryConnection findConnection(java.lang.String connId)
throws ts.util.ReasonedException,
ts.util.ReasonedRuntimeException
IQueryConnectionオブジェクトを取得
する。
IQueryConnectionオブジェクトがこのトランザクション内に存在
したら、それを返す。
存在しなかった場合は新規に作成し、このトランザクションに登録して返す。
connId - 接続先ID。
IQueryConnectionオブジェクト。
ts.util.ReasonedException - IQueryConnectionオブジェクトの開始処理に
失敗した場合。
ts.util.ReasonedRuntimeException - IQueryConnectionオブジェクトの
作成に失敗した場合。
public IQueryConnection getQueryConnection(java.lang.String connId)
throws ts.util.ReasonedException,
ts.util.ReasonedRuntimeException
IQueryTransaction 内の getQueryConnectionconnId - 接続先ID。
ts.util.ReasonedException - コネクションの開始処理に失敗した場合。
ts.util.ReasonedRuntimeException - コネクション・オブジェクトの作成に失敗
した場合、又はトランザクションの状態が不正な場合。
public IQueryExecution getQueryExecution(java.lang.String execId)
throws ts.util.ReasonedException,
ts.util.ReasonedRuntimeException
IQueryTransaction 内の getQueryExecutionexecId - 実行ID。
ts.util.ReasonedException - クエリが使用するコネクションの開始処理に失敗した
場合。
ts.util.ReasonedRuntimeException - クエリ実行オブジェクトの作成に失敗した
場合、又はトランザクションの状態が不正な場合。
public IQuery getQuery(java.lang.String queryId)
throws ts.util.ReasonedException,
ts.util.ReasonedRuntimeException
IQueryTransaction 内の getQueryqueryId - クエリID。
ts.util.ReasonedException - クエリが使用するコネクションの開始処理に失敗した
場合。
ts.util.ReasonedRuntimeException - クエリ・オブジェクトの作成に失敗した場合、
又はトランザクションの状態が不正な場合。
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||