public class JTATransactionManagerAdapter extends Object implements TransactionManagerAdapter, Status
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected TransactionManager |
transactionManager |
protected UserTransaction |
userTransaction |
STATUS_ACTIVE, STATUS_COMMITTED, STATUS_COMMITTING, STATUS_MARKED_ROLLBACK, STATUS_NO_TRANSACTION, STATUS_PREPARED, STATUS_PREPARING, STATUS_ROLLEDBACK, STATUS_ROLLING_BACK, STATUS_UNKNOWN| コンストラクタと説明 |
|---|
JTATransactionManagerAdapter(TransactionManager transactionManager,
UserTransaction userTransaction) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected boolean |
begin() |
protected void |
doBegin() |
protected void |
end() |
protected boolean |
hasTransaction() |
Object |
mandatory(TransactionCallback callback) |
Object |
never(TransactionCallback callback) |
Object |
notSupported(TransactionCallback callback) |
Object |
required(TransactionCallback callback) |
Object |
requiresNew(TransactionCallback callback) |
protected void |
resume(Transaction transaction) |
void |
setRollbackOnly() |
protected Transaction |
suspend() |
protected final TransactionManager transactionManager
protected final UserTransaction userTransaction
public JTATransactionManagerAdapter(TransactionManager transactionManager, UserTransaction userTransaction)
public Object required(TransactionCallback callback) throws Throwable
required インタフェース内 TransactionManagerAdapterThrowablepublic Object requiresNew(TransactionCallback callback) throws Throwable
requiresNew インタフェース内 TransactionManagerAdapterThrowablepublic Object mandatory(TransactionCallback callback) throws Throwable
mandatory インタフェース内 TransactionManagerAdapterThrowablepublic Object notSupported(TransactionCallback callback) throws Throwable
notSupported インタフェース内 TransactionManagerAdapterThrowablepublic Object never(TransactionCallback callback) throws Throwable
never インタフェース内 TransactionManagerAdapterThrowablepublic void setRollbackOnly()
setRollbackOnly インタフェース内 TransactionManagerAdapterprotected boolean hasTransaction()
throws SystemException
SystemExceptionprotected boolean begin()
throws NotSupportedException,
SystemException
protected void doBegin()
throws NotSupportedException,
SystemException
protected Transaction suspend() throws Exception
Exceptionprotected void resume(Transaction transaction) throws Exception
ExceptionCopyright © 2015–2018 The DBFlute Project. All rights reserved.