|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.extension.jta.RestrictedTransactionImpl
機能が限定されたTransaction
の実装クラスです。
このトランザクションは、UserTransaction
とTransactionSynchronizationRegistry
を利用して実装しています。
そのため、以下の機能がサポートされません。
フィールドの概要 | |
protected TransactionSynchronizationRegistry |
synchronizationRegistry
トランザクションシンクロナイゼーションレジストリ |
protected UserTransaction |
userTransaction
ユーザトランザクション |
コンストラクタの概要 | |
RestrictedTransactionImpl(UserTransaction userTransaction,
TransactionSynchronizationRegistry synchronizationRegistry)
トランザクションのインスタンスを構築します。 |
メソッドの概要 | |
void |
begin()
トランザクションを開始します。 |
void |
commit()
|
boolean |
delistResource(XAResource xaRes,
int flag)
|
boolean |
enlistResource(XAResource xaRes)
|
int |
getStatus()
|
void |
registerSynchronization(Synchronization sync)
|
void |
rollback()
|
void |
setRollbackOnly()
|
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected UserTransaction userTransaction
protected TransactionSynchronizationRegistry synchronizationRegistry
コンストラクタの詳細 |
public RestrictedTransactionImpl(UserTransaction userTransaction, TransactionSynchronizationRegistry synchronizationRegistry)
userTransaction
- ユーザトランザクションsynchronizationRegistry
- トランザクションシンクロナイゼーションレジストリメソッドの詳細 |
public void begin() throws NotSupportedException, SystemException
SystemException
NotSupportedException
public void commit() throws HeuristicMixedException, HeuristicRollbackException, RollbackException, SecurityException, SystemException
Transaction
内の commit
HeuristicMixedException
HeuristicRollbackException
RollbackException
SecurityException
SystemException
public boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException, SystemException
Transaction
内の delistResource
IllegalStateException
SystemException
public boolean enlistResource(XAResource xaRes) throws IllegalStateException, RollbackException, SystemException
Transaction
内の enlistResource
IllegalStateException
RollbackException
SystemException
public int getStatus() throws SystemException
Transaction
内の getStatus
SystemException
public void registerSynchronization(Synchronization sync) throws IllegalStateException, RollbackException, SystemException
Transaction
内の registerSynchronization
IllegalStateException
RollbackException
SystemException
public void rollback() throws IllegalStateException, SystemException
Transaction
内の rollback
IllegalStateException
SystemException
public void setRollbackOnly() throws IllegalStateException, SystemException
Transaction
内の setRollbackOnly
IllegalStateException
SystemException
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |