Class EISOneToManyMappingHelper


  • public class EISOneToManyMappingHelper
    extends Object
    INTERNAL: Helper class to consolidate all the heinous comparing and merging code for the EIS one to many mappings.
    • Constructor Detail

      • EISOneToManyMappingHelper

        public EISOneToManyMappingHelper​(EISOneToManyMapping mapping)
        Constructor.
    • Method Detail

      • compareObjects

        public boolean compareObjects​(Object object1,
                                      Object object2,
                                      AbstractSession session)
        INTERNAL: Compare the attributes belonging to this mapping for the objects.
      • getDatabaseMapping

        public DatabaseMapping getDatabaseMapping()
        INTERNAL: Return the mapping, casted a bit more generally.
      • mergeIntoObject

        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.
      • simpleAddToCollectionChangeRecord

        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.
      • simpleRemoveFromCollectionChangeRecord

        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.