当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 server API Documentation 英文版文档
ServerVMClientUserTransaction (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档
org.jboss.tm.usertx.client
Class ServerVMClientUserTransaction
java.lang.Object
org.jboss.tm.usertx.client.ServerVMClientUserTransaction
- All Implemented Interfaces:
- UserTransaction
- public class ServerVMClientUserTransaction
- extends Object
- implements UserTransaction
The client-side UserTransaction implementation for clients
operating in the same VM as the server.
This will delegate all UserTransaction calls to the
TransactionManager
of the server.
- Version:
- $Revision: 1.5 $
- Author:
- Ole Husgaard
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerVMClientUserTransaction
public ServerVMClientUserTransaction(TransactionManager tm)
getSingleton
public static ServerVMClientUserTransaction getSingleton()
- Return a reference to the singleton instance.
registerTxStartedListener
public void registerTxStartedListener(ServerVMClientUserTransaction.UserTransactionStartedListener txStartedListener)
unregisterTxStartedListener
public void unregisterTxStartedListener(ServerVMClientUserTransaction.UserTransactionStartedListener txStartedListener)
begin
public void begin()
throws NotSupportedException,
SystemException
- Specified by:
begin
in interface UserTransaction
- Throws:
NotSupportedException
SystemException
commit
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
- Specified by:
commit
in interface UserTransaction
- Throws:
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemException
rollback
public void rollback()
throws SecurityException,
IllegalStateException,
SystemException
- Specified by:
rollback
in interface UserTransaction
- Throws:
SecurityException
IllegalStateException
SystemException
setRollbackOnly
public void setRollbackOnly()
throws IllegalStateException,
SystemException
- Specified by:
setRollbackOnly
in interface UserTransaction
- Throws:
IllegalStateException
SystemException
getStatus
public int getStatus()
throws SystemException
- Specified by:
getStatus
in interface UserTransaction
- Throws:
SystemException
setTransactionTimeout
public void setTransactionTimeout(int seconds)
throws SystemException
- Specified by:
setTransactionTimeout
in interface UserTransaction
- Throws:
SystemException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.