|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
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
内の getBeginTimeMillis
public long getLimitTimeMillis()
IQueryTransaction
内の getLimitTimeMillis
public long getTimeoutMillis()
IQueryTransaction
内の getTimeoutMillis
public void setTimeoutMillis(long millis)
IQueryTransaction
内の setTimeoutMillis
millis
- トランザクションのタイムアウト時間 [msec]。public IQueryHistory getQueryHistory()
IQueryHistory
オブジェクトを取得する。
IQueryTransaction
内の getQueryHistory
IQueryHistory
オブジェクト。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
内の begin
ts.util.ReasonedException
- トランザクションの開始処理に失敗した場合。
ts.util.ReasonedRuntimeException
- トランザクションの状態が不正な場合。public void commit() throws ts.util.ReasonedException, ts.util.ReasonedRuntimeException
IQueryTransaction
内の commit
ts.util.ReasonedException
- トランザクションの確定処理に失敗した場合。
ts.util.ReasonedRuntimeException
- トランザクションの状態が不正な場合。public void rollback() throws ts.util.ReasonedRuntimeException
IQueryTransaction
内の rollback
ts.util.ReasonedRuntimeException
- トランザクションの取消処理に失敗した場合、
又はトランザクションの状態が不正な場合。public void end() throws ts.util.ReasonedRuntimeException
IQueryTransaction
内の end
ts.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
内の getQueryConnection
connId
- 接続先ID。
ts.util.ReasonedException
- コネクションの開始処理に失敗した場合。
ts.util.ReasonedRuntimeException
- コネクション・オブジェクトの作成に失敗
した場合、又はトランザクションの状態が不正な場合。public IQueryExecution getQueryExecution(java.lang.String execId) throws ts.util.ReasonedException, ts.util.ReasonedRuntimeException
IQueryTransaction
内の getQueryExecution
execId
- 実行ID。
ts.util.ReasonedException
- クエリが使用するコネクションの開始処理に失敗した
場合。
ts.util.ReasonedRuntimeException
- クエリ実行オブジェクトの作成に失敗した
場合、又はトランザクションの状態が不正な場合。public IQuery getQuery(java.lang.String queryId) throws ts.util.ReasonedException, ts.util.ReasonedRuntimeException
IQueryTransaction
内の getQuery
queryId
- クエリID。
ts.util.ReasonedException
- クエリが使用するコネクションの開始処理に失敗した
場合。
ts.util.ReasonedRuntimeException
- クエリ・オブジェクトの作成に失敗した場合、
又はトランザクションの状態が不正な場合。
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |