public class SpecificObjectFinder extends Object implements SimilarObjectFinder
| Constructor and Description |
|---|
SpecificObjectFinder(TmpObject tmpObj1,
TmpObject tmpObj2)
Creates new SpecificObjectFinder.
|
| Modifier and Type | Method and Description |
|---|---|
List<TmpObject> |
findSimilarObject(Transaction transaction,
TmpObject tmpObj)
Searches for similar object.
|
void |
init(HashMap<String,String> params)
Initialize this instance.
|
static void |
mergePersistentObjects(int mmbaseId1,
int mmbaseId2,
ObjectMerger merger)
Merge two objects in the persistent cloud (the database).
|
public void init(HashMap<String,String> params)
init in interface SimilarObjectFinderparams - The initialization parameters, provided as
name/value pairs (both String).public List<TmpObject> findSimilarObject(Transaction transaction, TmpObject tmpObj)
findSimilarObject in interface SimilarObjectFindertransaction - The transaction where the tmpObj belongs to.tmpObj - The object to search for.public static void mergePersistentObjects(int mmbaseId1,
int mmbaseId2,
ObjectMerger merger)
throws TransactionHandlerException
mmbaseId1 - MMBase number of the first object. Afterward this
object will be deleted.mmbaseId2 - MMBase number of the second object. Afterward this
object will hold the merged result.merger - The merger to be used.TransactionHandlerException - If a failure occurred.MMBase 1.9-SNAPSHOT - ${javadoctimestamp}