org.apache.xalan.lib.sql
Class SQLErrorDocument

java.lang.Object
  extended byorg.apache.xml.dtm.ref.DTMDefaultBase
      extended byorg.apache.xml.dtm.ref.DTMDefaultBaseTraversers
          extended byorg.apache.xml.dtm.ref.DTMDefaultBaseIterators
              extended byorg.apache.xalan.lib.sql.DTMDocument
                  extended byorg.apache.xalan.lib.sql.SQLErrorDocument
All Implemented Interfaces:
DTM

public class SQLErrorDocument
extends DTMDocument

The SQL Document is the main controlling class the executesa SQL Query


Nested Class Summary
 
Nested classes inherited from class org.apache.xalan.lib.sql.DTMDocument
DTMDocument.CharacterNodeHandler
 
Nested classes inherited from class org.apache.xml.dtm.ref.DTMDefaultBaseIterators
 
Nested classes inherited from class org.apache.xml.dtm.ref.DTMDefaultBaseTraversers
 
Field Summary
private  int m_Code_TypeID
           
private  int m_ErrorExt_TypeID
           
private  int m_extErrorID
           
private  int m_MainMessageID
           
private  int m_Message_TypeID
           
private  int m_rootID
           
private  int m_SQLError_TypeID
           
private static String S_CODE
           
private static String S_EXT_ERROR
           
private static String S_MESSAGE
           
private static String S_SQL_ERROR
           
 
Fields inherited from class org.apache.xalan.lib.sql.DTMDocument
m_attribute, m_Document_TypeID, m_DocumentIdx, m_ObjectArray, m_TextNode_TypeID, S_ATTRIB_NOT_SUPPORTED, S_DOCUMENT, S_ELEMENT_NODE, S_ISFALSE, S_ISTRUE, S_NAMESPACE, S_TEXT_NODE
 
Fields inherited from class org.apache.xml.dtm.ref.DTMDefaultBase
m_blocksize, m_documentBaseURI, m_dtmIdent, m_elemIndexes, m_expandedNameTable, m_exptype, m_firstch, m_indexing, m_initialblocksize, m_mgr, m_mgrDefault, m_namespaceDeclSetElements, m_namespaceDeclSets, m_nextsib, m_parent, m_prevsib, m_shouldStripWhitespaceStack, m_shouldStripWS, m_size, m_traversers, m_wsfilter, m_xstrf, NOTPROCESSED
 
Fields inherited from interface org.apache.xml.dtm.DTM
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NAMESPACE_NODE, NOTATION_NODE, NTYPES, NULL, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
SQLErrorDocument(DTMManager mgr, int ident, Exception error)
          Build up an Error Exception with just the Standard Error Information
SQLErrorDocument(DTMManager mgr, int ident, SQLException error)
          Build up an SQLErrorDocument that includes the basic error information along with the Extended SQL Error information.
 
Method Summary
private  void buildBasicStructure(Exception e)
          Build up the basic structure that is common for each error.
protected  void createExpandedNameTable()
          Populate the Expanded Name Table with the Node that we will use.
 
Methods inherited from class org.apache.xalan.lib.sql.DTMDocument
_exptype, _firstch, _level, _nextsib, _parent, _prevsib, _type, addAttributeToNode, addElement, addElementWithData, appendChild, appendTextChild, cloneAttributeFromNode, declareNamespaceInContext, dispatchCharactersEvents, dispatchNodeData, dispatchToEvents, dumpDTM, ensureSize, ensureSizeOfIndex, error, findGTE, findInSortedSuballocatedIntVector, findNamespaceContext, getAttributeNode, getAxisIterator, getAxisTraverser, getContentHandler, getDeclHandler, getDocument, getDocumentAllDeclarationsProcessed, getDocumentBaseURI, getDocumentEncoding, getDocumentStandalone, getDocumentSystemIdentifier, getDocumentTypeDeclarationPublicIdentifier, getDocumentTypeDeclarationSystemIdentifier, getDocumentVersion, getDTDHandler, getElementById, getEntityResolver, getErrorHandler, getExpandedTypeID, getExpandedTypeID, getFirstAttribute, getFirstChild, getFirstNamespaceNode, getLastChild, getLevel, getLexicalHandler, getLocalName, getLocalNameFromExpandedNameID, getNamespaceFromExpandedNameID, getNamespaceType, getNamespaceURI, getNextAttribute, getNextNamespaceNode, getNextNodeIdentity, getNextSibling, getNode, getNodeName, getNodeNameX, getNodeType, getNodeValue, getNumberOfNodes, getOwnerDocument, getParent, getPrefix, getPreviousSibling, getShouldStripWhitespace, getSourceLocatorFor, getStringValue, getStringValueChunk, getStringValueChunkCount, getTypedAxisIterator, getUnparsedEntityURI, hasChildNodes, indexNode, isAttributeSpecified, isCharacterElementContentWhitespace, isDocumentAllDeclarationsProcessed, isNodeAfter, isSupported, needsTwoThreads, nextNode, popShouldStripWhitespace, pushShouldStripWhitespace, setDocumentBaseURI, setFeature, setProperty, setShouldStripWhitespace, supportsPreStripping
 
Methods inherited from class org.apache.xml.dtm.ref.DTMDefaultBase
documentRegistration, documentRelease, dumpDTM, dumpNode, getDocumentRoot, getDTMIDs, getManager, makeNodeHandle, makeNodeIdentity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

S_EXT_ERROR

private static final String S_EXT_ERROR
See Also:
Constant Field Values

S_SQL_ERROR

private static final String S_SQL_ERROR
See Also:
Constant Field Values

S_MESSAGE

private static final String S_MESSAGE
See Also:
Constant Field Values

S_CODE

private static final String S_CODE
See Also:
Constant Field Values

m_ErrorExt_TypeID

private int m_ErrorExt_TypeID

m_Message_TypeID

private int m_Message_TypeID

m_Code_TypeID

private int m_Code_TypeID

m_SQLError_TypeID

private int m_SQLError_TypeID

m_rootID

private int m_rootID

m_extErrorID

private int m_extErrorID

m_MainMessageID

private int m_MainMessageID
Constructor Detail

SQLErrorDocument

public SQLErrorDocument(DTMManager mgr,
                        int ident,
                        SQLException error)
Build up an SQLErrorDocument that includes the basic error information along with the Extended SQL Error information.

Parameters:
mgr -
ident -
error -

SQLErrorDocument

public SQLErrorDocument(DTMManager mgr,
                        int ident,
                        Exception error)
Build up an Error Exception with just the Standard Error Information

Parameters:
mgr -
ident -
error -
Method Detail

buildBasicStructure

private void buildBasicStructure(Exception e)
Build up the basic structure that is common for each error.

Parameters:
e -
Returns:

createExpandedNameTable

protected void createExpandedNameTable()
Populate the Expanded Name Table with the Node that we will use. Keep a reference of each of the types for access speed.

Overrides:
createExpandedNameTable in class DTMDocument
Returns: