public class ServerVMClientUserTransaction extends Object implements UserTransaction, UserTransactionProvider
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() |
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)
UserTransactionProvidersetTransactionRegistry in interface UserTransactionProviderregistry - the registrypublic void setTransactionManager(TransactionManager tm)
public void begin()
throws NotSupportedException,
SystemException
begin in interface UserTransactionNotSupportedExceptionSystemExceptionpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
commit in interface UserTransactionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemExceptionpublic void rollback()
throws SecurityException,
IllegalStateException,
SystemException
rollback in interface UserTransactionSecurityExceptionIllegalStateExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface UserTransactionIllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface UserTransactionSystemExceptionpublic void setTransactionTimeout(int seconds)
throws SystemException
setTransactionTimeout in interface UserTransactionSystemExceptionpublic static void setAvailability(boolean available)
public static boolean isAvailable()
Copyright © 2015 JBoss by Red Hat. All rights reserved.