|
org.netbeans.modules.j2ee.persistenceapi/1 1.0.20 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.modules.j2ee.persistence.api.PersistenceScope
public final class PersistenceScope
Describes a persistence scope. A persistence scope is composed of a persistence.xml file and the classpath for this persistence.xml file (which contains all entity classes and JAR files referenced by the persistence units in the persistence.xml file).
Method Summary | |
---|---|
org.netbeans.api.java.classpath.ClassPath |
getClassPath()
Provides the classpath of this persistence scope, which covers the sources of the entity classes referenced by the persistence.xml file, as well as the referenced JAR files. |
static PersistenceScope |
getPersistenceScope(org.openide.filesystems.FileObject fo)
Returns the persistence scope for the given file. |
org.openide.filesystems.FileObject |
getPersistenceXml()
Returns the persistence.xml file of this persistence scope. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PersistenceScope getPersistenceScope(org.openide.filesystems.FileObject fo)
fo
- the file for which to find the persistence scope; cannot be null.
NullPointerException
- if the fo parameter was null.public org.openide.filesystems.FileObject getPersistenceXml()
public org.netbeans.api.java.classpath.ClassPath getClassPath()
|
org.netbeans.modules.j2ee.persistenceapi/1 1.0.20 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |