@ThreadSafe @Immutable public class LocalTransactionManager extends Object implements TransactionManager
Transactions managed by this manager DO NOT support xa resources
and therefore
global transactions.
Constructor and Description |
---|
LocalTransactionManager() |
Modifier and Type | Method and Description |
---|---|
void |
begin() |
protected static void |
clear() |
void |
commit() |
int |
getStatus() |
Transaction |
getTransaction() |
protected static boolean |
hasActiveTransaction() |
void |
resume(Transaction tobj) |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int seconds) |
Transaction |
suspend() |
protected static LocalTransaction |
transactionForThread() |
public void begin() throws NotSupportedException, SystemException
begin
in interface TransactionManager
NotSupportedException
SystemException
protected static boolean hasActiveTransaction()
protected static void clear()
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
commit
in interface TransactionManager
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemException
protected static LocalTransaction transactionForThread()
public void rollback() throws IllegalStateException, SecurityException, SystemException
rollback
in interface TransactionManager
IllegalStateException
SecurityException
SystemException
public void setRollbackOnly() throws IllegalStateException, SystemException
setRollbackOnly
in interface TransactionManager
IllegalStateException
SystemException
public int getStatus() throws SystemException
getStatus
in interface TransactionManager
SystemException
public Transaction getTransaction() throws SystemException
getTransaction
in interface TransactionManager
SystemException
public void setTransactionTimeout(int seconds) throws SystemException
setTransactionTimeout
in interface TransactionManager
SystemException
public Transaction suspend() throws SystemException
suspend
in interface TransactionManager
SystemException
public void resume(Transaction tobj) throws InvalidTransactionException, IllegalStateException, SystemException
resume
in interface TransactionManager
InvalidTransactionException
IllegalStateException
SystemException
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.