ページの先頭行へ戻る
Interstage Application Server リファレンスマニュアル(API編)
Interstage

3.23.5 org.omg.CosTransactions.Current.get_status

名前

org.omg.CosTransactions.Current.get_status

形式

public interface Current extends org.omg.CORBA.Object {
public CosTransactions.Status get_status()
      throws   org.omg.CORBA.Exception;
}

機能説明

トランザクションの状態を返します。Currentインタフェースのオブジェクトリファレンスはorg.omg.CORBA.ORB.resolve_initial_referencesメソッド(org.omg.CORBA.ORB.ObjectId_TransactionCurrent)で取得します。

復帰値

正常終了した場合は、 org.omg.CosTransactions.Statusが通知されます。

org.omg.CosTransactions.Status.StatusActive

トランザクションを実行中です。

org.omg.CosTransactions.Status.StatusMarkedRollback

rollbackにマークされています。

org.omg.CosTransactions.Status.StatusPrepared

prepareされています。

org.omg.CosTransactions.Status.StatusCommited

commitされました。

org.omg.CosTransactions.Status.StatusRolledBack

rollbackされました。

org.omg.CosTransactions.Status.StatusUnknown

トランザクションの状態が不明です。

org.omg.CosTransactions.Status.StatusNoTransaction

トランザクションを実行中でありません。

org.omg.CosTransactions.Status.StatusPreparing

prepare処理の実行中です。

org.omg.CosTransactions.Status.StatusCommitting

commit処理の実行中です。

org.omg.CosTransactions.Status.StatusRollingBack

rollback処理の実行中です。

異常終了した場合は、org.omg.CORBA.Exception例外が発生します。

SystemExceptionの場合は以下の例外が発生します。

org.omg.CORBA.NO_IMPLEMENT

OTSシステムが起動されていません。

org.omg.CORBA.COMM_FAILURE

通信異常が発生しました。

org.omg.CORBA.NO_RESOURCES

資源不足が発生しました。

org.omg.CORBA.NO_MEMORY:

動的メモリの獲得に失敗しました。