Uses of Class
org.eclipse.persistence.mappings.ForeignReferenceMapping
Packages that use ForeignReferenceMapping
Package
Description
-
Uses of ForeignReferenceMapping in org.eclipse.persistence.descriptors.changetracking
Methods in org.eclipse.persistence.descriptors.changetracking with parameters of type ForeignReferenceMappingModifier and TypeMethodDescriptionvoidAttributeChangeTrackingPolicy.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.mappingsModifier and TypeClassDescriptionclassAn 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.classAn 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
Methods in org.eclipse.persistence.exceptions with parameters of type ForeignReferenceMappingModifier and TypeMethodDescriptionstatic DescriptorExceptionDescriptorException.foreignKeysDefinedIncorrectly(ForeignReferenceMapping mapping) static DescriptorExceptionDescriptorException.invalidDataModificationEventCode(Object event, ForeignReferenceMapping mapping) static DescriptorExceptionDescriptorException.missingForeignKeyTranslation(ForeignReferenceMapping mapping, DatabaseField primaryKeyField) static DescriptorExceptionDescriptorException.noForeignKeysAreSpecified(ForeignReferenceMapping mapping) static DescriptorExceptionDescriptorException.noReferenceKeyIsSpecified(ForeignReferenceMapping mapping) static DescriptorExceptionDescriptorException.noSourceRelationKeysSpecified(ForeignReferenceMapping mapping) static DescriptorExceptionDescriptorException.noTargetForeignKeysSpecified(ForeignReferenceMapping mapping) static DescriptorExceptionDescriptorException.noTargetRelationKeysSpecified(ForeignReferenceMapping mapping) static DescriptorExceptionDescriptorException.referenceKeyFieldNotProperlySpecified(DatabaseField field, ForeignReferenceMapping mapping) static DescriptorExceptionDescriptorException.relationKeyFieldNotProperlySpecified(DatabaseField field, ForeignReferenceMapping mapping) static DescriptorExceptionDescriptorException.sizeMismatchOfForeignKeys(ForeignReferenceMapping mapping) static DescriptorExceptionDescriptorException.targetForeignKeysSizeMismatch(ForeignReferenceMapping mapping) -
Uses of ForeignReferenceMapping in org.eclipse.persistence.internal.identitymaps
Methods in org.eclipse.persistence.internal.identitymaps with parameters of type ForeignReferenceMappingModifier and TypeMethodDescriptionvoidFullIdentityMap.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 ForeignReferenceMappingModifier and TypeFieldDescriptionprotected ForeignReferenceMappingBatchValueHolder.mappingprotected ForeignReferenceMappingCacheBasedValueHolder.mappingMethods in org.eclipse.persistence.internal.indirection that return ForeignReferenceMappingModifier and TypeMethodDescriptionprotected ForeignReferenceMappingIndirectionPolicy.getForeignReferenceMapping()INTERNAL: Reduce casting clutter....protected ForeignReferenceMappingBatchValueHolder.getMapping()Methods in org.eclipse.persistence.internal.indirection with parameters of type ForeignReferenceMappingModifier and TypeMethodDescriptionprotected voidBatchValueHolder.setMapping(ForeignReferenceMapping mapping) Constructors in org.eclipse.persistence.internal.indirection with parameters of type ForeignReferenceMappingModifierConstructorDescriptionBatchValueHolder(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.jpa.metadata.accessors.mappings
Methods in org.eclipse.persistence.internal.jpa.metadata.accessors.mappings with parameters of type ForeignReferenceMappingModifier and TypeMethodDescriptionprotected voidDirectCollectionAccessor.processBatchFetch(ForeignReferenceMapping mapping) INTERNAL: Set the batch fetch type on the foreign reference mapping.protected voidRelationshipAccessor.processBatchFetch(ForeignReferenceMapping mapping) INTERNAL: Set the batch fetch type on the foreign reference mapping.protected voidRelationshipAccessor.processCascadeTypes(ForeignReferenceMapping mapping) INTERNAL:protected voidMappingAccessor.processForeignKeyRelationship(ForeignReferenceMapping mapping, List<JoinColumnMetadata> joinColumns, ForeignKeyMetadata foreignKey, MetadataDescriptor referenceDescriptor, String defaultFKFieldName, DatabaseTable defaultFKTable) INTERNAL: Process the join columns for the owning side of a one to one mapping.protected voidMappingAccessor.processIndirection(ForeignReferenceMapping mapping) INTERNAL: Process the indirection (aka fetch type)protected voidMappingAccessor.processJoinFetch(String joinFetch, ForeignReferenceMapping mapping) INTERNAL: Return the mapping join fetch type.protected voidRelationshipAccessor.processJoinTable(ForeignReferenceMapping mapping, RelationTableMechanism mechanism, JoinTableMetadata joinTable) INTERNAL: Process a MetadataJoinTable.protected voidRelationshipAccessor.processOrphanRemoval(ForeignReferenceMapping mapping) INTERNAL: This method should be called for all mappings even though they may not support.protected voidRelationshipAccessor.processRelationshipMapping(ForeignReferenceMapping mapping) INTERNAL: Process settings common to ForeignReferenceMapping. -
Uses of ForeignReferenceMapping in org.eclipse.persistence.internal.jpa.metadata.mappings
Methods in org.eclipse.persistence.internal.jpa.metadata.mappings with parameters of type ForeignReferenceMappingModifier and TypeMethodDescriptionvoidBatchFetchMetadata.process(ForeignReferenceMapping mapping) INTERNAL: Process the batch fetch metadata for the given mapping.voidCascadeMetadata.process(ForeignReferenceMapping mapping) INTERNAL: Process the cascade types for the given mapping. -
Uses of ForeignReferenceMapping in org.eclipse.persistence.internal.queries
Methods in org.eclipse.persistence.internal.queries with parameters of type ForeignReferenceMappingModifier and TypeMethodDescriptionJoinedAttributeManager.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.ContainerPolicy.valueFromPKList(Object[] pks, AbstractRecord foreignKeys, ForeignReferenceMapping mapping, AbstractSession session) INTERNAL: This method is used to load a relationship from a list of PKs.ListContainerPolicy.valueFromPKList(Object[] pks, AbstractRecord foreignKeys, ForeignReferenceMapping mapping, AbstractSession session) INTERNAL: This method is used to load a relationship from a list of PKs.MapContainerPolicy.valueFromPKList(Object[] pks, AbstractRecord foreignKeys, ForeignReferenceMapping mapping, AbstractSession session) INTERNAL: This method is used to load a relationship from a list of PKs.MappedKeyMapContainerPolicy.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 ForeignReferenceMappingModifier and TypeMethodDescription<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.mappingsModifier and TypeClassDescriptionclassPurpose: The aggregate collection mapping is used to represent the aggregate relationship between a single source object and a collection of target objects.classPurpose: Abstract class for relationship mappings which store collection of objectsclassPurpose: This mapping is used to store a collection of simple types (String, Number, Date, etc.) into a single table.classMapping for a collection of key-value pairs.classPurpose: Many to many mappings are used to represent the relationships between a collection of source objects and a collection of target objects.classPurpose: Define the relationship to be a ManyToOne.classPurpose: Abstract class for 1:1, variable 1:1 and reference mappingsclassPurpose: 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.classPurpose: One to one mappings are used to represent a pointer references between two java objects.classPurpose: UnidirectionalOneToManyMapping doesn't have 1:1 back reference mapping.classPurpose: 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 ForeignReferenceMappingModifier and TypeMethodDescriptionRelationTableMechanism.addRelationTableSourceRow(Object sourceObject, AbstractSession session, AbstractRecord databaseRow, ForeignReferenceMapping mapping) INTERNAL: Add to a row source relation fields with values extracted from the source object.RelationTableMechanism.addRelationTableTargetRow(Object targetObject, AbstractSession session, AbstractRecord databaseRow, ForeignReferenceMapping mapping) INTERNAL: Add to a row target relation fields with values extracted from the target object.RelationTableMechanism.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.RelationTableMechanism.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.RelationTableMechanism.buildRelationTableSourceRow(Object sourceObject, AbstractSession session, ForeignReferenceMapping mapping) INTERNAL: Create a row that contains source relation fields with values extracted from the source object.RelationTableMechanism.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.structuresModifier and TypeClassDescriptionclassPurpose: Nested tables are similar toVARRAYsexcept internally they store their information in a separate table from their parent structure's table.classPurpose: 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 ForeignReferenceMappingModifier and TypeMethodDescriptionprotected 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 ForeignReferenceMappingModifier and TypeMethodDescriptionvoidCacheInterceptor.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 ForeignReferenceMappingModifier and TypeMethodDescriptionprotected 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.