|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
This interface provides methods to customize the way objects are merged in a temporary cloud.
| Method Summary | |
boolean |
areDuplicates(TmpObject relation1,
TmpObject relation2)
Tests if two relations should be considered duplicates, indicating that one of them must be disposed of. |
void |
init(java.util.HashMap params)
Initialize this instance (called once per transaction). |
boolean |
isAllowedToAdd(TmpObject tmpObj)
Tests if this object should be added to the persistent cloud when not present already. |
void |
mergeField(TmpObject tmpObj1,
TmpObject tmpObj2,
java.lang.String name)
Merges a field. |
void |
mergeRelations(TmpObject tmpObj1,
TmpObject tmpObj2,
java.util.List relations1,
java.util.List relations2)
Merges relations. |
| Method Detail |
public void init(java.util.HashMap params)
throws TransactionHandlerException
params - The initialization parameters, provided as
name/value pairs (both String).TransactionHandlerException - if a failure occurred.
public void mergeField(TmpObject tmpObj1,
TmpObject tmpObj2,
java.lang.String name)
tmpObj1 - The first object to be merged. This will hold
the resulting merged object afterwards.tmpObj2 - The second object. this object must be deleted
afterwards.name - The name of the field.
(Note: "number" and "owner" are not considered fields in this context,
so this method will not be called with these values for name.)
public void mergeRelations(TmpObject tmpObj1,
TmpObject tmpObj2,
java.util.List relations1,
java.util.List relations2)
tmpObj1 - The first object to be merged. This will hold
the resulting merged object afterwards.tmpObj2 - The second object. this object must be deleted
afterwards.relations1 - List of all relations of the first
object (as TmpObject instances).relations2 - List of all relations of the second
object (as TmpObject instances).
public boolean areDuplicates(TmpObject relation1,
TmpObject relation2)
relation1 - The first relation.relation2 - The second relation.public boolean isAllowedToAdd(TmpObject tmpObj)
tmpObj - The object.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||