Methods Summary |
---|
public void | addPersistenceUnitsDescriptor(java.lang.String puRoot, PersistenceUnitsDescriptor persistenceUnitsDescriptor)Add deplyoment information about all the persistence units
defined in a persistence.xml to this RootDeploymentDescriptor.
All the persistence units defined inside the same persistence.xml
will be added with same PURoot. This method also sets the parent
reference in PersistenceUnitsDescriptor.
// We don't expect the parent to be already set
// because that indicates transfer of ownership.
assert(persistenceUnitsDescriptor.getParent() == null);
persistenceUnitsDescriptor.setParent(this);
persistenceUnitsDescriptor.setPuRoot(puRoot);
persistenceUnitsDescriptors.put(puRoot, persistenceUnitsDescriptor);
|
public abstract java.lang.ClassLoader | getClassLoader()
|
public abstract java.lang.String | getDefaultSpecVersion()
|
public java.lang.String | getDisplayName()
return super.getName();
|
public abstract java.lang.String | getModuleID()
|
public abstract javax.enterprise.deploy.shared.ModuleType | getModuleType()
|
public java.lang.String | getName()as of J2EE1.4, get/setName are deprecated,
people should use the set/getDisplayName or
the set/getModuleID.
note : backward compatibility
if (getModuleID()!=null) {
return getModuleID();
} else {
return getDisplayName();
}
|
public PersistenceUnitsDescriptor | getPersistenceUnitsDescriptor(java.lang.String puRoot)This method returns PersistenceUnitDescriptor object with matching
PURoot in the scope of this RootDeploymentDescriptor.
return persistenceUnitsDescriptors.get(puRoot);
|
public java.util.Collection | getPersistenceUnitsDescriptors()This method returns PersistenceUnitDescriptor objects in the
scope of this RootDeploymentDescriptor.
return Collections.unmodifiableCollection(persistenceUnitsDescriptors.values());
|
public java.lang.String | getSchemaLocation()
return (String) getExtraAttribute("schema-location");
|
public java.lang.String | getSpecVersion()
if (specVersion == null) {
specVersion = getDefaultSpecVersion();
}
try {
Double.parseDouble(specVersion);
} catch (NumberFormatException nfe) {
DOLUtils.getDefaultLogger().log(Level.WARNING, "invalidSpecVersion",
new Object[] {specVersion, getDefaultSpecVersion()});
specVersion = getDefaultSpecVersion();
}
return specVersion;
|
public abstract boolean | isApplication()
|
public void | print(java.lang.StringBuffer toStringBuffer)print a meaningful string for this object
super.print(toStringBuffer);
toStringBuffer.append("\n Module Type = ").append(getModuleType());
toStringBuffer.append("\n Module spec version = ").append(getSpecVersion());
if (moduleID!=null)
toStringBuffer.append("\n Module ID = ").append(moduleID);
if (getSchemaLocation()!=null)
toStringBuffer.append("\n Client SchemaLocation = ").append(getSchemaLocation());
|
public void | setClassLoader(java.lang.ClassLoader classLoader)Sets the class loader for this application
this.classLoader = classLoader;
|
public void | setDisplayName(java.lang.String name)sets the display name for this bundle
super.setName(name);
|
public void | setModuleID(java.lang.String moduleID)each module is uniquely identified with a moduleID
this.moduleID = moduleID;
|
public void | setName(java.lang.String name)as of J2EE1.4, get/setName are deprecated,
people should use the set/getDisplayName or
the set/getModuleID.
setModuleID(name);
|
public void | setSchemaLocation(java.lang.String schemaLocation)
addExtraAttribute("schema-location", schemaLocation);
|
public void | setSpecVersion(java.lang.String specVersion)Sets the specification version of the deployment descriptor
this.specVersion = specVersion;
|