|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectts.query.DefaultQueryTransaction
public class DefaultQueryTransaction
ひとまとまりの処理を表すトランザクション・クラスのインターフェイス。
このクラスのbegin()メソッドの実行からend()メソッドの実行
までを一つのトランザクションとして、その間に実行されたクエリによる各接続先
への更新の確定処理または取消処理をまとめて実行する。
| 入れ子のクラスの概要 |
|---|
| インタフェース ts.query.QueryTransaction から継承された入れ子のクラス/インタフェース |
|---|
QueryTransaction.Error, QueryTransaction.State |
| コンストラクタの概要 | |
|---|---|
protected |
DefaultQueryTransaction()
デフォルト・コンストラクタ。 |
| メソッドの概要 | |
|---|---|
void |
addConnectionFactory(java.lang.String connId,
QueryConnectionFactory factory)
指定されたIDに対応付けられるコネクションのファクトリ・オブジェクトを 設定する。 |
void |
begin()
トランザクションの開始処理を実行する。 |
void |
begin(long timeoutMillis)
タイムアウト時間を指定して、トランザクションの開始処理を実行する。 |
protected void |
changeState(QueryTransaction.State[] froms,
QueryTransaction.State to)
トランザクションの状態を変更する。 |
protected void |
checkState(QueryTransaction.State[] allows)
現在の状態が、指定された状態に含まれているかどうかを判定する。 |
void |
commit()
クエリの実行結果の確定処理を実行する。 |
void |
end()
トランザクションを終了する。 |
long |
getBeginTimeMillis()
トランザクションの開始時刻を取得する。 |
QueryConnection |
getConnection(java.lang.String connId)
指定されたIDに対応づけられたコネクション・オブジェクトを取得する。 |
long |
getLimitTimeMillis()
トランザクションのタイムアウトのリミット時刻を取得する。 |
QueryTransaction.State |
getState()
トランザクションの状態を取得する。 |
protected long |
getTimeoutMillis()
デフォルトのトランザクション・タイムアウト値を取得する。 |
void |
rollback()
クエリの実行でエラーが発生した場合に、トランザクション内のクエリ実行結果 を取り消す処理を実行する。 |
void |
setTimeoutMillis(long timeout)
デフォルトのトランザクション・タイムアウト値を設定する。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
protected DefaultQueryTransaction()
| メソッドの詳細 |
|---|
public void begin()
QueryTransaction 内の beginpublic void begin(long timeoutMillis)
QueryTransaction 内の begintimeoutMillis - タイムアウト時間[msec]。public void commit()
QueryTransaction 内の commitpublic void rollback()
QueryTransaction 内の rollbackpublic void end()
QueryTransaction 内の endprotected long getTimeoutMillis()
public void setTimeoutMillis(long timeout)
timeout - デフォルトのトランザクション・タイムアウト値[msec]。public long getBeginTimeMillis()
QueryTransaction 内の getBeginTimeMillispublic long getLimitTimeMillis()
QueryTransaction 内の getLimitTimeMillispublic QueryTransaction.State getState()
QueryTransaction 内の getState
protected final void changeState(QueryTransaction.State[] froms,
QueryTransaction.State to)
froms - 許される現在の状態。to - 変更後の状態。protected final void checkState(QueryTransaction.State[] allows)
allows - 許される現在の状態。
public QueryConnection getConnection(java.lang.String connId)
throws ts.util.ReasonedException
QueryTransaction 内の getConnectionconnId - 接続先を示すID。
ts.util.ReasonedException - コネクション・オブジェクトの作成に失敗した場合。
public void addConnectionFactory(java.lang.String connId,
QueryConnectionFactory factory)
QueryTransaction 内の addConnectionFactoryconnId - コネクションを識別するためのID。factory - コネクションのファクトリ・オブジェクト。
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||