/** * ADVANCED: * This method is used to have an object removed from a collection once the changeSet is applied * The referenceKey parameter should only be used for direct Maps. */ public void simpleRemoveFromCollectionChangeRecord(Object referenceKey, Object changeSetToRemove, ObjectChangeSet changeSet, AbstractSession session) { (new EISOneToManyMappingHelper(this)).simpleRemoveFromCollectionChangeRecord(referenceKey, changeSetToRemove, changeSet, session); }
/** * ADVANCED: * This method is used to have an object add to a collection once the changeSet is applied * The referenceKey parameter should only be used for direct Maps. */ public void simpleAddToCollectionChangeRecord(Object referenceKey, Object changeSetToAdd, ObjectChangeSet changeSet, AbstractSession session) { (new EISOneToManyMappingHelper(this)).simpleAddToCollectionChangeRecord(referenceKey, changeSetToAdd, changeSet, session); }
/** * ADVANCED: * This method is used to have an object add to a collection once the changeSet is applied * The referenceKey parameter should only be used for direct Maps. */ @Override public void simpleAddToCollectionChangeRecord(Object referenceKey, Object changeSetToAdd, ObjectChangeSet changeSet, AbstractSession session) { (new EISOneToManyMappingHelper(this)).simpleAddToCollectionChangeRecord(referenceKey, changeSetToAdd, changeSet, session); }
/** * ADVANCED: * This method is used to have an object removed from a collection once the changeSet is applied * The referenceKey parameter should only be used for direct Maps. */ @Override public void simpleRemoveFromCollectionChangeRecord(Object referenceKey, Object changeSetToRemove, ObjectChangeSet changeSet, AbstractSession session) { (new EISOneToManyMappingHelper(this)).simpleRemoveFromCollectionChangeRecord(referenceKey, changeSetToRemove, changeSet, session); }
/** * ADVANCED: * This method is used to have an object add to a collection once the changeSet is applied * The referenceKey parameter should only be used for direct Maps. */ @Override public void simpleAddToCollectionChangeRecord(Object referenceKey, Object changeSetToAdd, ObjectChangeSet changeSet, AbstractSession session) { (new EISOneToManyMappingHelper(this)).simpleAddToCollectionChangeRecord(referenceKey, changeSetToAdd, changeSet, session); }
/** * ADVANCED: * This method is used to have an object removed from a collection once the changeSet is applied * The referenceKey parameter should only be used for direct Maps. */ @Override public void simpleRemoveFromCollectionChangeRecord(Object referenceKey, Object changeSetToRemove, ObjectChangeSet changeSet, AbstractSession session) { (new EISOneToManyMappingHelper(this)).simpleRemoveFromCollectionChangeRecord(referenceKey, changeSetToRemove, changeSet, session); }
/** * INTERNAL: * Compare the attributes belonging to this mapping for the objects. */ @Override public boolean compareObjects(Object object1, Object object2, AbstractSession session) { if (isForeignKeyRelationship()) { return (new EISOneToManyMappingHelper(this)).compareObjects(object1, object2, session); } return super.compareObjects(object1, object2, session); }
/** * INTERNAL: * Compare the attributes belonging to this mapping for the objects. */ public boolean compareObjects(Object object1, Object object2, AbstractSession session) { if (isForeignKeyRelationship()) { return (new EISOneToManyMappingHelper(this)).compareObjects(object1, object2, session); } return super.compareObjects(object1, object2, session); }
/** * INTERNAL: * If the mapping has a foreign key, it is order, so must use a different merge. */ @Override public void mergeIntoObject(Object target, boolean isTargetUnInitialized, Object source, MergeManager mergeManager, AbstractSession targetSession) { if (isForeignKeyRelationship()) { (new EISOneToManyMappingHelper(this)).mergeIntoObject(target, isTargetUnInitialized, source, mergeManager, targetSession); return; } super.mergeIntoObject(target, isTargetUnInitialized, source, mergeManager, targetSession); }
/** * INTERNAL: * Compare the attributes belonging to this mapping for the objects. */ @Override public boolean compareObjects(Object object1, Object object2, AbstractSession session) { if (isForeignKeyRelationship()) { return (new EISOneToManyMappingHelper(this)).compareObjects(object1, object2, session); } return super.compareObjects(object1, object2, session); }
/** * INTERNAL: * If the mapping has a foreign key, it is order, so must use a different merge. */ @Override public void mergeChangesIntoObject(Object target, ChangeRecord chgRecord, Object source, MergeManager mergeManager, AbstractSession targetSession) { if (isForeignKeyRelationship()) { (new EISOneToManyMappingHelper(this)).mergeChangesIntoObject(target, chgRecord, source, mergeManager, targetSession); return; } super.mergeChangesIntoObject(target, chgRecord, source, mergeManager, targetSession); }
/** * INTERNAL: * If the mapping has a foreign key, it is order, so must use a different merge. */ @Override public void mergeChangesIntoObject(Object target, ChangeRecord chgRecord, Object source, MergeManager mergeManager, AbstractSession targetSession) { if (isForeignKeyRelationship()) { (new EISOneToManyMappingHelper(this)).mergeChangesIntoObject(target, chgRecord, source, mergeManager, targetSession); return; } super.mergeChangesIntoObject(target, chgRecord, source, mergeManager, targetSession); }
/** * INTERNAL: * If the mapping has a foreign key, it is order, so must use a different merge. */ @Override public void mergeIntoObject(Object target, boolean isTargetUnInitialized, Object source, MergeManager mergeManager, AbstractSession targetSession) { if (isForeignKeyRelationship()) { (new EISOneToManyMappingHelper(this)).mergeIntoObject(target, isTargetUnInitialized, source, mergeManager, targetSession); return; } super.mergeIntoObject(target, isTargetUnInitialized, source, mergeManager, targetSession); }
/** * INTERNAL: * Compare the changes between two collections. Element comparisons are * made using identity and, when appropriate, the value of the element's key * for the Map container. */ @Override public ChangeRecord compareForChange(Object clone, Object backup, ObjectChangeSet owner, AbstractSession session) { if (isForeignKeyRelationship()) { if ((this.getAttributeValueFromObject(clone) != null) && (!this.isAttributeValueInstantiatedOrChanged(clone))) { return null;// never instantiated - no changes to report } return (new EISOneToManyMappingHelper(this)).compareForChange(clone, backup, owner, session); } else { return super.compareForChange(clone, backup, owner, session); } }
/** * INTERNAL: * Compare the changes between two collections. Element comparisons are * made using identity and, when appropriate, the value of the element's key * for the Map container. */ public ChangeRecord compareForChange(Object clone, Object backup, ObjectChangeSet owner, AbstractSession session) { if (isForeignKeyRelationship()) { if ((this.getAttributeValueFromObject(clone) != null) && (!this.isAttributeValueInstantiatedOrChanged(clone))) { return null;// never instantiated - no changes to report } return (new EISOneToManyMappingHelper(this)).compareForChange(clone, backup, owner, session); } else { return super.compareForChange(clone, backup, owner, session); } }
/** * INTERNAL: * Compare the changes between two collections. Element comparisons are * made using identity and, when appropriate, the value of the element's key * for the Map container. */ @Override public ChangeRecord compareForChange(Object clone, Object backup, ObjectChangeSet owner, AbstractSession session) { if (isForeignKeyRelationship()) { if ((this.getAttributeValueFromObject(clone) != null) && (!this.isAttributeValueInstantiatedOrChanged(clone))) { return null;// never instantiated - no changes to report } return (new EISOneToManyMappingHelper(this)).compareForChange(clone, backup, owner, session); } else { return super.compareForChange(clone, backup, owner, session); } }