public abstract class AbstractTransactionManager extends Object implements TransactionManager
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected ThreadLocal<ExtendedTransaction> |
threadAttachTx |
| コンストラクタと説明 |
|---|
AbstractTransactionManager() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected ExtendedTransaction |
attachNewTransaction() |
void |
begin() |
void |
commit() |
protected abstract ExtendedTransaction |
createTransaction() |
protected ExtendedTransaction |
getCurrent() |
int |
getStatus() |
Transaction |
getTransaction() |
void |
resume(Transaction resumeTx) |
void |
rollback() |
protected void |
setCurrent(ExtendedTransaction current) |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int timeout) |
Transaction |
suspend() |
protected final ThreadLocal<ExtendedTransaction> threadAttachTx
public void begin()
throws NotSupportedException,
SystemException
begin インタフェース内 TransactionManagerNotSupportedExceptionSystemExceptionpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
public Transaction suspend() throws SystemException
suspend インタフェース内 TransactionManagerSystemExceptionpublic void resume(Transaction resumeTx) throws InvalidTransactionException, IllegalStateException, SystemException
public void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback インタフェース内 TransactionManagerIllegalStateExceptionSecurityExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly インタフェース内 TransactionManagerIllegalStateExceptionSystemExceptionpublic void setTransactionTimeout(int timeout)
throws SystemException
setTransactionTimeout インタフェース内 TransactionManagerSystemExceptionpublic int getStatus()
getStatus インタフェース内 TransactionManagerpublic Transaction getTransaction()
getTransaction インタフェース内 TransactionManagerprotected ExtendedTransaction getCurrent()
protected void setCurrent(ExtendedTransaction current)
protected ExtendedTransaction attachNewTransaction()
protected abstract ExtendedTransaction createTransaction()
Copyright © 2015–2019 The DBFlute Project. All rights reserved.