org.eclipse.jpt.jpa.core.context
Interface JpaContextNode

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IResourcePart, JpaNode, Model
All Known Subinterfaces:
AssociationOverride, AssociationOverrideContainer, AttributeMapping, AttributeMapping2_0, AttributeOverride, AttributeOverrideContainer, BaseColumn, BaseEmbeddedMapping, BaseJoinColumn, BasicMapping, Cacheable2_0, CacheableHolder2_0, Cascade, Cascade2_0, ClassRef, CollectionMapping, CollectionMapping2_0, CollectionTable2_0, Column, ColumnMapping, Converter, ConvertibleMapping, DerivedIdentity2_0, DerivedIdentityStrategy2_0, DiscriminatorColumn, EclipseLinkBasicCollectionMapping, EclipseLinkBasicMapMapping, EclipseLinkBasicMapping, EclipseLinkCaching, EclipseLinkChangeTracking, EclipseLinkConversionValue, EclipseLinkConvert, EclipseLinkConverter, EclipseLinkConverterClassConverter, EclipseLinkCustomConverter, EclipseLinkCustomizer, EclipseLinkElementCollectionMapping2_0, EclipseLinkEmbeddable, EclipseLinkEntity, EclipseLinkEntityMappings, EclipseLinkIdMapping, EclipseLinkJavaOneToManyRelationship, EclipseLinkJavaOneToManyRelationship2_0, EclipseLinkJavaTypeMapping, EclipseLinkJoinFetch, EclipseLinkJoinFetchMapping, EclipseLinkMappedSuperclass, EclipseLinkMutable, EclipseLinkNonEmbeddableTypeMapping, EclipseLinkObjectTypeConverter, EclipseLinkOneToManyMapping, EclipseLinkOneToManyMapping2_0, EclipseLinkOneToManyRelationship, EclipseLinkOneToManyRelationship2_0, EclipseLinkOneToOneMapping, EclipseLinkOneToOneMapping2_0, EclipseLinkOrmOneToManyRelationship, EclipseLinkOrmOneToManyRelationship2_0, EclipseLinkOrmTypeMapping, EclipseLinkPrivateOwned, EclipseLinkReadOnly, EclipseLinkRelationshipMapping, EclipseLinkStructConverter, EclipseLinkTimeOfDay, EclipseLinkTransformationMapping, EclipseLinkTypeConverter, EclipseLinkTypeMapping, EclipseLinkVariableOneToOneMapping, EclipseLinkVersionMapping, ElementCollectionMapping2_0, Embeddable, EmbeddedIdMapping, EmbeddedIdMapping2_0, EmbeddedMapping, EmbeddedMapping2_0, Entity, EntityMappings, EnumeratedConverter, FetchableMapping, GeneratedValue, Generator, GeneratorContainer, IdClassReference, IdDerivedIdentityStrategy2_0, IdMapping, IdMapping2_0, JarFile, JarFileRef, JavaAssociationOverride, JavaAssociationOverrideContainer, JavaAttributeMapping, JavaAttributeOverride, JavaAttributeOverrideContainer, JavaBaseColumn, JavaBaseEmbeddedMapping, JavaBaseJoinColumn, JavaBasicMapping, JavaCacheable2_0, JavaCacheableHolder2_0, JavaCascade, JavaCascade2_0, JavaCollectionMapping, JavaCollectionMapping2_0, JavaCollectionTable2_0, JavaColumn, JavaColumnMapping, JavaConverter, JavaConvertibleMapping, JavaDerivedIdentity2_0, JavaDiscriminatorColumn, JavaEclipseLinkCaching, JavaEclipseLinkConverterContainer, JavaEclipseLinkEmbeddable, JavaEclipseLinkEntity, JavaEclipseLinkMappedSuperclass, JavaEclipseLinkNonEmbeddableTypeMapping, JavaElementCollectionMapping2_0, JavaEmbeddable, JavaEmbeddedIdMapping, JavaEmbeddedMapping, JavaEmbeddedMapping2_0, JavaEntity, JavaEnumeratedConverter, JavaGeneratedValue, JavaGenerator, JavaGeneratorContainer, JavaIdClassReference, JavaIdDerivedIdentityStrategy2_0, JavaIdMapping, JavaJoinColumn, JavaJoinColumnRelationship, JavaJoinColumnRelationshipStrategy, JavaJoinTable, JavaJoinTableRelationship, JavaJoinTableRelationshipStrategy, JavaJpaContextNode, JavaLobConverter, JavaManyToManyMapping, JavaManyToManyMapping2_0, JavaManyToManyRelationship, JavaManyToOneMapping, JavaManyToOneMapping2_0, JavaManyToOneRelationship, JavaManyToOneRelationship2_0, JavaMappedByRelationship, JavaMappedByRelationshipStrategy, JavaMappedSuperclass, JavaMappingJoinColumnRelationship, JavaMappingJoinTableRelationship, JavaMappingRelationship, JavaMapsIdDerivedIdentityStrategy2_0, JavaMultiRelationshipMapping, JavaNamedColumn, JavaNamedNativeQuery, JavaNamedQuery, JavaNamedQuery2_0, JavaOneToManyMapping, JavaOneToManyMapping2_0, JavaOneToManyRelationship, JavaOneToManyRelationship2_0, JavaOneToOneMapping, JavaOneToOneMapping2_0, JavaOneToOneRelationship, JavaOneToOneRelationship2_0, JavaOrderable, JavaOrderable2_0, JavaOrderColumn2_0, JavaOrphanRemovable2_0, JavaOrphanRemovalHolder2_0, JavaOverride, JavaOverrideContainer, JavaOverrideRelationship, JavaOverrideRelationship2_0, JavaPersistentAttribute, JavaPersistentAttribute2_0, JavaPersistentType, JavaPersistentType2_0, JavaPrimaryKeyJoinColumn, JavaPrimaryKeyJoinColumnRelationship, JavaPrimaryKeyJoinColumnRelationshipStrategy, JavaQuery, JavaQueryContainer, JavaQueryHint, JavaReadOnlyAssociationOverride, JavaReadOnlyAttributeOverride, JavaReadOnlyOverride, JavaReadOnlyRelationship, JavaReadOnlyRelationshipStrategy, JavaReadOnlyUniqueConstraint, JavaReferenceTable, JavaRelationship, JavaRelationshipMapping, JavaRelationshipStrategy, JavaSecondaryTable, JavaSequenceGenerator, JavaSequenceGenerator2_0, JavaSingleRelationshipMapping, JavaSingleRelationshipMapping2_0, JavaTable, JavaTableGenerator, JavaTemporalConverter, JavaTransientMapping, JavaTypeMapping, JavaUniqueConstraint, JavaVersionMapping, JavaVirtualAssociationOverride, JavaVirtualAttributeOverride, JavaVirtualColumn, JavaVirtualJoinColumn, JavaVirtualJoinColumnRelationship, JavaVirtualJoinColumnRelationshipStrategy, JavaVirtualJoinTable, JavaVirtualJoinTableRelationship, JavaVirtualJoinTableRelationshipStrategy, JavaVirtualOverride, JavaVirtualOverrideRelationship, JavaVirtualOverrideRelationship2_0, JavaVirtualRelationship, JavaVirtualRelationshipStrategy, JavaVirtualUniqueConstraint, JoinColumn, JoinColumnRelationship, JoinColumnRelationshipStrategy, JoinTable, JoinTableRelationship, JoinTableRelationshipStrategy, JpaNamedContextNode<T>, JpaRootContextNode, JpaRootContextNode2_0, LobConverter, ManyToManyMapping, ManyToManyMapping2_0, ManyToManyRelationship, ManyToOneMapping, ManyToOneMapping2_0, ManyToOneRelationship, ManyToOneRelationship2_0, MappedByRelationship, MappedByRelationshipMapping2_0, MappedByRelationshipStrategy, MappedSuperclass, MappingFile, MappingFilePersistenceUnitDefaults, MappingFilePersistenceUnitDefaults2_0, MappingFilePersistenceUnitMetadata, MappingFilePersistenceUnitMetadata2_0, MappingFileRef, MappingFileRoot, MappingRelationship, MapsIdDerivedIdentityStrategy2_0, MultiRelationshipMapping, NamedColumn, NamedNativeQuery, NamedQuery, NamedQuery2_0, OneToManyMapping, OneToManyMapping2_0, OneToManyRelationship, OneToManyRelationship2_0, OneToOneMapping, OneToOneMapping2_0, OneToOneRelationship, OneToOneRelationship2_0, OptionalMapping, Orderable, Orderable2_0, OrderColumn2_0, OrmAssociationOverride, OrmAssociationOverrideContainer, OrmAttributeMapping, OrmAttributeOverride, OrmAttributeOverrideContainer, OrmBaseColumn, OrmBaseEmbeddedMapping, OrmBaseJoinColumn, OrmBasicMapping, OrmCacheable2_0, OrmCacheableHolder2_0, OrmCascade, OrmCascade2_0, OrmCollectionMapping, OrmCollectionMapping2_0, OrmCollectionTable2_0, OrmColumn, OrmColumnMapping, OrmConverter, OrmConvertibleMapping, OrmDerivedIdentity2_0, OrmDiscriminatorColumn, OrmEclipseLinkCaching, OrmEclipseLinkConverterContainer, OrmEclipseLinkEmbeddable, OrmEclipseLinkEntity, OrmEclipseLinkMappedSuperclass, OrmEclipseLinkNonEmbeddableTypeMapping, OrmElementCollectionMapping2_0, OrmEmbeddable, OrmEmbeddedIdMapping, OrmEmbeddedMapping, OrmEmbeddedMapping2_0, OrmEntity, OrmEnumeratedConverter, OrmGeneratedValue, OrmGenerator, OrmGeneratorContainer, OrmIdClassReference, OrmIdDerivedIdentityStrategy2_0, OrmIdMapping, OrmJoinColumn, OrmJoinColumnRelationship, OrmJoinColumnRelationshipStrategy, OrmJoinTable, OrmJoinTableRelationship, OrmJoinTableRelationshipStrategy, OrmLobConverter, OrmManyToManyMapping, OrmManyToManyMapping2_0, OrmManyToManyRelationship, OrmManyToOneMapping, OrmManyToOneMapping2_0, OrmManyToOneRelationship, OrmManyToOneRelationship2_0, OrmMappedByRelationship, OrmMappedByRelationshipStrategy, OrmMappedSuperclass, OrmMappingJoinColumnRelationship, OrmMappingJoinTableRelationship, OrmMappingRelationship, OrmMapsIdDerivedIdentityStrategy2_0, OrmMultiRelationshipMapping, OrmNamedColumn, OrmNamedNativeQuery, OrmNamedQuery, OrmNamedQuery2_0, OrmOneToManyMapping, OrmOneToManyMapping2_0, OrmOneToManyRelationship, OrmOneToManyRelationship2_0, OrmOneToOneMapping, OrmOneToOneMapping2_0, OrmOneToOneRelationship, OrmOneToOneRelationship2_0, OrmOrderable, OrmOrderable2_0, OrmOrderColumn2_0, OrmOrphanRemovable2_0, OrmOrphanRemovalHolder2_0, OrmOverride, OrmOverrideContainer, OrmOverrideRelationship, OrmOverrideRelationship2_0, OrmPersistenceUnitDefaults, OrmPersistenceUnitDefaults2_0, OrmPersistenceUnitMetadata, OrmPersistenceUnitMetadata2_0, OrmPersistentAttribute, OrmPersistentAttribute2_0, OrmPersistentType, OrmPersistentType2_0, OrmPrimaryKeyJoinColumn, OrmPrimaryKeyJoinColumnRelationship, OrmPrimaryKeyJoinColumnRelationshipStrategy, OrmQuery, OrmQueryContainer, OrmQueryHint, OrmReadOnlyAssociationOverride, OrmReadOnlyAttributeOverride, OrmReadOnlyOverride, OrmReadOnlyPersistentAttribute, OrmReadOnlyPersistentAttribute2_0, OrmReadOnlyRelationship, OrmReadOnlyRelationshipStrategy, OrmReadOnlyUniqueConstraint, OrmReferenceTable, OrmRelationship, OrmRelationshipMapping, OrmRelationshipStrategy, OrmSecondaryTable, OrmSequenceGenerator, OrmSequenceGenerator2_0, OrmSingleRelationshipMapping, OrmSingleRelationshipMapping2_0, OrmTable, OrmTableGenerator, OrmTemporalConverter, OrmTransientMapping, OrmTypeMapping, OrmUniqueConstraint, OrmVersionMapping, OrmVirtualAssociationOverride, OrmVirtualAttributeOverride, OrmVirtualColumn, OrmVirtualJoinColumn, OrmVirtualJoinColumnRelationship, OrmVirtualJoinColumnRelationshipStrategy, OrmVirtualJoinTable, OrmVirtualJoinTableRelationship, OrmVirtualJoinTableRelationshipStrategy, OrmVirtualOverride, OrmVirtualOverrideRelationship, OrmVirtualOverrideRelationship2_0, OrmVirtualPrimaryKeyJoinColumn, OrmVirtualRelationship, OrmVirtualRelationshipStrategy, OrmVirtualSecondaryTable, OrmVirtualUniqueConstraint, OrmXml, OrphanRemovable2_0, Override_, OverrideContainer, OverrideRelationship, OverrideRelationship2_0, Persistence, Persistence2_0, PersistenceUnit, PersistenceUnit.Property, PersistenceUnit2_0, PersistenceXml, PersistenceXml2_0, PersistentAttribute, PersistentAttribute2_0, PersistentType, PersistentType.Owner, PersistentType2_0, PrimaryKeyJoinColumn, PrimaryKeyJoinColumnRelationship, PrimaryKeyJoinColumnRelationshipStrategy, Query, QueryContainer, QueryHint, ReadOnlyAssociationOverride, ReadOnlyAttributeOverride, ReadOnlyBaseColumn, ReadOnlyBaseJoinColumn, ReadOnlyColumn, ReadOnlyJoinColumn, ReadOnlyJoinColumnRelationship, ReadOnlyJoinColumnRelationshipStrategy, ReadOnlyJoinTable, ReadOnlyJoinTableRelationship, ReadOnlyJoinTableRelationshipStrategy, ReadOnlyNamedColumn, ReadOnlyOverride, ReadOnlyOverrideRelationship, ReadOnlyOverrideRelationship2_0, ReadOnlyPersistentAttribute, ReadOnlyPersistentAttribute2_0, ReadOnlyPrimaryKeyJoinColumn, ReadOnlyReferenceTable, ReadOnlyRelationship, ReadOnlyRelationshipStrategy, ReadOnlySecondaryTable, ReadOnlyTable, ReadOnlyUniqueConstraint, ReferenceTable, Relationship, RelationshipMapping, RelationshipStrategy, SecondaryTable, SequenceGenerator, SequenceGenerator2_0, SingleRelationshipMapping, SingleRelationshipMapping2_0, Table, TableGenerator, TemporalConverter, TransientMapping, TypeMapping, UniqueConstraint, VersionMapping, VirtualAssociationOverride, VirtualAttributeOverride, VirtualBaseColumn, VirtualBaseJoinColumn, VirtualColumn, VirtualJoinColumn, VirtualJoinColumnRelationship, VirtualJoinColumnRelationshipStrategy, VirtualJoinTable, VirtualJoinTableRelationship, VirtualJoinTableRelationshipStrategy, VirtualNamedColumn, VirtualOverride, VirtualOverrideRelationship, VirtualOverrideRelationship2_0, VirtualPrimaryKeyJoinColumn, VirtualReferenceTable, VirtualRelationship, VirtualRelationshipStrategy, VirtualSecondaryTable, VirtualTable, VirtualUniqueConstraint, XmlContextNode, XmlFile
All Known Implementing Classes:
org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextNode, org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit, org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceXmlContextNode, org.eclipse.jpt.jpa.core.internal.context.AbstractXmlContextNode, EclipseLinkPersistenceUnit

public interface JpaContextNode
extends JpaNode

Common protocol for JPA objects that have a context, as opposed to resource objects.

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

Method Summary
 Catalog getContextDefaultDbCatalog()
           
 Schema getContextDefaultDbSchema()
           
 SchemaContainer getContextDefaultDbSchemaContainer()
           
 MappingFileRoot getMappingFileRoot()
          Return the mapping file root if the context node is within a mapping file.
 PersistenceUnit getPersistenceUnit()
          Return the persistence unit if the context node is within a persistence unit.
 JptResourceType getResourceType()
          Return the resource type of the context node's resource.
 void synchronizeWithResourceModel()
          The resource model has changed; synchronize the context model with it.
 void update()
          Some non-trivial state in the JPA project has changed; update the parts of the context node that are dependent on yet other parts of the node's JPA project.
 
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
 

Method Detail

getResourceType

JptResourceType getResourceType()
Return the resource type of the context node's resource.


getPersistenceUnit

PersistenceUnit getPersistenceUnit()
Return the persistence unit if the context node is within a persistence unit. Otherwise throw an exception.


getMappingFileRoot

MappingFileRoot getMappingFileRoot()
Return the mapping file root if the context node is within a mapping file. Otherwise throw an exception.


getContextDefaultDbSchemaContainer

SchemaContainer getContextDefaultDbSchemaContainer()

getContextDefaultDbCatalog

Catalog getContextDefaultDbCatalog()

getContextDefaultDbSchema

Schema getContextDefaultDbSchema()

synchronizeWithResourceModel

void synchronizeWithResourceModel()
The resource model has changed; synchronize the context model with it. This will probably trigger a call to update().


update

void update()
Some non-trivial state in the JPA project has changed; update the parts of the context node that are dependent on yet other parts of the node's JPA project. If the dependent state changes also, yet another update will be triggered, possibly followed by yet more updates; until the JPA project's state quiesces.