Dali Provisional API
Release 3.2

org.eclipse.jpt.jpa.core
Interface JpaProject.Reference

Enclosing interface:
JpaProject

public static interface JpaProject.Reference

Standard adapter for "synchronously" retrieving a JPA project (i.e. if necessary, wait for the JPA project to be constructed; thus the InterruptedException):

 IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject("Foo Project");
 JpaProject.Reference jpaProjectRef = (JpaProject.Reference) project.getAdapter(JpaProject.Reference.class);
 JpaProject jpaProject = jpaProjectRef.getValue();
 
See org.eclipse.jpt.jpa.core/plugin.xml:org.eclipse.core.runtime.adapters.

See Also:
ProjectAdapterFactory

Method Summary
 Iterable<IMessage> buildValidationMessages(IReporter reporter)
          Build the JPA validation messages for the reference's Eclipse project.
 JpaProject getValue()
          Return the JPA project corresponding to the reference's Eclipse project.
 JpaProject rebuild()
          The JPA settings associated with the reference's Eclipse project have changed in such a way as to require the associated JPA project to be completely rebuilt (e.g. when the user changes a project's JPA platform).
 

Method Detail

getValue

JpaProject getValue()
                    throws InterruptedException
Return the JPA project corresponding to the reference's Eclipse project. Return null if unable to associate the Eclipse project with a JPA project. This method can be long-running.

Throws:
InterruptedException

rebuild

JpaProject rebuild()
                   throws InterruptedException
The JPA settings associated with the reference's Eclipse project have changed in such a way as to require the associated JPA project to be completely rebuilt (e.g. when the user changes a project's JPA platform). Return the new JPA project.

Throws:
InterruptedException

buildValidationMessages

Iterable<IMessage> buildValidationMessages(IReporter reporter)
                                           throws InterruptedException
Build the JPA validation messages for the reference's Eclipse project.

Throws:
InterruptedException

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.