|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.mmbase.applications.xmlimporter.BasicFinder
A basic implementation of SimilarObjectFinder.
| Constructor Summary | |
BasicFinder()
Creates new BasicFinder |
|
| Method Summary | |
protected static java.util.List |
findPersistentObjects(MMObjectBuilder builder,
java.lang.String criterium)
Convenience method: finds MMBase id's for all objects in the persistent cloud of a given type and satisfying a criterium. |
java.util.List |
findSimilarObject(Transaction transaction,
TmpObject tmpObj)
Searches for similar object. |
abstract java.util.Collection |
getClosePersistentObjects(TmpObject tmpObj)
Gets MMBase id's for all objects from persistent cloud that might produce a qualifying match with the given object (possibly including the object itself). |
abstract java.util.Collection |
getExactPersistentObjects(TmpObject tmpObj)
Gets MMBase id's for all objects from persistent cloud that produce an exact match with the given object (possibly including the object itself). |
void |
init(java.util.HashMap params)
Initializes this instance. |
abstract float |
scoreNode(TmpObject tmpObj1,
TmpObject tmpObj2)
Calculates matching rate for two objects, e.g. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicFinder()
| Method Detail |
protected static java.util.List findPersistentObjects(MMObjectBuilder builder,
java.lang.String criterium)
builder - The builder for this type.criterium - The criterium: SQL where-clause, but
without the "where ".
public void init(java.util.HashMap params)
throws TransactionHandlerException
init in interface SimilarObjectFinderparams - The initialization parameters, provided as
name/value pairs (both String).TransactionHandlerException - if a failure occurred.
public java.util.List findSimilarObject(Transaction transaction,
TmpObject tmpObj)
throws TransactionHandlerException
findSimilarObject in interface SimilarObjectFindertransaction - The transaction.tmpObj - The object to search for.TransactionHandlerException - If a failure occurred.
public abstract float scoreNode(TmpObject tmpObj1,
TmpObject tmpObj2)
tmpObj1 - The object for which the matching rate is wanted.tmpObj2 - The object to match with.public abstract java.util.Collection getExactPersistentObjects(TmpObject tmpObj)
tmpObj - The object to match with.public abstract java.util.Collection getClosePersistentObjects(TmpObject tmpObj)
tmpObj - The object to match with.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||