org.eclipse.jpt.jpa.core.context.java
Interface JavaRelationshipMapping

All Superinterfaces:
AttributeMapping, FetchableMapping, org.eclipse.core.runtime.IAdaptable, IResourcePart, JavaAttributeMapping, JavaJpaContextNode, JpaContextNode, JpaNode, Model, RelationshipMapping
All Known Subinterfaces:
JavaManyToManyMapping, JavaManyToManyMapping2_0, JavaManyToOneMapping, JavaManyToOneMapping2_0, JavaMultiRelationshipMapping, JavaOneToManyMapping, JavaOneToManyMapping2_0, JavaOneToOneMapping, JavaOneToOneMapping2_0, JavaSingleRelationshipMapping, JavaSingleRelationshipMapping2_0

public interface JavaRelationshipMapping
extends RelationshipMapping, JavaAttributeMapping

Java relationship (1:1, 1:m, m:1, m:m) mapping.

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.

Since:
2.0
Version:
2.3

Field Summary
static java.lang.String FULLY_QUALIFIED_TARGET_ENTITY_PROPERTY
           
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.RelationshipMapping
DEFAULT_TARGET_ENTITY_PROPERTY, SPECIFIED_TARGET_ENTITY_PROPERTY
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.FetchableMapping
DEFAULT_FETCH_PROPERTY, SPECIFIED_FETCH_PROPERTY
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.AttributeMapping
DEFAULT_PROPERTY
 
Method Summary
 RelationshipMappingAnnotation getAnnotationForUpdate()
           
 JavaCascade getCascade()
           
 java.lang.String getFullyQualifiedTargetEntity()
          If the target entity is specified, this will return it fully qualified.
 RelationshipMappingAnnotation getMappingAnnotation()
           
 JavaMappingRelationship getRelationship()
          Return the meta-information used to populate the entities of the relationship
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.RelationshipMapping
allTargetEntityAttributeNames, getDefaultTargetEntity, getRelationshipOwner, getResolvedTargetEntity, getSpecifiedTargetEntity, getTargetEntity, getTargetEntityEnclosingTypeSeparator, setSpecifiedTargetEntity
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.FetchableMapping
getDefaultFetch, getFetch, getSpecifiedFetch, setSpecifiedFetch
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.AttributeMapping
allMappingNames, allOverridableAssociationMappingNames, allOverridableAttributeMappingNames, getKey, getName, getPersistentAttribute, getPrimaryKeyColumnName, getTypeMapping, isDefault, isOverridableAssociationMapping, isOverridableAttributeMapping, isOwnedBy, isRelationshipOwner, resolveAttributeMapping, resolveOverriddenColumn, resolveOverriddenRelationship, validatesAgainstDatabase
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, synchronizeWithResourceModel, update
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode
getJpaProject, getParent, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.common.core.IResourcePart
getResource
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.java.JavaAttributeMapping
getParent, getPersistentAttribute, getResourcePersistentAttribute, updateDefault
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.java.JavaJpaContextNode
getValidationTextRange, javaCompletionProposals, validate
 

Field Detail

FULLY_QUALIFIED_TARGET_ENTITY_PROPERTY

static final java.lang.String FULLY_QUALIFIED_TARGET_ENTITY_PROPERTY
See Also:
Constant Field Values
Method Detail

getMappingAnnotation

RelationshipMappingAnnotation getMappingAnnotation()
Specified by:
getMappingAnnotation in interface JavaAttributeMapping

getAnnotationForUpdate

RelationshipMappingAnnotation getAnnotationForUpdate()
Specified by:
getAnnotationForUpdate in interface JavaAttributeMapping

getCascade

JavaCascade getCascade()
Specified by:
getCascade in interface RelationshipMapping

getRelationship

JavaMappingRelationship getRelationship()
Description copied from interface: RelationshipMapping
Return the meta-information used to populate the entities of the relationship

Specified by:
getRelationship in interface RelationshipMapping

getFullyQualifiedTargetEntity

java.lang.String getFullyQualifiedTargetEntity()
If the target entity is specified, this will return it fully qualified. If not specified, it returns the default target entity, which is always fully qualified