org.eclipse.jpt.core.context.java
Interface JavaAssociationOverride

All Superinterfaces:
AssociationOverride, BaseOverride, org.eclipse.core.runtime.IAdaptable, IResourcePart, JavaJpaContextNode, JavaOverride, JpaContextNode, JpaNode, Model

public interface JavaAssociationOverride
extends AssociationOverride, JavaOverride

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

Nested Class Summary
static interface JavaAssociationOverride.Owner
           
 
Field Summary
 
Fields inherited from interface org.eclipse.jpt.core.context.BaseOverride
NAME_PROPERTY
 
Fields inherited from interface org.eclipse.jpt.core.context.BaseOverride
NAME_PROPERTY
 
Method Summary
 AssociationOverrideAnnotation getOverrideAnnotation()
           
 JavaAssociationOverride.Owner getOwner()
           
 JavaAssociationOverrideRelationshipReference getRelationshipReference()
           
 void initialize(AssociationOverrideAnnotation associationOverride)
           
 JavaAssociationOverride setVirtual(boolean virtual)
          If false, add the given override as a specified override and remove it from the list of virtual overrides.
 void update(AssociationOverrideAnnotation associationOverride)
          Update the JavaAssociationOverride context model object to match the AssociationOverrideAnnotation resource model object.
 
Methods inherited from interface org.eclipse.jpt.core.context.AssociationOverride
initializeFrom
 
Methods inherited from interface org.eclipse.jpt.core.context.BaseOverride
getName, isVirtual, setName
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, postUpdate
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent
 
Methods inherited from interface org.eclipse.jpt.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.core.IResourcePart
getResource
 
Methods inherited from interface org.eclipse.jpt.core.context.BaseOverride
getName, isVirtual, setName
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, postUpdate
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent
 
Methods inherited from interface org.eclipse.jpt.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.core.IResourcePart
getResource
 
Methods inherited from interface org.eclipse.jpt.core.context.java.JavaJpaContextNode
getValidationTextRange, javaCompletionProposals, validate
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, postUpdate
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent
 
Methods inherited from interface org.eclipse.jpt.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.core.IResourcePart
getResource
 

Method Detail

getRelationshipReference

JavaAssociationOverrideRelationshipReference getRelationshipReference()
Specified by:
getRelationshipReference in interface AssociationOverride

setVirtual

JavaAssociationOverride setVirtual(boolean virtual)
Description copied from interface: BaseOverride
If false, add the given override as a specified override and remove it from the list of virtual overrides. If true, then remove it from the specified overrides and add it to the virtual overrides as applicable. Return the new override (whether virtual or specified)

Specified by:
setVirtual in interface AssociationOverride
Specified by:
setVirtual in interface BaseOverride

getOverrideAnnotation

AssociationOverrideAnnotation getOverrideAnnotation()
Specified by:
getOverrideAnnotation in interface JavaOverride

initialize

void initialize(AssociationOverrideAnnotation associationOverride)

update

void update(AssociationOverrideAnnotation associationOverride)
Update the JavaAssociationOverride context model object to match the AssociationOverrideAnnotation resource model object. see JpaProject.update()


getOwner

JavaAssociationOverride.Owner getOwner()
Specified by:
getOwner in interface AssociationOverride