|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.mmbase.module.core.TransactionManager
public class TransactionManager
The MMBase transaction manager manages a group of changes.
| Nested Class Summary | |
|---|---|
static class |
TransactionManager.Exists
NO: The node does not exists yet, but will be created on commit YES: The node already existed befor the transaction started. |
| Field Summary | |
|---|---|
static TransactionManager |
instance
|
protected Map<String,Collection<MMObjectNode>> |
transactions
|
| Method Summary | |
|---|---|
String |
addNode(String transactionName,
String owner,
String tmpnumber)
|
String |
cancel(Object user,
String transactionName)
|
String |
commit(Object user,
String transactionName)
|
Collection<MMObjectNode> |
createTransaction(String transactionName)
Creates transaction with given name. |
String |
deleteObject(String transactionName,
String owner,
String tmpnumber)
|
protected Collection<MMObjectNode> |
deleteTransaction(String transactionName)
Removes the transaction with given name |
String |
findUserName(Object user)
|
static TransactionManager |
getInstance()
|
TemporaryNodeManager |
getTemporaryNodeManager()
|
Collection<MMObjectNode> |
getTransaction(String transactionName)
Returns transaction with given name. |
Map<String,Collection<MMObjectNode>> |
getTransactions()
Return a an unmodifable Map with all transactions. |
(package private) boolean |
performCommits(Object user,
Collection<MMObjectNode> nodes)
|
String |
removeNode(String transactionName,
String owner,
String tmpnumber)
|
boolean |
resolve(String transactionName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Map<String,Collection<MMObjectNode>> transactions
public static TransactionManager instance
| Method Detail |
|---|
public static TransactionManager getInstance()
public TemporaryNodeManager getTemporaryNodeManager()
public Collection<MMObjectNode> getTransaction(String transactionName)
throws TransactionManagerException
transactionName - The name of the transaction to return
MMObjectNodes).
TransactionManagerException - if the transaction with given name does not existpublic Map<String,Collection<MMObjectNode>> getTransactions()
public Collection<MMObjectNode> createTransaction(String transactionName)
throws TransactionManagerException
transactionName - The name of the transaction to return
TransactionManagerException - if the transaction with given name existed alreadyprotected Collection<MMObjectNode> deleteTransaction(String transactionName)
null if no transaction with this name existed
public String addNode(String transactionName,
String owner,
String tmpnumber)
throws TransactionManagerException
TransactionManagerException
public String removeNode(String transactionName,
String owner,
String tmpnumber)
throws TransactionManagerException
TransactionManagerException
public String deleteObject(String transactionName,
String owner,
String tmpnumber)
throws TransactionManagerException
TransactionManagerException
public String cancel(Object user,
String transactionName)
public boolean resolve(String transactionName)
throws TransactionManagerException
TransactionManagerException
public String commit(Object user,
String transactionName)
throws TransactionManagerException
TransactionManagerException
boolean performCommits(Object user,
Collection<MMObjectNode> nodes)
public String findUserName(Object user)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||