Class UnidirectionalOneToManyMapping

    • Constructor Detail

      • UnidirectionalOneToManyMapping

        public UnidirectionalOneToManyMapping()
        PUBLIC: Default constructor.
    • Method Detail

      • compareForChange

        public org.eclipse.persistence.internal.sessions.ChangeRecord compareForChange​(java.lang.Object clone,
                                                                                       java.lang.Object backUp,
                                                                                       org.eclipse.persistence.internal.sessions.ObjectChangeSet owner,
                                                                                       org.eclipse.persistence.internal.sessions.AbstractSession uow)
        INTERNAL: This method is used to create a change record from comparing two collections
        Overrides:
        compareForChange in class CollectionMapping
        Returns:
        org.eclipse.persistence.internal.sessions.ChangeRecord
      • postInitialize

        public void postInitialize​(org.eclipse.persistence.internal.sessions.AbstractSession session)
        Initialize the type of the target foreign key, as it will be null as it is not mapped in the target.
        Overrides:
        postInitialize in class CollectionMapping
      • postCalculateChanges

        public void postCalculateChanges​(ChangeRecord changeRecord,
                                         org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow)
        INTERNAL: Overridden by mappings that require additional processing of the change record after the record has been calculated.
        Overrides:
        postCalculateChanges in class CollectionMapping
      • postCalculateChangesOnDeleted

        public void postCalculateChangesOnDeleted​(java.lang.Object deletedObject,
                                                  org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet uowChangeSet,
                                                  org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow)
        INTERNAL: Overridden by mappings that require objects to be deleted contribute to change set creation.
        Overrides:
        postCalculateChangesOnDeleted in class DatabaseMapping
      • recordPrivateOwnedRemovals

        public void recordPrivateOwnedRemovals​(java.lang.Object object,
                                               org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow)
        INTERNAL: Overridden by mappings that require additional processing of the change record after the record has been calculated.
        Overrides:
        recordPrivateOwnedRemovals in class CollectionMapping
      • setShouldIncrementTargetLockValueOnAddOrRemoveTarget

        public void setShouldIncrementTargetLockValueOnAddOrRemoveTarget​(boolean shouldIncrementTargetLockValueOnAddOrRemoveTarget)
        PUBLIC: Set value that indicates whether target's optimistic locking value should be incremented on target being added to / removed from a source (default value is true).
      • setShouldIncrementTargetLockValueOnDeleteSource

        public void setShouldIncrementTargetLockValueOnDeleteSource​(boolean shouldIncrementTargetLockValueOnDeleteSource)
        PUBLIC: Set value that indicates whether target's optimistic locking value should be incremented on the source deletion (default value is true).
      • shouldIncrementTargetLockValueOnAddOrRemoveTarget

        public boolean shouldIncrementTargetLockValueOnAddOrRemoveTarget()
        PUBLIC: Indicates whether target's optimistic locking value should be incremented on target being added to / removed from a source (default value is true).
      • shouldIncrementTargetLockValueOnDeleteSource

        public boolean shouldIncrementTargetLockValueOnDeleteSource()
        PUBLIC: Indicates whether target's optimistic locking value should be incremented on the source deletion (default value is true).