org.mmbase.searchrelate
Class Submitter

Package class diagram package Submitter
java.lang.Object
  extended by org.mmbase.searchrelate.Submitter
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.

Version:
$Id: Submitter.java 41650 2010-03-29 08:28:02Z michiel $
Author:
Michiel Meeuwissen

Constructor Summary
protected Submitter(String tn)
           
 
Method Summary
 void addCallbackForEnd(Runnable r)
           
 boolean equals(Object o)
           
static Submitter getInstance(String name, HttpSession session)
           
 String getTransactionName()
           
 int hashCode()
           
 void notify(TransactionEvent e)
           
 void setOrder(NodeQuery nq, List order)
          Sets the new order for a certain nq, which must be committed after the transaction.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Submitter

protected Submitter(String tn)
Method Detail

getInstance

public static Submitter getInstance(String name,
                                    HttpSession session)

getTransactionName

public String getTransactionName()

setOrder

public void setOrder(NodeQuery nq,
                     List order)
Sets the new order for a certain nq, which must be committed after the transaction.

Parameters:
order - The list with node numbers. The node numbers may still be negative (from transaction). The numbers may also be Strings.

addCallbackForEnd

public void addCallbackForEnd(Runnable r)

notify

public void notify(TransactionEvent e)
Specified by:
notify in interface TransactionEventListener

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


MMBase Search and Relate 2.0-SNAPSHOT - 2013-03-30T06:43