org.eclipse.jpt.core.context
Interface MappingFileRoot

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

public interface MappingFileRoot
extends XmlContextNode, JpaStructureNode

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.


Method Summary
 AccessType getAccess()
          Return the specified access if present, otherwise return the default access.
 java.lang.String getCatalog()
          Return the specified catalog if present, otherwise return the default catalog.
 MappingFilePersistenceUnitDefaults getPersistenceUnitDefaults()
          Return the defaults defined within this mapping file *for the persistence unit*.
 java.lang.String getSchema()
          Return the specified schema if present, otherwise return the default schema.
 
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, postUpdate
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addCollectionChangeListener, addCollectionChangeListener, addListChangeListener, addListChangeListener, addPropertyChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, addTreeChangeListener, removeCollectionChangeListener, removeCollectionChangeListener, removeListChangeListener, removeListChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener, 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, getContentType, getId, getSelectionTextRange, getStructureNode
 

Method Detail

getAccess

AccessType getAccess()
Return the specified access if present, otherwise return the default access.


getCatalog

java.lang.String getCatalog()
Return the specified catalog if present, otherwise return the default catalog.


getSchema

java.lang.String getSchema()
Return the specified schema if present, otherwise return the default schema.


getPersistenceUnitDefaults

MappingFilePersistenceUnitDefaults getPersistenceUnitDefaults()
Return the defaults defined within this mapping file *for the persistence unit*. Return null if none exists.

See Also:
MappingFilePersistenceUnitDefaults.resourceExists()