public class NullTransactionManager extends Object implements TransactionManager
| Constructor and Description |
|---|
NullTransactionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
int |
getStatus() |
Transaction |
getTransaction() |
void |
resume(Transaction transaction) |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int i) |
Transaction |
suspend() |
public void begin()
throws NotSupportedException,
SystemException
begin in interface TransactionManagerNotSupportedExceptionSystemExceptionpublic void commit()
throws HeuristicMixedException,
HeuristicRollbackException,
IllegalStateException,
RollbackException,
SecurityException,
SystemException
commit in interface TransactionManagerHeuristicMixedExceptionHeuristicRollbackExceptionIllegalStateExceptionRollbackExceptionSecurityExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface TransactionManagerSystemExceptionpublic Transaction getTransaction() throws SystemException
getTransaction in interface TransactionManagerSystemExceptionpublic void resume(Transaction transaction) throws IllegalStateException, InvalidTransactionException, SystemException
resume in interface TransactionManagerIllegalStateExceptionInvalidTransactionExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback in interface TransactionManagerIllegalStateExceptionSecurityExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionManagerIllegalStateExceptionSystemExceptionpublic void setTransactionTimeout(int i)
throws SystemException
setTransactionTimeout in interface TransactionManagerSystemExceptionpublic Transaction suspend() throws SystemException
suspend in interface TransactionManagerSystemExceptionCopyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.