|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.services.persistence.generic.dao.IdentityFixerMergePolicy
public class IdentityFixerMergePolicy
This class represents a policy on how to merge object graphs in the identity fixer.
AbstractIdentityFixer| Nested Class Summary | |
|---|---|
static class |
IdentityFixerMergePolicy.UpdatePolicy
This enumeration describes how the identity fixer should handle object updates. |
| Constructor Summary | |
|---|---|
protected |
IdentityFixerMergePolicy()
Default constructor. |
protected |
IdentityFixerMergePolicy(IdentityFixerMergePolicy.UpdatePolicy updatePolicy,
List<Object> objectsToUpdate,
boolean performPreparation,
IdentityHashMap<Object,Object> collectionEntryMapping)
Constructor to customize the policy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected IdentityFixerMergePolicy()
protected IdentityFixerMergePolicy(IdentityFixerMergePolicy.UpdatePolicy updatePolicy,
List<Object> objectsToUpdate,
boolean performPreparation,
IdentityHashMap<Object,Object> collectionEntryMapping)
updatePolicy - the update policy to use.objectsToUpdate - the objectsToUpdate if UDPATE_CHOSEN policy is chosen above.performPreparation - should preparation be performed (eg. for unwrapping proxies).collectionEntryMapping - the collectionEntryMapping [updated -> anchor]
used to correctly merge collections.| Method Detail |
|---|
public IdentityFixerMergePolicy.UpdatePolicy getUpdatePolicy()
public void setObjectsToUpdate(List<Object> objectsToUpdate)
objectsToUpdate - the list of objects to update.public List<Object> getObjectsToUpdate()
getUpdatePolicy == UpdatePolicy.UPDATE_CHOSEN.public boolean needsPreparation()
public IdentityHashMap<Object,Object> getCollectionEntryMapping()
public static IdentityFixerMergePolicy reloadAllPolicy()
public static IdentityFixerMergePolicy reloadObjectsPolicy(List<Object> objectsToUpdate)
objectsToUpdate - the objects to be updated.
public static IdentityFixerMergePolicy extendOnlyPolicy()
public static IdentityFixerMergePolicy reloadAllPolicy(IdentityHashMap<Object,Object> collectionEntryMapping)
collectionEntryMapping - the collectionEntryMapping [updated -> anchor]
used to correctly merge collections.
public static IdentityFixerMergePolicy reloadObjectsPolicy(List<Object> objectsToUpdate,
IdentityHashMap<Object,Object> collectionEntryMapping)
objectsToUpdate - the objects to be updated.collectionEntryMapping - the collectionEntryMapping [updated -> anchor]
used to correctly merge collections.
public static IdentityFixerMergePolicy extendOnlyPolicy(IdentityHashMap<Object,Object> collectionEntryMapping)
collectionEntryMapping - the collectionEntryMapping [updated -> anchor]
used to correctly merge collections.
public static IdentityFixerMergePolicy customPolicy(IdentityFixerMergePolicy.UpdatePolicy updatePolicy,
List<Object> objectsToUpdate,
boolean performPreparation,
IdentityHashMap<Object,Object> collectionEntryMapping)
updatePolicy - the update policy to use.objectsToUpdate - the objectsToUpdate if UDPATE_CHOSEN policy is chosen above.performPreparation - should preparation be performed (eg. for unwrapping proxies).collectionEntryMapping - the collectionEntryMapping [updated -> anchor]
used to correctly merge collections.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||