Uses of Class
org.eclipse.persistence.mappings.ForeignReferenceMapping
-
-
Uses of ForeignReferenceMapping in org.eclipse.persistence.descriptors.changetracking
Methods in org.eclipse.persistence.descriptors.changetracking with parameters of type ForeignReferenceMapping Modifier and Type Method Description voidAttributeChangeTrackingPolicy. updateListenerForSelfMerge(ObjectChangeListener listener, ForeignReferenceMapping mapping, Object source, Object target, UnitOfWorkImpl unitOfWork)INTERNAL: In cases where a relationship with detached or new entities is merged into itself previous changes may have been recorded for the detached/new entity that need to be updated.voidDeferredChangeDetectionPolicy. updateListenerForSelfMerge(ObjectChangeListener listener, ForeignReferenceMapping mapping, Object source, Object target, UnitOfWorkImpl unitOfWork)INTERNAL: In cases where a relationship with detached or new entities is merged into itself previous changes may have been recorded for the detached/new entity that need to be updated.voidObjectChangePolicy. updateListenerForSelfMerge(ObjectChangeListener listener, ForeignReferenceMapping mapping, Object source, Object target, UnitOfWorkImpl unitOfWork)INTERNAL: In cases where a relationship with detached or new entities is merged into itself previous changes may have been recorded for the detached/new entity that need to be updated. -
Uses of ForeignReferenceMapping in org.eclipse.persistence.eis.mappings
Subclasses of ForeignReferenceMapping in org.eclipse.persistence.eis.mappings Modifier and Type Class Description classEISOneToManyMappingAn EIS one-to-many mapping is a reference mapping that represents the relationship between a single source object and a collection of mapped persistent Java objects.classEISOneToOneMappingAn EIS one-to-one mapping is a reference mapping that represents the relationship between a single source object and a single mapped persistent Java object. -
Uses of ForeignReferenceMapping in org.eclipse.persistence.exceptions
-
Uses of ForeignReferenceMapping in org.eclipse.persistence.internal.identitymaps
Methods in org.eclipse.persistence.internal.identitymaps with parameters of type ForeignReferenceMapping Modifier and Type Method Description voidFullIdentityMap. lazyRelationshipLoaded(Object object, ValueHolderInterface valueHolder, ForeignReferenceMapping mapping)Notify the cache that a lazy relationship has been triggered in the object and the cache may need to be updatedvoidIdentityMap. lazyRelationshipLoaded(Object rootEntity, ValueHolderInterface valueHolder, ForeignReferenceMapping mapping)Notify the cache that a lazy relationship has been triggered in the object and the cache may need to be updatedvoidNoIdentityMap. lazyRelationshipLoaded(Object object, ValueHolderInterface valueHolder, ForeignReferenceMapping mapping)Notify the cache that a lazy relationship has been triggered in the object and the cache may need to be updated -
Uses of ForeignReferenceMapping in org.eclipse.persistence.internal.indirection
Fields in org.eclipse.persistence.internal.indirection declared as ForeignReferenceMapping Modifier and Type Field Description protected ForeignReferenceMappingBatchValueHolder. mappingprotected ForeignReferenceMappingCacheBasedValueHolder. mappingMethods in org.eclipse.persistence.internal.indirection that return ForeignReferenceMapping Modifier and Type Method Description protected ForeignReferenceMappingIndirectionPolicy. getForeignReferenceMapping()INTERNAL: Reduce casting clutter....protected ForeignReferenceMappingBatchValueHolder. getMapping()Methods in org.eclipse.persistence.internal.indirection with parameters of type ForeignReferenceMapping Modifier and Type Method Description protected voidBatchValueHolder. setMapping(ForeignReferenceMapping mapping)Constructors in org.eclipse.persistence.internal.indirection with parameters of type ForeignReferenceMapping Constructor Description BatchValueHolder(ReadQuery query, AbstractRecord row, ForeignReferenceMapping mapping, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey)Initialize the query-based value holder.CacheBasedValueHolder(Object[] pks, AbstractRecord foreignKeys, AbstractSession session, ForeignReferenceMapping mapping)UnitOfWorkQueryValueHolder(ValueHolderInterface<T> attributeValue, Object clone, ForeignReferenceMapping mapping, AbstractRecord row, UnitOfWorkImpl unitOfWork) -
Uses of ForeignReferenceMapping in org.eclipse.persistence.internal.queries
Methods in org.eclipse.persistence.internal.queries with parameters of type ForeignReferenceMapping Modifier and Type Method Description ExpressionJoinedAttributeManager. addAndPrepareJoinedMapping(ForeignReferenceMapping mapping, AbstractSession session)Add the mapping for join fetch, prepare and return the join expression being used.protected booleanExpressionQueryMechanism. shouldBuildDeleteStatementForMapping(ForeignReferenceMapping frMapping, boolean dontCheckDescriptor, ClassDescriptor descriptor)voidContainerPolicy. updateChangeRecordForSelfMerge(ChangeRecord changeRecord, Object source, Object target, ForeignReferenceMapping mapping, UnitOfWorkChangeSet parentUOWChangeSet, UnitOfWorkImpl unitOfWork)INTERNAL: Update a ChangeRecord to replace the ChangeSet for the old entity with the changeSet for the new Entity.voidListContainerPolicy. updateChangeRecordForSelfMerge(ChangeRecord changeRecord, Object source, Object target, ForeignReferenceMapping mapping, UnitOfWorkChangeSet parentUOWChangeSet, UnitOfWorkImpl unitOfWork)INTERNAL: Update a ChangeRecord to replace the ChangeSet for the old entity with the changeSet for the new Entity.voidOrderedListContainerPolicy. updateChangeRecordForSelfMerge(ChangeRecord changeRecord, Object source, Object target, ForeignReferenceMapping mapping, UnitOfWorkChangeSet parentUOWChangeSet, UnitOfWorkImpl unitOfWork)INTERNAL: Update a ChangeRecord to replace the ChangeSet for the old entity with the changeSet for the new Entity.ObjectContainerPolicy. valueFromPKList(Object[] pks, AbstractRecord foreignKeys, ForeignReferenceMapping mapping, AbstractSession session)INTERNAL: This method is used to load a relationship from a list of PKs.ObjectListContainerPolicy. valueFromPKList(Object[] pks, AbstractRecord foreignKeys, ForeignReferenceMapping mapping, AbstractSession session)INTERNAL: This method is used to load a relationship from a list of PKs.ObjectMapContainerPolicy. valueFromPKList(Object[] pks, AbstractRecord foreignKeys, ForeignReferenceMapping mapping, AbstractSession session)INTERNAL: This method is used to load a relationship from a list of PKs.ObjectMappedKeyMapContainerPolicy. valueFromPKList(Object[] pks, AbstractRecord foreignKeys, ForeignReferenceMapping mapping, AbstractSession session)INTERNAL: This method is used to load a relationship from a list of PKs. -
Uses of ForeignReferenceMapping in org.eclipse.persistence.internal.sessions
Methods in org.eclipse.persistence.internal.sessions with parameters of type ForeignReferenceMapping Modifier and Type Method Description <T> DatabaseValueHolder<T>AbstractSession. createCloneQueryValueHolder(ValueHolderInterface<T> attributeValue, Object clone, AbstractRecord row, ForeignReferenceMapping mapping)<T> DatabaseValueHolder<T>UnitOfWorkImpl. createCloneQueryValueHolder(ValueHolderInterface<T> attributeValue, Object clone, AbstractRecord row, ForeignReferenceMapping mapping) -
Uses of ForeignReferenceMapping in org.eclipse.persistence.mappings
Subclasses of ForeignReferenceMapping in org.eclipse.persistence.mappings Modifier and Type Class Description classAggregateCollectionMappingPurpose: The aggregate collection mapping is used to represent the aggregate relationship between a single source object and a collection of target objects.classCollectionMappingPurpose: Abstract class for relationship mappings which store collection of objectsclassDirectCollectionMappingPurpose: This mapping is used to store a collection of simple types (String, Number, Date, etc.) into a single table.classDirectMapMappingMapping for a collection of key-value pairs.classManyToManyMappingPurpose: Many to many mappings are used to represent the relationships between a collection of source objects and a collection of target objects.classManyToOneMappingPurpose: Define the relationship to be a ManyToOne.classObjectReferenceMappingPurpose: Abstract class for 1:1, variable 1:1 and reference mappingsclassOneToManyMappingPurpose: This mapping is used to represent the typical RDBMS relationship between a single source object and collection of target objects; where, on the database, the target objects have references (foreign keys) to the source object.classOneToOneMappingPurpose: One to one mappings are used to represent a pointer references between two java objects.classUnidirectionalOneToManyMappingPurpose: UnidirectionalOneToManyMapping doesn't have 1:1 back reference mapping.classVariableOneToOneMappingPurpose: Variable one to one mappings are used to represent a pointer references between a java object and an implementer of an interface.Methods in org.eclipse.persistence.mappings with parameters of type ForeignReferenceMapping Modifier and Type Method Description AbstractRecordRelationTableMechanism. addRelationTableSourceRow(Object sourceObject, AbstractSession session, AbstractRecord databaseRow, ForeignReferenceMapping mapping)INTERNAL: Add to a row source relation fields with values extracted from the source object.AbstractRecordRelationTableMechanism. addRelationTableTargetRow(Object targetObject, AbstractSession session, AbstractRecord databaseRow, ForeignReferenceMapping mapping)INTERNAL: Add to a row target relation fields with values extracted from the target object.AbstractRecordRelationTableMechanism. buildRelationTableSourceAndTargetRow(Object sourceObject, Object targetObject, AbstractSession session, ForeignReferenceMapping mapping)INTERNAL: Create a row that contains source relation fields with values extracted from the source object and target relation fields with values extracted from the target object.AbstractRecordRelationTableMechanism. buildRelationTableSourceAndTargetRow(AbstractRecord sourceRow, Object targetObject, AbstractSession session, ForeignReferenceMapping mapping)INTERNAL: Create a row that contains source relation fields with values extracted from the source row and target relation fields with values extracted from the target object.AbstractRecordRelationTableMechanism. buildRelationTableSourceRow(Object sourceObject, AbstractSession session, ForeignReferenceMapping mapping)INTERNAL: Create a row that contains source relation fields with values extracted from the source object.ExpressionRelationTableMechanism. buildSelectionCriteriaAndAddFieldsToQueryInternal(ForeignReferenceMapping mapping, Expression criteria, boolean shouldAddTargetFields, boolean shouldAddFieldsToQuery)INTERNAL: Build the selection criteria to join the source, relation, and target tables.voidRelationTableMechanism. initialize(AbstractSession session, ForeignReferenceMapping mapping)INTERNAL: Initializeprotected voidRelationTableMechanism. initializeDeleteQuery(AbstractSession session, ForeignReferenceMapping mapping)INTERNAL: Initialize delete query.protected voidRelationTableMechanism. initializeExtendPessimisticLockScope(AbstractSession session, ForeignReferenceMapping mapping)INTERNAL: Initialize extendPessimisticLockeScope and lockRelationTableQuery (if required).protected voidRelationTableMechanism. initializeInsertQuery(AbstractSession session, ForeignReferenceMapping mapping)INTERNAL: Initialize insert query.protected voidRelationTableMechanism. initializeLockRelationTableQuery(AbstractSession session, ForeignReferenceMapping mapping, Expression startCriteria)INTERNAL: Initialize lockRelationTableQuery.protected voidRelationTableMechanism. initializeRelationTable(AbstractSession session, ForeignReferenceMapping mapping)INTERNAL: Set the table qualifier on the relation table if requiredprotected voidRelationTableMechanism. initializeSourceKeys(ForeignReferenceMapping mapping)INTERNAL: All the source key field names are converted to DatabaseField and stored.protected voidRelationTableMechanism. initializeSourceRelationKeys(ForeignReferenceMapping mapping)INTERNAL: All the source relation key field names are converted to DatabaseField and stored.protected voidRelationTableMechanism. initializeTargetKeys(AbstractSession session, ForeignReferenceMapping mapping)INTERNAL: All the target key field names are converted to DatabaseField and stored.protected voidRelationTableMechanism. initializeTargetKeysWithDefaults(AbstractSession session, ForeignReferenceMapping mapping)INTERNAL: If a user does not specify the target key then the primary keys of the target table are used.protected voidRelationTableMechanism. initializeTargetRelationKeys(ForeignReferenceMapping mapping)INTERNAL: All the target relation key field names are converted to DatabaseField and stored. -
Uses of ForeignReferenceMapping in org.eclipse.persistence.mappings.structures
Subclasses of ForeignReferenceMapping in org.eclipse.persistence.mappings.structures Modifier and Type Class Description classNestedTableMappingPurpose: Nested tables are similar toVARRAYsexcept internally they store their information in a separate table from their parent structure's table.classReferenceMappingPurpose: In an object-relational data model, structures reference each other through "Refs"; not through foreign keys as in the relational data model. -
Uses of ForeignReferenceMapping in org.eclipse.persistence.sessions.factories
Methods in org.eclipse.persistence.sessions.factories with parameters of type ForeignReferenceMapping Modifier and Type Method Description protected voidProjectClassGenerator. addForeignReferenceMappingLines(NonreflectiveMethodDefinition method, String mappingName, ForeignReferenceMapping mapping) -
Uses of ForeignReferenceMapping in org.eclipse.persistence.sessions.interceptors
Methods in org.eclipse.persistence.sessions.interceptors with parameters of type ForeignReferenceMapping Modifier and Type Method Description voidCacheInterceptor. lazyRelationshipLoaded(Object rootEntity, ValueHolderInterface valueHolder, ForeignReferenceMapping mapping)Notify the cache that a lazy relationship has been triggered in the object and the cache may need to be updated -
Uses of ForeignReferenceMapping in org.eclipse.persistence.tools.schemaframework
Methods in org.eclipse.persistence.tools.schemaframework with parameters of type ForeignReferenceMapping Modifier and Type Method Description protected voidDefaultTableGenerator. buildRelationTableDefinition(ForeignReferenceMapping mapping, RelationTableMechanism relationTableMechanism, DatabaseField listOrderField, ContainerPolicy cp)Build relation table definitions for all many-to-many relationships in a EclipseLink descriptor.protected voidDefaultTableGenerator. buildRelationTableFields(ForeignReferenceMapping mapping, TableDefinition table, List<DatabaseField> fkFields, List<DatabaseField> targetFields)Build field definitions and foreign key constraints for all many-to-many relation table.
-