org.netbeans.modules.j2ee.persistenceapi/1 1.0.20

org.netbeans.modules.j2ee.persistence.api
Class PersistenceLocation

java.lang.Object
  extended by org.netbeans.modules.j2ee.persistence.api.PersistenceLocation

public final class PersistenceLocation
extends Object

This class allows retrieving the default persistence location in a project or creating this location if it doesn't exist.


Method Summary
static org.openide.filesystems.FileObject createLocation(org.netbeans.api.project.Project project)
          Creates the default persistence location in the given project.
static org.openide.filesystems.FileObject getLocation(org.netbeans.api.project.Project project)
          Returns the default persistence location in the given project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLocation

public static org.openide.filesystems.FileObject getLocation(org.netbeans.api.project.Project project)
Returns the default persistence location in the given project.

Parameters:
project - the project.
Returns:
the persistence location or null if the project does not have a persistence location or the location does not exist.

createLocation

public static org.openide.filesystems.FileObject createLocation(org.netbeans.api.project.Project project)
                                                         throws IOException
Creates the default persistence location in the given project.

Parameters:
project - the project.
Returns:
the persistence location; never null.
Throws:
IOException - if the persistence location could not be created or the project did not have an implementation of PersistenceLocationProvider in its lookup.

org.netbeans.modules.j2ee.persistenceapi/1 1.0.20

Built on August 9 2006.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.