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

org.netbeans.modules.j2ee.persistence.spi
Interface PersistenceLocationProvider


public interface PersistenceLocationProvider

This interface should be implemented in a context which supports Java Persistence API, whether or not is contains a persistence.xml file. It contains methods for creating/retrieving the default location for persistence.xml files. For example it can be implemented by a project and can be used by a client which wants to create a persistence scope in that project.


Method Summary
 org.openide.filesystems.FileObject createLocation()
          Creates (if it does not exist) and returns the default location for persistence.xml and related files.
 org.openide.filesystems.FileObject getLocation()
          Returns the default location for persistence.xml and related files.
 

Method Detail

getLocation

org.openide.filesystems.FileObject getLocation()
Returns the default location for persistence.xml and related files.

Returns:
the default location or null if it does not exist.

createLocation

org.openide.filesystems.FileObject createLocation()
                                                  throws IOException
Creates (if it does not exist) and returns the default location for persistence.xml and related files.

Returns:
the default location; never null.
Throws:
IOException - if an error occured while creating the location of persistence.xml

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

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