com.sun.enterprise.deployment
Class PersistenceUnitsDescriptor
java.lang.Object
java.util.Observable
com.sun.enterprise.deployment.DynamicAttributesDescriptor
com.sun.enterprise.deployment.Descriptor
com.sun.enterprise.deployment.RootDeploymentDescriptor
com.sun.enterprise.deployment.PersistenceUnitsDescriptor
- All Implemented Interfaces:
- java.io.Serializable
public class PersistenceUnitsDescriptor
- extends RootDeploymentDescriptor
This descriptor represents contents for one persistence.xml file.
- Author:
- Sanjeeb.Sahoo@Sun.COM
- See Also:
- Serialized Form
| Methods inherited from class com.sun.enterprise.deployment.RootDeploymentDescriptor |
addExtensionDescriptor, getDisplayName, getExtensionsDescriptors, getExtensionsDescriptors, getExtensionsDescriptors, getMainDescriptor, getModuleDescriptor, getName, getSchemaLocation, getSpecVersion, isDDWithNoAnnotationAllowed, isExtensionDescriptor, isFullAttribute, isFullFlag, print, setClassLoader, setDisplayName, setFullAttribute, setFullFlag, setModuleDescriptor, setModuleID, setName, setSchemaLocation, setSpecVersion |
| Methods inherited from class com.sun.enterprise.deployment.Descriptor |
addDeploymentExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setSmallIconUri, visit |
| Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PersistenceUnitsDescriptor
public PersistenceUnitsDescriptor()
getParent
public RootDeploymentDescriptor getParent()
setParent
public void setParent(RootDeploymentDescriptor parent)
getPuRoot
public java.lang.String getPuRoot()
setPuRoot
public void setPuRoot(java.lang.String puRoot)
getDefaultSpecVersion
public java.lang.String getDefaultSpecVersion()
- Specified by:
getDefaultSpecVersion in class RootDeploymentDescriptor
- Returns:
- the default version of the deployment descriptor
loaded by this descriptor
getModuleID
public java.lang.String getModuleID()
- Specified by:
getModuleID in class RootDeploymentDescriptor
- Returns:
- the module ID for this module descriptor
getModuleType
public XModuleType getModuleType()
- Specified by:
getModuleType in class RootDeploymentDescriptor
- Returns:
- the module type for this bundle descriptor
getClassLoader
public java.lang.ClassLoader getClassLoader()
- Specified by:
getClassLoader in class RootDeploymentDescriptor
- Returns:
- the class loader associated with this module
isApplication
public boolean isApplication()
- Specified by:
isApplication in class RootDeploymentDescriptor
- Returns:
- true if this module is an application object
addPersistenceUnitDescriptor
public void addPersistenceUnitDescriptor(PersistenceUnitDescriptor pud)
- This method does not do any validation like checking for unique names
of PersistenceUnits.
- Parameters:
pud - the PersistenceUnitDescriptor to be added.
getPersistenceUnitDescriptors
public java.util.List<PersistenceUnitDescriptor> getPersistenceUnitDescriptors()
- Returns:
- an unmodifiable list.
getAbsolutePuRoot
public java.lang.String getAbsolutePuRoot()
- This is a utility method which calculates the absolute path of the
root of a PU. Absolute path is not the path with regards to
root of file system. It is the path from the root of the Java EE
application this persistence unit belongs to.
Like
getPuRoot() returned path always uses '/' as path separator.
- Returns:
- the absolute path of the root of this persistence unit
- See Also:
getPuRoot()
isEmpty
public boolean isEmpty()
- Description copied from class:
RootDeploymentDescriptor
- Return true if this root deployment descriptor does not describe anything
- Specified by:
isEmpty in class RootDeploymentDescriptor
- Returns:
- true if this root descriptor is empty
Copyright © 2012 GlassFish Community. All Rights Reserved.