org.mmbase.applications.xmlimporter
Interface SimilarObjectFinder

All Known Implementing Classes:
BasicFinder, SpecificObjectFinder

public interface SimilarObjectFinder

This interface provides methods to customize the way similar objects are searched in both the persistent and temporary cloud.

Since:
MMBase-1.5
Version:
$Id: SimilarObjectFinder.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Rob van Maris: Finalist IT Group

Method Summary
 List<TmpObject> findSimilarObject(Transaction transaction, TmpObject tmpObj)
          Searches for similar object.
 void init(HashMap<String,String> params)
          Initialize this instance (called once per transaction).
 

Method Detail

init

void init(HashMap<String,String> params)
          throws TransactionHandlerException
Initialize this instance (called once per transaction).

Parameters:
params - The initialization parameters, provided as name/value pairs (both String).
Throws:
TransactionHandlerException - if a failure occurred.

findSimilarObject

List<TmpObject> findSimilarObject(Transaction transaction,
                                  TmpObject tmpObj)
                                  throws TransactionHandlerException
Searches for similar object. Objects found in the persistent cloud will be accessed in the transaction.

Parameters:
transaction - The transaction where the tmpObj belongs to.
tmpObj - The object to search for.
Returns:
List of the similar objects found.
Throws:
TransactionHandlerException - If a failure occurred.


MMBase 2.0-SNAPSHOT - null