org.mmbase.module.core
Class TransactionManager

java.lang.Object
  |
  +--org.mmbase.module.core.TransactionManager
All Implemented Interfaces:
TransactionManagerInterface

public class TransactionManager
extends java.lang.Object
implements TransactionManagerInterface

Version:
$Id: TransactionManager.java,v 1.24 2002/09/23 11:02:56 michiel Exp $
Author:
Rico Jansen

Field Summary
static java.lang.String EXISTS_NO
           
static java.lang.String EXISTS_NOLONGER
           
static java.lang.String EXISTS_YES
           
static int I_EXISTS_NO
           
static int I_EXISTS_NOLONGER
           
static int I_EXISTS_YES
           
protected  TransactionResolver transactionResolver
           
protected  java.util.Hashtable transactions
           
 
Constructor Summary
TransactionManager(MMBase mmbase, TemporaryNodeManagerInterface tmpn)
           
 
Method Summary
 java.lang.String addNode(java.lang.String transactionname, java.lang.String owner, java.lang.String tmpnumber)
           
 java.lang.String cancel(java.lang.Object user, java.lang.String transactionname)
           
 java.lang.String commit(java.lang.Object user, java.lang.String transactionname)
           
protected  java.lang.String commit(java.lang.Object user, java.lang.String transactionname, boolean debug)
           
 java.lang.String create(java.lang.Object user, java.lang.String transactionname)
           
 java.lang.String deleteObject(java.lang.String transactionname, java.lang.String owner, java.lang.String tmpnumber)
           
 java.lang.String findUserName(java.lang.Object user)
           
 java.util.Vector getNodes(java.lang.Object user, java.lang.String transactionname)
           
 java.lang.String removeNode(java.lang.String transactionname, java.lang.String owner, java.lang.String tmpnumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXISTS_NO

public static final java.lang.String EXISTS_NO

I_EXISTS_NO

public static final int I_EXISTS_NO

EXISTS_YES

public static final java.lang.String EXISTS_YES

I_EXISTS_YES

public static final int I_EXISTS_YES

EXISTS_NOLONGER

public static final java.lang.String EXISTS_NOLONGER

I_EXISTS_NOLONGER

public static final int I_EXISTS_NOLONGER

transactions

protected java.util.Hashtable transactions

transactionResolver

protected TransactionResolver transactionResolver
Constructor Detail

TransactionManager

public TransactionManager(MMBase mmbase,
                          TemporaryNodeManagerInterface tmpn)
Method Detail

create

public java.lang.String create(java.lang.Object user,
                               java.lang.String transactionname)
                        throws TransactionManagerException
Specified by:
create in interface TransactionManagerInterface

addNode

public java.lang.String addNode(java.lang.String transactionname,
                                java.lang.String owner,
                                java.lang.String tmpnumber)
                         throws TransactionManagerException
Specified by:
addNode in interface TransactionManagerInterface

removeNode

public java.lang.String removeNode(java.lang.String transactionname,
                                   java.lang.String owner,
                                   java.lang.String tmpnumber)
                            throws TransactionManagerException
Specified by:
removeNode in interface TransactionManagerInterface

deleteObject

public java.lang.String deleteObject(java.lang.String transactionname,
                                     java.lang.String owner,
                                     java.lang.String tmpnumber)
                              throws TransactionManagerException
Specified by:
deleteObject in interface TransactionManagerInterface

getNodes

public java.util.Vector getNodes(java.lang.Object user,
                                 java.lang.String transactionname)
Specified by:
getNodes in interface TransactionManagerInterface

cancel

public java.lang.String cancel(java.lang.Object user,
                               java.lang.String transactionname)
                        throws TransactionManagerException
Specified by:
cancel in interface TransactionManagerInterface

commit

public java.lang.String commit(java.lang.Object user,
                               java.lang.String transactionname)
                        throws TransactionManagerException
Specified by:
commit in interface TransactionManagerInterface

commit

protected java.lang.String commit(java.lang.Object user,
                                  java.lang.String transactionname,
                                  boolean debug)
                           throws TransactionManagerException

findUserName

public java.lang.String findUserName(java.lang.Object user)
Specified by:
findUserName in interface TransactionManagerInterface


MMBase build 1.6.5.20030923