org.eclipse.jpt.core.context
Interface JpaRootContextNode

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IResourcePart, 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.
 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
 void validate(java.util.List<org.eclipse.wst.validation.internal.provisional.core.IMessage> messages)
          Add validation messages to the specified list.
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit
 
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
 

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


validate

void validate(java.util.List<org.eclipse.wst.validation.internal.provisional.core.IMessage> messages)
Add validation messages to the specified list.