org.eclipse.jpt.core.context
Interface MappingFile

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IResourcePart, JpaContextNode, JpaNode, JpaStructureNode, Model, PersistentTypeContainer, XmlContextNode, XmlFile
All Known Subinterfaces:
OrmXml

public interface MappingFile
extends XmlFile, PersistentTypeContainer

JPA mapping file (typically orm.xml).

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.1
Version:
2.3

Method Summary
 MappingFileRef getParent()
          covariant override
 PersistentType getPersistentType(java.lang.String name)
          Return the specified persistent type if it is listed in the mapping file; otherwise return null.
 MappingFileRoot getRoot()
          Return the mapping file's root.
 void update()
          Update the context mapping file to match its resource mapping file.
 
Methods inherited from interface org.eclipse.jpt.core.context.XmlFile
getXmlResource
 
Methods inherited from interface org.eclipse.jpt.core.context.XmlContextNode
getValidationTextRange, 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
 
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.JpaStructureNode
dispose, getId, getResourceType, getSelectionTextRange, getStructureNode
 
Methods inherited from interface org.eclipse.jpt.core.context.persistence.PersistentTypeContainer
getPersistentTypes
 

Method Detail

getParent

MappingFileRef getParent()
covariant override

Specified by:
getParent in interface JpaNode

getRoot

MappingFileRoot getRoot()
Return the mapping file's root.


getPersistentType

PersistentType getPersistentType(java.lang.String name)
Return the specified persistent type if it is listed in the mapping file; otherwise return null.


update

void update()
Update the context mapping file to match its resource mapping file.

See Also:
JpaProject.update()