| Modifier and Type | Field and Description |
|---|---|
| private EISOneToManyMapping | mapping
The mapping that needs help comparing and merging. |
| private static Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Object | buildAddedElementFromChangeSet(Object changeSet, MergeManager mergeManager, AbstractSession targetSession)
Convenience method. |
| private Object | |
| private Object | buildElementFromElement(Object element, MergeManager mergeManager, AbstractSession targetSession)
Convenience method. |
| private Object | buildRemovedElementFromChangeSet(Object changeSet, MergeManager mergeManager, AbstractSession targetSession)
Convenience method. |
| private boolean | compareAttributeValues(Object collection1, Object collection2, AbstractSession session)
Compare the attributes. |
| private ChangeRecord | compareAttributeValuesForChangeWithOrder(Object cloneCollection, Object backupCollection, ObjectChangeSet owner, AbstractSession session)
Build and return the change record that results from comparing the two collection attributes. |
| private ChangeRecord | compareAttributeValuesForChangeWithoutOrder(Object cloneCollection, Object backupCollection, ObjectChangeSet owner, AbstractSession session)
Build and return the change record that results from comparing the two collection attributes. |
| private boolean | compareAttributeValuesWithOrder(Object collection1, Object collection2, AbstractSession session)
Compare the attributes. |
| private boolean | compareAttributeValuesWithoutOrder(Object collection1, Object collection2, AbstractSession session)
Compare the attributes. |
| private boolean | |
| private boolean | compareElementsForChange(Object element1, Object element2, AbstractSession session)
Convenience method. |
| public ChangeRecord | compareForChange(Object clone, Object backup, ObjectChangeSet owner, AbstractSession session)
INTERNAL: Build and return the change record that results from comparing the two collection attributes. |
| public boolean | compareObjects(Object object1, Object object2, AbstractSession session)
INTERNAL: Compare the attributes belonging to this mapping for the objects. |
| private String | |
| private ContainerPolicy | |
| public DatabaseMapping | |
| public EISOneToManyMapping | |
| private Object | getRealCollectionAttributeValueFromObject(Object object, AbstractSession session)
Convenience method. |
| private boolean | |
| public void | mergeChangesIntoObject(Object target, ChangeRecord changeRecord, Object source, MergeManager mergeManager, AbstractSession targetSession)
INTERNAL: Merge changes from the source to the target object. |
| private void | mergeChangesIntoObjectWithOrder(Object target, ChangeRecord changeRecord, Object source, MergeManager mergeManager, AbstractSession targetSession)
Merge changes from the source to the target object. |
| private void | mergeChangesIntoObjectWithoutOrder(Object target, ChangeRecord changeRecord, Object source, MergeManager mergeManager, AbstractSession targetSession)
Merge changes from the source to the target object. |
| public void | mergeIntoObject(Object target, boolean isTargetUnInitialized, Object source, MergeManager mergeManager, AbstractSession targetSession)
INTERNAL: Merge changes from the source to the target object. |
| private void | |
| public void | simpleAddToCollectionChangeRecord(Object referenceKey, Object changeSetToAdd, ObjectChangeSet changeSet, AbstractSession session)
ADVANCED: This method is used to add an object to a collection once the changeSet is applied. |
| private void | simpleAddToCollectionChangeRecordWithOrder(Object referenceKey, Object changeSetToAdd, ObjectChangeSet changeSet, AbstractSession session)
Add stuff to an ordered collection. |
| private void | simpleAddToCollectionChangeRecordWithoutOrder(Object referenceKey, Object changeSetToAdd, ObjectChangeSet changeSet, AbstractSession session)
Add stuff to an unordered collection. |
| public void | simpleRemoveFromCollectionChangeRecord(Object referenceKey, Object changeSetToRemove, ObjectChangeSet changeSet, AbstractSession session)
ADVANCED: This method is used to remove an object from a collection once the changeSet is applied. |
| private void | simpleRemoveFromCollectionChangeRecordWithOrder(Object referenceKey, Object changeSetToRemove, ObjectChangeSet changeSet, AbstractSession session)
Remove stuff from an ordered collection. |
| private void | simpleRemoveFromCollectionChangeRecordWithoutOrder(Object referenceKey, Object changeSetToRemove, ObjectChangeSet changeSet, AbstractSession session)
Remove stuff from an unordered collection. |
| mapping | back to summary |
|---|---|
| private EISOneToManyMapping mapping The mapping that needs help comparing and merging. | |
| XXX | back to summary |
|---|---|
| private static Object XXX | |
| EISOneToManyMappingHelper | back to summary |
|---|---|
| public EISOneToManyMappingHelper(EISOneToManyMapping mapping) Constructor. | |
| buildAddedElementFromChangeSet | back to summary |
|---|---|
| private Object buildAddedElementFromChangeSet(Object changeSet, MergeManager mergeManager, AbstractSession targetSession) Convenience method. | |
| buildChangeSet | back to summary |
|---|---|
| private Object buildChangeSet(Object element, ObjectChangeSet owner, AbstractSession session) Convenience method. | |
| buildElementFromElement | back to summary |
|---|---|
| private Object buildElementFromElement(Object element, MergeManager mergeManager, AbstractSession targetSession) Convenience method. | |
| buildRemovedElementFromChangeSet | back to summary |
|---|---|
| private Object buildRemovedElementFromChangeSet(Object changeSet, MergeManager mergeManager, AbstractSession targetSession) Convenience method. | |
| compareAttributeValues | back to summary |
|---|---|
| private boolean compareAttributeValues(Object collection1, Object collection2, AbstractSession session) Compare the attributes. Return true if they are alike. Assume the passed-in attributes are non-null. | |
| compareAttributeValuesForChangeWithOrder | back to summary |
|---|---|
| private ChangeRecord compareAttributeValuesForChangeWithOrder(Object cloneCollection, Object backupCollection, ObjectChangeSet owner, AbstractSession session) Build and return the change record that results from comparing the two collection attributes. The order of the elements is significant. | |
| compareAttributeValuesForChangeWithoutOrder | back to summary |
|---|---|
| private ChangeRecord compareAttributeValuesForChangeWithoutOrder(Object cloneCollection, Object backupCollection, ObjectChangeSet owner, AbstractSession session) Build and return the change record that results from comparing the two collection attributes. Ignore the order of the elements. | |
| compareAttributeValuesWithOrder | back to summary |
|---|---|
| private boolean compareAttributeValuesWithOrder(Object collection1, Object collection2, AbstractSession session) Compare the attributes. Return true if they are alike. The order of the elements is significant. | |
| compareAttributeValuesWithoutOrder | back to summary |
|---|---|
| private boolean compareAttributeValuesWithoutOrder(Object collection1, Object collection2, AbstractSession session) Compare the attributes. Return true if they are alike. Ignore the order of the elements. | |
| compareElements | back to summary |
|---|---|
| private boolean compareElements(Object element1, Object element2, AbstractSession session) Convenience method. Check for null values before delegating to the mapping. | |
| compareElementsForChange | back to summary |
|---|---|
| private boolean compareElementsForChange(Object element1, Object element2, AbstractSession session) Convenience method. Check for null values before delegating to the mapping. | |
| compareForChange | back to summary |
|---|---|
| public ChangeRecord compareForChange(Object clone, Object backup, ObjectChangeSet owner, AbstractSession session) INTERNAL: Build and return the change record that results from comparing the two collection attributes. | |
| compareObjects | back to summary |
|---|---|
| public boolean compareObjects(Object object1, Object object2, AbstractSession session) INTERNAL: Compare the attributes belonging to this mapping for the objects. | |
| getAttributeName | back to summary |
|---|---|
| private String getAttributeName() Convenience method. | |
| getContainerPolicy | back to summary |
|---|---|
| private ContainerPolicy getContainerPolicy() Convenience method. | |
| getDatabaseMapping | back to summary |
|---|---|
| public DatabaseMapping getDatabaseMapping() INTERNAL: Return the mapping, casted a bit more generally. | |
| getMapping | back to summary |
|---|---|
| public EISOneToManyMapping getMapping() INTERNAL: Return the mapping. | |
| getRealCollectionAttributeValueFromObject | back to summary |
|---|---|
| private Object getRealCollectionAttributeValueFromObject(Object object, AbstractSession session) Convenience method. | |
| mapKeyHasChanged | back to summary |
|---|---|
| private boolean mapKeyHasChanged(Object element, AbstractSession session) Convenience method. | |
| mergeChangesIntoObject | back to summary |
|---|---|
| public void mergeChangesIntoObject(Object target, ChangeRecord changeRecord, Object source, MergeManager mergeManager, AbstractSession targetSession) INTERNAL: Merge changes from the source to the target object. | |
| mergeChangesIntoObjectWithOrder | back to summary |
|---|---|
| private void mergeChangesIntoObjectWithOrder(Object target, ChangeRecord changeRecord, Object source, MergeManager mergeManager, AbstractSession targetSession) Merge changes from the source to the target object. Simply replace the entire target collection. | |
| mergeChangesIntoObjectWithoutOrder | back to summary |
|---|---|
| private void mergeChangesIntoObjectWithoutOrder(Object target, ChangeRecord changeRecord, Object source, MergeManager mergeManager, AbstractSession targetSession) Merge changes from the source to the target object. Make the necessary removals and adds and map key modifications. | |
| mergeIntoObject | back to summary |
|---|---|
| public void mergeIntoObject(Object target, boolean isTargetUnInitialized, Object source, MergeManager mergeManager, AbstractSession targetSession) INTERNAL: Merge changes from the source to the target object. Simply replace the entire target collection. | |
| setRealAttributeValueInObject | back to summary |
|---|---|
| private void setRealAttributeValueInObject(Object object, Object attributeValue) Convenience method. | |
| simpleAddToCollectionChangeRecord | back to summary |
|---|---|
| public void simpleAddToCollectionChangeRecord(Object referenceKey, Object changeSetToAdd, ObjectChangeSet changeSet, AbstractSession session) ADVANCED: This method is used to add an object to a collection once the changeSet is applied. The referenceKey parameter should only be used for direct Maps. | |
| simpleAddToCollectionChangeRecordWithOrder | back to summary |
|---|---|
| private void simpleAddToCollectionChangeRecordWithOrder(Object referenceKey, Object changeSetToAdd, ObjectChangeSet changeSet, AbstractSession session) Add stuff to an ordered collection. | |
| simpleAddToCollectionChangeRecordWithoutOrder | back to summary |
|---|---|
| private void simpleAddToCollectionChangeRecordWithoutOrder(Object referenceKey, Object changeSetToAdd, ObjectChangeSet changeSet, AbstractSession session) Add stuff to an unordered collection. | |
| simpleRemoveFromCollectionChangeRecord | back to summary |
|---|---|
| public void simpleRemoveFromCollectionChangeRecord(Object referenceKey, Object changeSetToRemove, ObjectChangeSet changeSet, AbstractSession session) ADVANCED: This method is used to remove an object from a collection once the changeSet is applied. The referenceKey parameter should only be used for direct Maps. | |
| simpleRemoveFromCollectionChangeRecordWithOrder | back to summary |
|---|---|
| private void simpleRemoveFromCollectionChangeRecordWithOrder(Object referenceKey, Object changeSetToRemove, ObjectChangeSet changeSet, AbstractSession session) Remove stuff from an ordered collection. | |
| simpleRemoveFromCollectionChangeRecordWithoutOrder | back to summary |
|---|---|
| private void simpleRemoveFromCollectionChangeRecordWithoutOrder(Object referenceKey, Object changeSetToRemove, ObjectChangeSet changeSet, AbstractSession session) Remove stuff from an unordered collection. | |