- All Implemented Interfaces:
- EventListener, TransactionEventListener
public class Submitter
- extends Object
- implements TransactionEventListener
This is used by mm-sr:relatednodes to execute some things after a transaction is committed.
In the first place this was for changes in order which were made in a transaction. We do this afterwards because to sort a query result,
it is important that the query can be executed. Which is not possible when nodes are modified or new in a transaction.
It will probably also be used to clean up other stuff from the session.
- $Id: Submitter.java 41650 2010-03-29 08:28:02Z michiel $
- Michiel Meeuwissen
protected Submitter(String tn)
public static Submitter getInstance(String name,
public String getTransactionName()
public void setOrder(NodeQuery nq,
- Sets the new order for a certain nq, which must be committed after the transaction.
order - The list with node numbers. The node numbers may still be negative (from transaction).
The numbers may also be Strings.
public void addCallbackForEnd(Runnable r)
public void notify(TransactionEvent e)
- Specified by:
notify in interface
public String toString()
toString in class
public int hashCode()
hashCode in class
public boolean equals(Object o)
equals in class
MMBase Search and Relate 2.0-SNAPSHOT - 2013-03-30T06:43