com.sun.enterprise.deployment.node
Class PersistenceUnitNode

java.lang.Object
  extended by com.sun.enterprise.deployment.node.DeploymentDescriptorNode
      extended by 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:
Sanjeeb.Sahoo@Sun.COM

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
abstractDescriptor, handlers, localStrings, parentNode
 
Constructor Summary
PersistenceUnitNode()
          This is the default constructor which is also called from other constructors of this class.
 
Method Summary
protected  java.util.Map getDispatchTable()
          This returns the dispatch table for this node.
 void startElement(XMLElement element, org.xml.sax.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, endElement, forceAppendTextChild, getDescriptor, getHandlerFor, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getXMLPath, getXMLRootTag, handlesElement, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, setAttributeValue, setDescriptorInfo, setElementValue, setParentNode, setXMLRootTag, writeAroundInvokeDescriptors, writeAroundTimeoutDescriptors, writeDataSourceDefinitionDescriptors, writeDescriptor, writeDescriptor, writeEjbReferenceDescriptors, writeEntityManagerFactoryReferenceDescriptors, writeEntityManagerReferenceDescriptors, writeEnvEntryDescriptors, writeJNDIEnvironmentRefs, writeLocalizedDescriptions, writeMessageDestinationRefDescriptors, writePostActivateDescriptors, writePostConstructDescriptors, writePreDestroyDescriptors, writePrePassivateDescriptors, writeResourceEnvRefDescriptors, writeResourceRefDescriptors, writeServiceReferenceDescriptors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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,
                         org.xml.sax.Attributes attributes)
Description copied from class: DeploymentDescriptorNode
SAX Parser API implementation, we don't really care for now.

Specified by:
startElement in interface XMLNode
Overrides:
startElement in class DeploymentDescriptorNode
Parameters:
element - the XML element type name
attributes - the specified or defaultted attritutes

getDispatchTable

protected java.util.Map 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 class DeploymentDescriptorNode
Returns:
map of element names to method names in PersistenceUnitDescriptor
See Also:
super#getDispatchTable(), initDispatchTable()


Copyright © 2012 GlassFish Community. All Rights Reserved.