Class PersistenceUnitNode
- java.lang.Object
-
- com.sun.enterprise.deployment.node.DeploymentDescriptorNode
-
- com.sun.enterprise.deployment.node.PersistenceUnitNode
-
- All Implemented Interfaces:
XMLNode
public class PersistenceUnitNode extends DeploymentDescriptorNode
This node is responsible for reading details about one- Author:
- [email protected]
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
abstractDescriptor, handlers, localStrings, parentNode, rootNode, serviceLocator
-
-
Constructor Summary
Constructors Constructor Description PersistenceUnitNode()
This is the default constructor which is also called from other constructors of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,String>
getDispatchTable()
This returns the dispatch table for this node.void
startElement(XMLElement element, Attributes attributes)
SAX Parser API implementation, we don't really care for now.-
Methods inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
addDescriptor, addNamespaceDeclaration, addNodeDescriptor, addPrefixMapping, appendChild, appendQNameChild, appendTextChild, appendTextChild, composeQNameValue, createDescriptor, endElement, forceAppendTextChild, getDescriptor, getHandlerFor, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getRootNode, getXMLPath, getXMLRootTag, handlesElement, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, setAttributeValue, setDescriptorInfo, setElementValue, setParentNode, setXMLRootTag, writeDescriptor, writeDescriptor, writeDescriptors, writeEjbReferenceDescriptors, writeEntityManagerFactoryReferenceDescriptors, writeEntityManagerReferenceDescriptors, writeEnvEntryDescriptors, writeJNDIEnvironmentRefs, writeLifeCycleCallbackDescriptors, writeLocalizedDescriptions, writeMessageDestinationRefDescriptors, writeResourceDescriptors, writeResourceEnvRefDescriptors, writeResourceRefDescriptors, writeServiceReferenceDescriptors, writeSimpleTextDescriptor, writeSubDescriptors
-
-
-
-
Constructor Detail
-
PersistenceUnitNode
public PersistenceUnitNode()
This is the default constructor which is also called from other constructors of this class. Inside this constructor, we clear the handlers set up by super classes' constructors because they are not applicable in the context of PersistenceNode because unlike standard Java EE schemas, persistence.xsd does not include javaee_5.xsd for things like description, version etc.
-
-
Method Detail
-
startElement
public void startElement(XMLElement element, Attributes attributes)
Description copied from class:DeploymentDescriptorNode
SAX Parser API implementation, we don't really care for now.- Specified by:
startElement
in interfaceXMLNode
- Overrides:
startElement
in classDeploymentDescriptorNode
- Parameters:
element
- the XML element type nameattributes
- the specified or defaultted attritutes
-
getDispatchTable
protected Map<String,String> getDispatchTable()
This returns the dispatch table for this node. Please note, unlike Java EE schemas persistence.xsd does not include standard elements or attributes (e.g. version, descriptionGroupRef etc.) from javaee_5.xsd, we don't use super classes' dispatch table.- Overrides:
getDispatchTable
in classDeploymentDescriptorNode
- Returns:
- map of element names to method names in PersistenceUnitDescriptor
- See Also:
initDispatchTable()
-
-