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

3.23.2 org.omg.CosTransactions.Current.commit

名前

org.omg.CosTransactions.Current.commit

形式

public interface Current extends org.omg.CORBA.Object {
public void  commit(
            boolean   report_heuristics)
    throws   org.omg.CORBA.Exception;
}

機能説明

トランザクションをcommitします。Currentインタフェースのオブジェクトリファレンスは、org.omg.CORBA.ORB.resolve_initial_referencesメソッド(org.omg.CORBA.ORB.ObjectId_TransactionCurrent)で取得します。
report_heuristicsにtrueを指定するとヒューリスティックエラーが通知されます。

パラメタ

report_heuristics

trueを指定するとヒューリスティックエラーが通知されます。

復帰値

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

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

org.omg.CosTransactions.NoTransaction

トランザクションが作成されていません。

org.omg.CosTransactions.HeuristicMixed

トランザクションの完了状態は、いくつかがcommitされ、いくつかがrollbackされた状態です。

org.omg.CosTransactions.HeuristicHazard

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

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

org.omg.CORBA.NO_PERMISSION

トランザクションをcommitする権利がありません。

org.omg.CORBA.TRANSACTION_ROLLEDBACK

トランザクションがロールバックされています。

org.omg.CORBA.NO_IMPLEMENT

OTSシステム、またはリソース管理プログラムが起動されていません。

org.omg.CORBA.COMM_FAILURE

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

org.omg.CORBA.NO_RESOURCES

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

org.omg.CORBA.NO_MEMORY:

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