KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > applications > xmlimporter > SimilarObjectFinder


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.applications.xmlimporter;
11
12 import java.util.*;
13
14 /**
15  * This interface provides methods to customize the way similar
16  * objects are searched in both the persistent and temporary cloud.
17  *
18  * @author Rob van Maris: Finalist IT Group
19  * @since MMBase-1.5
20  * @version $Id: SimilarObjectFinder.java,v 1.4 2003/03/07 08:50:03 pierre Exp $
21  */

22 public interface SimilarObjectFinder {
23
24     /**
25      * Initialize this instance (called once per transaction).
26      * @param params The initialization parameters, provided as
27      * name/value pairs (both String).
28      * @throws TransactionHandlerException if a failure occurred.
29      */

30     public void init(HashMap params) throws TransactionHandlerException;
31
32     /**
33      * Searches for similar object. Objects found in the
34      * persistent cloud will be accessed in the transaction.
35      * @return List of the similar objects found.
36      * @param transaction The transaction where the tmpObj belongs to.
37      * @param tmpObj The object to search for.
38      * @throws TransactionHandlerException If a failure occurred.
39      */

40     public List findSimilarObject(Transaction transaction, TmpObject tmpObj)
41     throws TransactionHandlerException;
42
43 }
44
45
Popular Tags