org.eclipse.jpt.core
Interface JpaModel

All Superinterfaces:
Model

public interface JpaModel
extends Model

The JPA model holds all the JPA projects. 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 JPA_PROJECTS_COLLECTION
           
 
Method Summary
 boolean containsJpaProject(org.eclipse.core.resources.IProject project)
          Return whether the JPA model contains a JPA project corresponding to the specified Eclipse project.
 JpaFile getJpaFile(org.eclipse.core.resources.IFile file)
          Return the JPA file corresponding to the specified Eclipse file, or null if unable to associate the specified file with a JPA file.
 JpaProject getJpaProject(org.eclipse.core.resources.IProject project)
          Return the JPA project corresponding to the specified Eclipse project.
 java.util.Iterator<JpaProject> jpaProjects()
          Return the JPA model's JPA projects.
 int jpaProjectsSize()
          Return the size of the JPA model's list of JPA projects.
 
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
 

Field Detail

JPA_PROJECTS_COLLECTION

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

getJpaProject

JpaProject getJpaProject(org.eclipse.core.resources.IProject project)
                         throws org.eclipse.core.runtime.CoreException
Return the JPA project corresponding to the specified Eclipse project. Return null if unable to associate the specified Eclipse project with a JPA project.

Throws:
org.eclipse.core.runtime.CoreException

containsJpaProject

boolean containsJpaProject(org.eclipse.core.resources.IProject project)
Return whether the JPA model contains a JPA project corresponding to the specified Eclipse project.


jpaProjects

java.util.Iterator<JpaProject> jpaProjects()
                                           throws org.eclipse.core.runtime.CoreException
Return the JPA model's JPA projects. This has performance implications, it will build all the JPA projects.

Throws:
org.eclipse.core.runtime.CoreException

jpaProjectsSize

int jpaProjectsSize()
Return the size of the JPA model's list of JPA projects.


getJpaFile

JpaFile getJpaFile(org.eclipse.core.resources.IFile file)
                   throws org.eclipse.core.runtime.CoreException
Return the JPA file corresponding to the specified Eclipse file, or null if unable to associate the specified file with a JPA file.

Throws:
org.eclipse.core.runtime.CoreException