|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
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,
java.lang.SecurityException,
SystemException
Transaction 内の commitHeuristicMixedException
HeuristicRollbackException
RollbackException
java.lang.SecurityException
SystemException
public boolean delistResource(XAResource xaRes,
int flag)
throws java.lang.IllegalStateException,
SystemException
Transaction 内の delistResourcejava.lang.IllegalStateException
SystemException
public boolean enlistResource(XAResource xaRes)
throws java.lang.IllegalStateException,
RollbackException,
SystemException
Transaction 内の enlistResourcejava.lang.IllegalStateException
RollbackException
SystemException
public int getStatus()
throws SystemException
Transaction 内の getStatusSystemException
public void registerSynchronization(Synchronization sync)
throws java.lang.IllegalStateException,
RollbackException,
SystemException
Transaction 内の registerSynchronizationjava.lang.IllegalStateException
RollbackException
SystemException
public void rollback()
throws java.lang.IllegalStateException,
SystemException
Transaction 内の rollbackjava.lang.IllegalStateException
SystemException
public void setRollbackOnly()
throws java.lang.IllegalStateException,
SystemException
Transaction 内の setRollbackOnlyjava.lang.IllegalStateException
SystemException
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||