org.eclipse.jpt.core.context
Interface JpaRootContextNode

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

public interface JpaRootContextNode
extends JpaContextNode

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 PERSISTENCE_XML_PROPERTY
          String constant associated with changes to the persistenceXml property
 
Method Summary
 PersistenceXml addPersistenceXml()
          Add a persistence.xml file to this content and return the content associated with it.
 void addToMessages(java.util.List<org.eclipse.wst.validation.internal.provisional.core.IMessage> messages)
          All subclass implementations #addToMessages(List) should be preceded by a "super" call to this method
 PersistenceXml getPersistenceXml()
          Return the content represented by the persistence.xml file associated with this project.
 void removePersistenceXml()
          Remove the persistence.xml file from this content.
 void update(org.eclipse.core.runtime.IProgressMonitor monitor)
          Update the context model with the content of the JPA project
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getEntityMappings, getOrmPersistentType, getPersistenceUnit
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent, getResource
 
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
 

Field Detail

PERSISTENCE_XML_PROPERTY

static final java.lang.String PERSISTENCE_XML_PROPERTY
String constant associated with changes to the persistenceXml property

See Also:
Constant Field Values
Method Detail

getPersistenceXml

PersistenceXml getPersistenceXml()
Return the content represented by the persistence.xml file associated with this project. This may be null.


addPersistenceXml

PersistenceXml addPersistenceXml()
Add a persistence.xml file to this content and return the content associated with it. Throws IllegalStateException if a persistence.xml already exists.


removePersistenceXml

void removePersistenceXml()
Remove the persistence.xml file from this content. Throws IllegalStateException if a persistence.xml does not exist.


update

void update(org.eclipse.core.runtime.IProgressMonitor monitor)
Update the context model with the content of the JPA project


addToMessages

void addToMessages(java.util.List<org.eclipse.wst.validation.internal.provisional.core.IMessage> messages)
All subclass implementations #addToMessages(List) should be preceded by a "super" call to this method