|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectorg.seasar.extension.jta.TransactionImpl
Transactionの実装クラスです。
| コンストラクタの概要 | |
TransactionImpl()
TransactionImplのインスタンスを構築します。 |
|
| メソッドの概要 | |
void |
begin()
トランザクションを開始します。 |
void |
commit()
|
boolean |
delistResource(XAResource xaResource,
int flag)
|
boolean |
enlistResource(XAResource xaResource)
|
Object |
getResource(Object key)
指定されたキーでトランザクションに関連付けられた値を返します。 |
int |
getStatus()
|
Xid |
getXid()
トランザクションIDを返します。 |
boolean |
isSuspended()
トランザクションが中断されている場合は trueを、それ以外の場合はfalseを返します。 |
void |
putResource(Object key,
Object value)
指定されたキーで指定された値をトランザクションに関連付けます。 |
void |
registerInterposedSynchronization(Synchronization sync)
特定の順序で呼び出される Synchronizationインスタンスを登録します。 |
void |
registerSynchronization(Synchronization sync)
|
void |
resume()
トランザクションを再開します。 |
void |
rollback()
|
void |
setRollbackOnly()
|
void |
suspend()
トランザクションを中断します。 |
String |
toString()
|
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
public TransactionImpl()
TransactionImplのインスタンスを構築します。
| メソッドの詳細 |
public void begin()
public void suspend()
throws XAException
XAException - XAResourceを中断できなかった場合にスローされます
public void resume()
throws XAException
XAException - XAResourceを再開できなかった場合にスローされます
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
Transaction 内の commitRollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemException
public void rollback()
throws IllegalStateException,
SecurityException,
SystemException
Transaction 内の rollbackIllegalStateException
SecurityException
SystemException
public void setRollbackOnly()
throws IllegalStateException,
SystemException
Transaction 内の setRollbackOnlyIllegalStateException
SystemException
public boolean enlistResource(XAResource xaResource)
throws RollbackException,
IllegalStateException,
SystemException
Transaction 内の enlistResourceRollbackException
IllegalStateException
SystemException
public boolean delistResource(XAResource xaResource,
int flag)
throws IllegalStateException,
SystemException
Transaction 内の delistResourceIllegalStateException
SystemExceptionpublic int getStatus()
Transaction 内の getStatus
public void registerSynchronization(Synchronization sync)
throws RollbackException,
IllegalStateException,
SystemException
Transaction 内の registerSynchronizationRollbackException
IllegalStateException
SystemException
public void registerInterposedSynchronization(Synchronization sync)
throws IllegalStateException
Synchronizationインスタンスを登録します。
sync - Synchronizationインスタンス
IllegalStateException - トランザクションが一停止状態または非活動中の場合
public void putResource(Object key,
Object value)
throws IllegalStateException
key - キーvalue - 値
IllegalStateException - トランザクションが一停止状態または非活動中の場合
public Object getResource(Object key)
throws IllegalStateException
key - キー
IllegalStateException - トランザクションが一停止状態または非活動中の場合public Xid getXid()
public boolean isSuspended()
trueを、それ以外の場合はfalseを返します。
truepublic String toString()
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||