| java.lang.Object org.mmbase.module.core.TransactionManager
TransactionManager | public class TransactionManager (Code) | | The MMBase transaction manager manages a group of changes.
author: Rico Jansen version: $Id: TransactionManager.java,v 1.42 2008/01/09 12:26:51 michiel Exp $ |
Method Summary | |
public String | addNode(String transactionName, String owner, String tmpnumber) | public String | cancel(Object user, String transactionName) | public String | commit(Object user, String transactionName) | public synchronized Collection<MMObjectNode> | createTransaction(String transactionName) Creates transaction with given name. | public String | deleteObject(String transactionName, String owner, String tmpnumber) | protected synchronized Collection<MMObjectNode> | deleteTransaction(String transactionName) | public String | findUserName(Object user) | public static TransactionManager | getInstance() | public TemporaryNodeManager | getTemporaryNodeManager() | public synchronized Collection<MMObjectNode> | getTransaction(String transactionName) Returns transaction with given name. | public Map<String, Collection<MMObjectNode>> | getTransactions() Return a an unmodifable Map with all transactions. | boolean | performCommits(Object user, Collection<MMObjectNode> nodes) | public String | removeNode(String transactionName, String owner, String tmpnumber) | public boolean | resolve(String transactionName) |
EXISTS_NOLONGER | final public static String EXISTS_NOLONGER(Code) | | |
I_EXISTS_NO | final static int I_EXISTS_NO(Code) | | |
I_EXISTS_NOLONGER | final static int I_EXISTS_NOLONGER(Code) | | |
I_EXISTS_YES | final static int I_EXISTS_YES(Code) | | |
createTransaction | public synchronized Collection<MMObjectNode> createTransaction(String transactionName) throws TransactionManagerException(Code) | | Creates transaction with given name.
Parameters: transactionName - The name of the transaction to return exception: TransactionManagerExcpeption - if the transaction with given name existed already Collection containing the nodes in this transaction (so, this is an empty collection) |
deleteTransaction | protected synchronized Collection<MMObjectNode> deleteTransaction(String transactionName)(Code) | | Removes the transaction with given name
the collection with nodes from the removed transaction or null if no transaction with this name existed |
getTransactions | public Map<String, Collection<MMObjectNode>> getTransactions()(Code) | | Return a an unmodifable Map with all transactions. This map can be used to explore the
existing transactions.
since: MMBase-1.9 |
|
|