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

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

public interface PersistenceUnitMetadata
extends XmlContextNode

Context orm.xml persistence unit metadata. Context model corresponding to the XML resource model XmlPersistenceUnitMetadata, which corresponds to the persistence-unit-metadata element in the orm.xml file.

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

Field Summary
static java.lang.String XML_MAPPING_METADATA_COMPLETE_PROPERTY
           
 
Method Summary
 XmlPersistenceUnitMetadata buildXmlPersistenceUnitMetadata()
           
 EntityMappings getParent()
          Return the JPA node's parent.
 OrmPersistenceUnitDefaults getPersistenceUnitDefaults()
           
 XmlEntityMappings getXmlEntityMappings()
           
 XmlPersistenceUnitMetadata getXmlPersistenceUnitMetadata()
           
 boolean isXmlMappingMetadataComplete()
           
 void setXmlMappingMetadataComplete(boolean value)
           
 void update()
          Update the persistence unit metadata context model to match the resource model.
 
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
 

Field Detail

XML_MAPPING_METADATA_COMPLETE_PROPERTY

static final java.lang.String XML_MAPPING_METADATA_COMPLETE_PROPERTY
See Also:
Constant Field Values
Method Detail

getParent

EntityMappings getParent()
Description copied from interface: JpaNode
Return the JPA node's parent. The JPA project will not have a parent.

Specified by:
getParent in interface JpaNode

getXmlEntityMappings

XmlEntityMappings getXmlEntityMappings()

isXmlMappingMetadataComplete

boolean isXmlMappingMetadataComplete()

setXmlMappingMetadataComplete

void setXmlMappingMetadataComplete(boolean value)

getPersistenceUnitDefaults

OrmPersistenceUnitDefaults getPersistenceUnitDefaults()

getXmlPersistenceUnitMetadata

XmlPersistenceUnitMetadata getXmlPersistenceUnitMetadata()

buildXmlPersistenceUnitMetadata

XmlPersistenceUnitMetadata buildXmlPersistenceUnitMetadata()

update

void update()
Update the persistence unit metadata context model to match the resource model.

See Also:
JpaProject.update()