Dali Provisional API
Release 3.2

org.eclipse.jpt.jpa.core.jpa2.context
Interface MappingRelationshipStrategy2_0

All Superinterfaces:
IAdaptable, JpaContextNode, JpaNode, JptResourceTypeReference, Model, ReadOnlyRelationshipStrategy, RelationshipStrategy

public interface MappingRelationshipStrategy2_0
extends RelationshipStrategy

Strategy describing how two entities are joined via a RelationshipMapping:

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

See Also:
RelationshipMapping, AssociationOverride, MappingRelationship

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeTransformer
 
Field Summary
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
RESOURCE_TYPE_TRANSFORMER
 
Method Summary
 ReadOnlyRelationshipStrategy selectOverrideStrategy(ReadOnlyOverrideRelationship2_0 overrideRelationship)
          Select from the specified override relationship which of its strategies is the override strategy (join column or join table).
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.RelationshipStrategy
addStrategy, getColumnTableNotValidDescription, getRelationship, isOverridable, removeStrategy, resolveDbTable, tableNameIsInvalid
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.ReadOnlyRelationshipStrategy
getTableName
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextNode
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getParent, getPersistenceUnit, getValidationTextRange, synchronizeWithResourceModel, update, validate
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode
getJpaPlatform, getJpaProject, getJpaProjectManager, getResource, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
getResourceType
 

Method Detail

selectOverrideStrategy

ReadOnlyRelationshipStrategy selectOverrideStrategy(ReadOnlyOverrideRelationship2_0 overrideRelationship)
Select from the specified override relationship which of its strategies is the override strategy (join column or join table). An association override can only override the same strategy as the strategy used by its overridden mapping (i.e. if the overridden mapping uses the join column strategy, the association override must also use the join column strategy; it cannot change the strategy to join table). Return null if the override relationship cannot be determined (typically because the association override's name does not match the name of an appropriate attribute mapping in the overridden mapped superclass or embeddable type).


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.