public class PersistenceUnitsDescriptor extends RootDeploymentDescriptor
classLoader, deplLogger, extensions, moduleDescriptor, moduleID
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
Constructor and Description |
---|
PersistenceUnitsDescriptor() |
Modifier and Type | Method and Description |
---|---|
void |
addPersistenceUnitDescriptor(PersistenceUnitDescriptor pud)
This method does not do any validation like checking for unique names
of PersistenceUnits.
|
String |
getAbsolutePuRoot()
This is a utility method which calculates the absolute path of the
root of a PU.
|
ClassLoader |
getClassLoader() |
String |
getDefaultSpecVersion() |
String |
getModuleID() |
ArchiveType |
getModuleType() |
RootDeploymentDescriptor |
getParent() |
List<PersistenceUnitDescriptor> |
getPersistenceUnitDescriptors() |
String |
getPuRoot() |
boolean |
isApplication() |
boolean |
isEmpty()
Return true if this root deployment descriptor does not describe anything
|
void |
setParent(RootDeploymentDescriptor parent) |
void |
setPuRoot(String puRoot) |
addExtensionDescriptor, getDisplayName, getExtensionsDescriptors, getExtensionsDescriptors, getExtensionsDescriptors, getMainDescriptor, getModuleDescriptor, getName, getSchemaLocation, getSpecVersion, getTracerVisitor, isExtensionDescriptor, print, setClassLoader, setDisplayName, setModuleDescriptor, setModuleID, setName, setSchemaLocation, setSpecVersion
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setSmallIconUri, visit
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public RootDeploymentDescriptor getParent()
public void setParent(RootDeploymentDescriptor parent)
public String getPuRoot()
public void setPuRoot(String puRoot)
public String getDefaultSpecVersion()
getDefaultSpecVersion
in class RootDeploymentDescriptor
public String getModuleID()
getModuleID
in class RootDeploymentDescriptor
public ArchiveType getModuleType()
getModuleType
in class RootDeploymentDescriptor
public ClassLoader getClassLoader()
getClassLoader
in class RootDeploymentDescriptor
public boolean isApplication()
isApplication
in class RootDeploymentDescriptor
public void addPersistenceUnitDescriptor(PersistenceUnitDescriptor pud)
pud
- the PersistenceUnitDescriptor to be added.public List<PersistenceUnitDescriptor> getPersistenceUnitDescriptors()
public String getAbsolutePuRoot()
getPuRoot()
returned path always uses '/' as path separator.getPuRoot()
public boolean isEmpty()
RootDeploymentDescriptor
isEmpty
in class RootDeploymentDescriptor
Copyright © 2018. All rights reserved.