Class AbstractExtendedTransaction
java.lang.Object
com.infoteria.asteria.flowengine2.transaction.AbstractExtendedTransaction
- All Implemented Interfaces:
Transaction,ExtendedTransaction
- Direct Known Subclasses:
ConnectionTransaction,TransactionTest
拡張トランザクションの抽象基底クラス
-
Field Summary
Fields inherited from interface com.infoteria.asteria.flowengine2.transaction.ExtendedTransaction
PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_NORMAL, RECOVERY_AVAILABLE, RECOVERY_NEVER, RECOVERY_REQUIRED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractExtendedTransaction(String name, int recoveryPolicy, int priority) -
Method Summary
Modifier and TypeMethodDescriptionintTransactionの優先順位を返します。トランザクションのRecovery情報を取得します。int障害時のリカバリーポリシーを返します。Transactionの名前を返します。voidprepare(ExecuteContext context) トランザクションがcommit可能かどうかを確認します。voidstart(ExecuteContext context, Xid xid) 指定のXidでトランザクションを開始を実装します。Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.infoteria.asteria.flowengine2.execute.Transaction
commit, rollback
-
Constructor Details
-
AbstractExtendedTransaction
-
AbstractExtendedTransaction
-
-
Method Details
-
start
指定のXidでトランザクションを開始を実装します。- Specified by:
startin interfaceExtendedTransaction- Throws:
FlowException
-
prepare
トランザクションがcommit可能かどうかを確認します。- Specified by:
preparein interfaceExtendedTransaction- Throws:
FlowException
-
getRecoveryData
トランザクションのRecovery情報を取得します。- Specified by:
getRecoveryDatain interfaceExtendedTransaction
-
getTransactionName
Transactionの名前を返します。- Specified by:
getTransactionNamein interfaceExtendedTransaction
-
getRecoveryPolicy
public int getRecoveryPolicy()障害時のリカバリーポリシーを返します。- Specified by:
getRecoveryPolicyin interfaceExtendedTransaction
-
getPriority
public int getPriority()Transactionの優先順位を返します。- Specified by:
getPriorityin interfaceExtendedTransaction
-