public class TransactionManagerImpl extends Object implements TransactionManager, UserTransaction
Constructor and Description |
---|
TransactionManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
begin() |
void |
commit() |
Connection |
getConnection(DataSourceImpl ds,
String user,
String password) |
int |
getStatus() |
Transaction |
getTransaction() |
boolean |
isTransactionActive() |
void |
resume(Transaction transaction) |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int i) |
Transaction |
suspend() |
public boolean isTransactionActive()
public Connection getConnection(DataSourceImpl ds, String user, String password) throws SQLException
SQLException
public void begin() throws NotSupportedException, SystemException
begin
in interface TransactionManager
begin
in interface UserTransaction
NotSupportedException
SystemException
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
commit
in interface TransactionManager
commit
in interface UserTransaction
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemException
public int getStatus() throws SystemException
getStatus
in interface TransactionManager
getStatus
in interface UserTransaction
SystemException
public Transaction getTransaction() throws SystemException
getTransaction
in interface TransactionManager
SystemException
public void rollback() throws IllegalStateException, SecurityException, SystemException
rollback
in interface TransactionManager
rollback
in interface UserTransaction
IllegalStateException
SecurityException
SystemException
public void setRollbackOnly() throws IllegalStateException, SystemException
setRollbackOnly
in interface TransactionManager
setRollbackOnly
in interface UserTransaction
IllegalStateException
SystemException
public Transaction suspend() throws SystemException
suspend
in interface TransactionManager
SystemException
public void resume(Transaction transaction) throws InvalidTransactionException, IllegalStateException, SystemException
resume
in interface TransactionManager
InvalidTransactionException
IllegalStateException
SystemException
public void setTransactionTimeout(int i) throws SystemException
setTransactionTimeout
in interface TransactionManager
setTransactionTimeout
in interface UserTransaction
SystemException
Copyright © 2022. All rights reserved.