| |
|
| java.lang.Object org.jpox.metadata.MetaData org.jpox.metadata.PersistenceFileMetaData
PersistenceFileMetaData | public class PersistenceFileMetaData extends MetaData (Code) | | Representation of a Meta-Data "persistence.xml" file.
Contains a set of "persistence-unit" meta-data.
since: 1.1 version: $Revision: 1.4 $ |
filename | protected String filename(Code) | | Filename of the "persistence.xml"
|
persistenceUnits | protected HashSet persistenceUnits(Code) | | Persistence units defined in this file.
|
PersistenceFileMetaData | public PersistenceFileMetaData(String filename)(Code) | | Constructor.
Parameters: filename - The file where this is stored (or null). |
addPersistenceUnit | public void addPersistenceUnit(PersistenceUnitMetaData pumd)(Code) | | Method to add a persistence unit
Parameters: pumd - The PersistenceUnitMetaData to add. |
getFilename | public String getFilename()(Code) | | Accessor for the filename
The filename of this MetaData file. |
getNoOfPersistenceUnits | public int getNoOfPersistenceUnits()(Code) | | Accessor for the number of persistence units.
no of persistence units. |
getPersistenceUnit | public PersistenceUnitMetaData getPersistenceUnit(String name)(Code) | | Accessor for the Meta-Data of a persistence unit with a given name.
Parameters: name - Name of the persistence unit Meta-Data for the persistence unit |
getPersistenceUnits | public PersistenceUnitMetaData[] getPersistenceUnits()(Code) | | Accessor for the persistence units in this "persistence.xml" file.
The persistence units |
setFilename | public void setFilename(String filename)(Code) | | Mutator for the filename for this MetaData file.
Parameters: filename - The filename of this MetaData file. |
toString | public String toString(String indent)(Code) | | Returns a string representation of the object.
Parameters: indent - The indent a string representation of the object. |
|
|
|