org.eclipse.jpt.core.context.orm
Interface OrmXml

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

public interface OrmXml
extends XmlContextNode, MappingFile

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.


Field Summary
static java.lang.String ENTITY_MAPPINGS_PROPERTY
          String constant associated with changes to the entity-mappings property
 
Method Summary
 EntityMappings addEntityMappings()
          Add a entity-mappings node to the orm.xml file and return the object representing it.
 org.eclipse.core.runtime.content.IContentType getContentType()
          Return the content type of the structure node's resource.
 EntityMappings getEntityMappings()
          Return the content represented by the root of the orm.xml file.
 MappingFileRef getParent()
          covariant override
 void removeEntityMappings()
          Remove the entity-mappings node from the orm.xml file.
 
Methods inherited from interface org.eclipse.jpt.core.context.MappingFile
getPersistentType, getRoot, getXmlResource, update
 
Methods inherited from interface org.eclipse.jpt.core.JpaStructureNode
dispose, getId, getSelectionTextRange, getStructureNode
 

Field Detail

ENTITY_MAPPINGS_PROPERTY

static final java.lang.String ENTITY_MAPPINGS_PROPERTY
String constant associated with changes to the entity-mappings property

See Also:
Constant Field Values
Method Detail

getParent

MappingFileRef getParent()
covariant override

Specified by:
getParent in interface JpaNode

getContentType

org.eclipse.core.runtime.content.IContentType getContentType()
Description copied from interface: JpaStructureNode
Return the content type of the structure node's resource. This is used to find the appropriate ui provider for building composites

Specified by:
getContentType in interface JpaStructureNode

getEntityMappings

EntityMappings getEntityMappings()
Return the content represented by the root of the orm.xml file. This may be null.


addEntityMappings

EntityMappings addEntityMappings()
Add a entity-mappings node to the orm.xml file and return the object representing it. Throws IllegalStateException if a entity-mappings node already exists.


removeEntityMappings

void removeEntityMappings()
Remove the entity-mappings node from the orm.xml file. Throws IllegalStateException if a persistence node does not exist.