Purpose: UnidirectionalOneToManyMapping doesn't have 1:1 back reference mapping.
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | shouldIncrementTargetLockValueOnAddOrRemoveTarget
Indicates whether target's optimistic locking value should be incremented on target being added to / removed from a source. |
| protected boolean | shouldIncrementTargetLockValueOnDeleteSource
Indicates whether target's optimistic locking value should be incremented on the source deletion. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected AbstractRecord | buildKeyRowForTargetUpdate(ObjectLevelModifyQuery query)
Overrides org. |
| public ChangeRecord | Returns: org.eclipse.persistence.internal.sessions.ChangeRecordTODO clone, Object TODO backUp, ObjectChangeSet TODO owner, AbstractSession TODO uow)Overrides org. |
| protected AbstractRecord | |
| protected Vector | extractSourceKeyFromRow(AbstractRecord row, AbstractSession session)
INTERNAL: Extract the source primary key value from the target row. |
| public void | initialize(AbstractSession session)
Overrides org. |
| public boolean | |
| public boolean | |
| public void | postCalculateChanges(ChangeRecord changeRecord, UnitOfWorkImpl uow)
Overrides org. |
| public void | postCalculateChangesOnDeleted(Object deletedObject, UnitOfWorkChangeSet uowChangeSet, UnitOfWorkImpl uow)
Overrides org. |
| public void | postInitialize(AbstractSession session)
Overrides org. |
| protected void | postPrepareNestedBatchQuery(ReadQuery batchQuery, ObjectLevelReadQuery query)
Overrides org. |
| public void | preDelete(DeleteObjectQuery query)
Overrides org. |
| public void | prepareCascadeLockingPolicy()
Overrides org. |
| protected void | prepareTranslationRow(AbstractRecord translationRow, Object object, ClassDescriptor descriptor, AbstractSession session)
Overrides org. |
| public void | recordPrivateOwnedRemovals(Object object, UnitOfWorkImpl uow)
Overrides org. |
| public boolean | requiresDataModificationEvents()
Overrides org. |
| 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). |
| 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). |
| public boolean | |
| 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). |
| public boolean | shouldIncrementTargetLockValueOnDeleteSource()
PUBLIC: Indicates whether target's optimistic locking value should be incremented on the source deletion (default value is true). |
| protected boolean | shouldRemoveTargetQueryModifyTargetForeignKey()
Overrides org. |
| shouldIncrementTargetLockValueOnAddOrRemoveTarget | back to summary |
|---|---|
| protected boolean shouldIncrementTargetLockValueOnAddOrRemoveTarget Indicates whether target's optimistic locking value should be incremented on target being added to / removed from a source. | |
| shouldIncrementTargetLockValueOnDeleteSource | back to summary |
|---|---|
| protected boolean shouldIncrementTargetLockValueOnDeleteSource Indicates whether target's optimistic locking value should be incremented on the source deletion. Note that if the flag is set to true then the indirection will be triggered on source delete - in order to verify all targets' versions. | |
| UnidirectionalOneToManyMapping | back to summary |
|---|---|
| public UnidirectionalOneToManyMapping() PUBLIC: Default constructor. | |
| buildKeyRowForTargetUpdate | back to summary |
|---|---|
| protected AbstractRecord buildKeyRowForTargetUpdate(ObjectLevelModifyQuery query) Overrides org. INTERNAL: Build a row containing the keys for use in the query that updates the row for the target object during an insert or update
| |
| compareForChange | back to summary |
|---|---|
| public ChangeRecord compareForChange(Object clone, Object backUp, ObjectChangeSet owner, AbstractSession uow) Overrides org. INTERNAL: This method is used to create a change record from comparing two collections
| |
| createModifyRowForAddTargetQuery | back to summary |
|---|---|
| protected AbstractRecord createModifyRowForAddTargetQuery() Overrides org. INTERNAL:
| |
| extractSourceKeyFromRow | back to summary |
|---|---|
| protected Vector INTERNAL: Extract the source primary key value from the target row. Used for batch reading, most following same order and fields as in the mapping. | |
| initialize | back to summary |
|---|---|
| public void initialize(AbstractSession session) throws DescriptorException Overrides org. INTERNAL: Initialize the mapping.
| |
| isOwned | back to summary |
|---|---|
| public boolean isOwned() Overrides org. INTERNAL:
| |
| isUnidirectionalOneToManyMapping | back to summary |
|---|---|
| public boolean isUnidirectionalOneToManyMapping() Overrides org. INTERNAL:
| |
| postCalculateChanges | back to summary |
|---|---|
| public void postCalculateChanges(ChangeRecord changeRecord, UnitOfWorkImpl uow) Overrides org. INTERNAL: Overridden by mappings that require additional processing of the change record after the record has been calculated.
| |
| postCalculateChangesOnDeleted | back to summary |
|---|---|
| public void postCalculateChangesOnDeleted(Object deletedObject, UnitOfWorkChangeSet uowChangeSet, UnitOfWorkImpl uow) Overrides org. INTERNAL: Overridden by mappings that require objects to be deleted contribute to change set creation.
| |
| postInitialize | back to summary |
|---|---|
| public void postInitialize(AbstractSession session) Overrides org. Initialize the type of the target foreign key, as it will be null as it is not mapped in the target.
| |
| postPrepareNestedBatchQuery | back to summary |
|---|---|
| protected void postPrepareNestedBatchQuery(ReadQuery batchQuery, ObjectLevelReadQuery query) Overrides org. INTERNAL: Add additional fields
| |
| preDelete | back to summary |
|---|---|
| public void preDelete(DeleteObjectQuery query) throws DatabaseException, OptimisticLockException Overrides org. INTERNAL: Delete the reference objects.
| |
| prepareCascadeLockingPolicy | back to summary |
|---|---|
| public void prepareCascadeLockingPolicy() Overrides org. Prepare a cascade locking policy.
| |
| prepareTranslationRow | back to summary |
|---|---|
| protected void prepareTranslationRow(AbstractRecord translationRow, Object object, ClassDescriptor descriptor, AbstractSession session) Overrides org. INTERNAL: The translation row may require additional fields than the primary key if the mapping in not on the primary key.
| |
| recordPrivateOwnedRemovals | back to summary |
|---|---|
| public void recordPrivateOwnedRemovals(Object object, UnitOfWorkImpl uow) Overrides org. INTERNAL: Overridden by mappings that require additional processing of the change record after the record has been calculated.
| |
| requiresDataModificationEvents | back to summary |
|---|---|
| public boolean requiresDataModificationEvents() Overrides org. INTERNAL: UnidirectionalOneToManyMapping performs some events after INSERT/UPDATE to maintain the keys
| |
| setShouldIncrementTargetLockValueOnAddOrRemoveTarget | back to summary |
|---|---|
| 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 | back to summary |
|---|---|
| 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). | |
| shouldDeferInsert | back to summary |
|---|---|
| public boolean shouldDeferInsert() Overrides org.
| |
| shouldIncrementTargetLockValueOnAddOrRemoveTarget | back to summary |
|---|---|
| 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 | back to summary |
|---|---|
| public boolean shouldIncrementTargetLockValueOnDeleteSource() PUBLIC: Indicates whether target's optimistic locking value should be incremented on the source deletion (default value is true). | |
| shouldRemoveTargetQueryModifyTargetForeignKey | back to summary |
|---|---|
| protected boolean shouldRemoveTargetQueryModifyTargetForeignKey() Overrides org. INTERNAL Target foreign key of the removed object should be modified (set to null).
| |