public class ServerVMClientUserTransaction extends Object implements UserTransaction, UserTransactionProvider, Serializable, Referenceable
TransactionManager
of the server.Modifier and Type | Class and Description |
---|---|
static interface |
ServerVMClientUserTransaction.UserTransactionStartedListener
Deprecated.
|
Constructor and Description |
---|
ServerVMClientUserTransaction(TransactionManager tm) |
Modifier and Type | Method and Description |
---|---|
void |
begin() |
void |
commit() |
Reference |
getReference() |
static ServerVMClientUserTransaction |
getSingleton()
Return a reference to the singleton instance.
|
int |
getStatus() |
static boolean |
isAvailable() |
boolean |
isServer() |
void |
registerTxStartedListener(ServerVMClientUserTransaction.UserTransactionStartedListener txStartedListener) |
void |
rollback() |
static void |
setAvailability(boolean available) |
void |
setRollbackOnly() |
void |
setTransactionManager(TransactionManager tm) |
void |
setTransactionRegistry(UserTransactionRegistry registry)
Set the user transaction registry
|
void |
setTransactionTimeout(int seconds) |
void |
unregisterTxStartedListener(ServerVMClientUserTransaction.UserTransactionStartedListener txStartedListener) |
public ServerVMClientUserTransaction(TransactionManager tm)
public static ServerVMClientUserTransaction getSingleton()
public boolean isServer()
public void registerTxStartedListener(ServerVMClientUserTransaction.UserTransactionStartedListener txStartedListener)
public void unregisterTxStartedListener(ServerVMClientUserTransaction.UserTransactionStartedListener txStartedListener)
public void setTransactionRegistry(UserTransactionRegistry registry)
UserTransactionProvider
setTransactionRegistry
in interface UserTransactionProvider
registry
- the registrypublic void setTransactionManager(TransactionManager tm)
public void begin() throws NotSupportedException, SystemException
begin
in interface UserTransaction
NotSupportedException
SystemException
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
commit
in interface UserTransaction
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemException
public void rollback() throws SecurityException, IllegalStateException, SystemException
rollback
in interface UserTransaction
SecurityException
IllegalStateException
SystemException
public void setRollbackOnly() throws IllegalStateException, SystemException
setRollbackOnly
in interface UserTransaction
IllegalStateException
SystemException
public int getStatus() throws SystemException
getStatus
in interface UserTransaction
SystemException
public void setTransactionTimeout(int seconds) throws SystemException
setTransactionTimeout
in interface UserTransaction
SystemException
public Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException
public static void setAvailability(boolean available)
public static boolean isAvailable()
Copyright © 2024 JBoss by Red Hat. All rights reserved.