public class ManagedTransactionAdapter extends ObjectSE implements TransactionSE
TransactionManager
SE 参照を取得し、JTA Transaction
SE ハンドルを作成します。コンストラクターと説明 |
---|
ManagedTransactionAdapter(TransactionManagerSE transactionManager) 指定された TransactionManager の新しい ManagedTransactionAdapter を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | commit() |
boolean | delistResource(XAResourceSE xaRes, int flag) |
boolean | enlistResource(XAResourceSE xaRes) |
int | getStatus() |
TransactionManagerSE | getTransactionManager() このアダプターが委譲する JTA TransactionManager を返します。 |
void | registerSynchronization(SynchronizationSE sync) |
void | rollback() |
void | setRollbackOnly() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public ManagedTransactionAdapter(TransactionManagerSE transactionManager) throws SystemExceptionSE
transactionManager
- ラップする JTA TransactionManagerSystemExceptionSE
public final TransactionManagerSE getTransactionManager()
public void commit() throws RollbackExceptionSE, HeuristicMixedExceptionSE, HeuristicRollbackExceptionSE, SecurityExceptionSE, SystemExceptionSE
public void rollback() throws SystemExceptionSE
TransactionSE
の rollbackSE
SystemExceptionSE
public void setRollbackOnly() throws SystemExceptionSE
TransactionSE
の setRollbackOnlySE
SystemExceptionSE
public int getStatus() throws SystemExceptionSE
TransactionSE
の getStatusSE
SystemExceptionSE
public boolean enlistResource(XAResourceSE xaRes) throws RollbackExceptionSE, SystemExceptionSE
TransactionSE
の enlistResourceSE
RollbackExceptionSE
SystemExceptionSE
public boolean delistResource(XAResourceSE xaRes, int flag) throws SystemExceptionSE
TransactionSE
の delistResourceSE
SystemExceptionSE
public void registerSynchronization(SynchronizationSE sync) throws RollbackExceptionSE, SystemExceptionSE
TransactionSE
の registerSynchronizationSE
RollbackExceptionSE
SystemExceptionSE