org.apache.xalan.lib.sql
Class SQLErrorDocument
java.lang.Object
org.apache.xml.dtm.ref.DTMDefaultBase
org.apache.xml.dtm.ref.DTMDefaultBaseTraversers
org.apache.xml.dtm.ref.DTMDefaultBaseIterators
org.apache.xalan.lib.sql.DTMDocument
org.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 classes/interfaces inherited from class org.apache.xml.dtm.ref.DTMDefaultBaseIterators |
DTMDefaultBaseIterators.AncestorIterator, DTMDefaultBaseIterators.AttributeIterator, DTMDefaultBaseIterators.ChildrenIterator, DTMDefaultBaseIterators.DescendantIterator, DTMDefaultBaseIterators.FollowingIterator, DTMDefaultBaseIterators.FollowingSiblingIterator, DTMDefaultBaseIterators.InternalAxisIteratorBase, DTMDefaultBaseIterators.NamespaceAttributeIterator, DTMDefaultBaseIterators.NamespaceChildrenIterator, DTMDefaultBaseIterators.NamespaceIterator, DTMDefaultBaseIterators.NthDescendantIterator, DTMDefaultBaseIterators.ParentIterator, DTMDefaultBaseIterators.PrecedingIterator, DTMDefaultBaseIterators.PrecedingSiblingIterator, DTMDefaultBaseIterators.RootIterator, DTMDefaultBaseIterators.SingletonIterator, DTMDefaultBaseIterators.TypedAncestorIterator, DTMDefaultBaseIterators.TypedAttributeIterator, DTMDefaultBaseIterators.TypedChildrenIterator, DTMDefaultBaseIterators.TypedDescendantIterator, DTMDefaultBaseIterators.TypedFollowingIterator, DTMDefaultBaseIterators.TypedFollowingSiblingIterator, DTMDefaultBaseIterators.TypedNamespaceIterator, DTMDefaultBaseIterators.TypedPrecedingIterator, DTMDefaultBaseIterators.TypedPrecedingSiblingIterator, DTMDefaultBaseIterators.TypedRootIterator, DTMDefaultBaseIterators.TypedSingletonIterator |
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 |
DEFAULT_BLOCKSIZE, DEFAULT_NUMBLOCKS, DEFAULT_NUMBLOCKS_SMALL, m_documentBaseURI, m_dtmIdent, m_elemIndexes, m_expandedNameTable, m_exptype, m_firstch, m_indexing, 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, ROOTNODE |
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, ROOT_NODE, TEXT_NODE |
Constructor Summary |
SQLErrorDocument(DTMManager mgr,
int ident,
java.lang.Exception error)
Build up an Error Exception with just the Standard Error Information |
SQLErrorDocument(DTMManager mgr,
int ident,
java.lang.Exception error,
java.sql.SQLWarning warning,
boolean full)
Build up an Error Exception with just the Standard Error Information |
SQLErrorDocument(DTMManager mgr,
int ident,
java.sql.SQLException error)
Build up an SQLErrorDocument that includes the basic error information
along with the Extended SQL Error information. |
Method Summary |
private void |
buildBasicStructure(java.lang.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, getNodeData, 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, getFirstAttributeIdentity, getManager, getNextAttributeIdentity, getNodeHandle, getNodeIdent, getTypedAttribute, getTypedFirstChild, getTypedNextSibling, makeNodeHandle, makeNodeIdentity, migrateTo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
S_EXT_ERROR
private static final java.lang.String S_EXT_ERROR
- See Also:
- Constant Field Values
S_SQL_ERROR
private static final java.lang.String S_SQL_ERROR
- See Also:
- Constant Field Values
S_MESSAGE
private static final java.lang.String S_MESSAGE
- See Also:
- Constant Field Values
S_CODE
private static final java.lang.String S_CODE
- See Also:
- Constant Field Values
S_STATE
private static final java.lang.String S_STATE
- See Also:
- Constant Field Values
S_SQL_WARNING
private static final java.lang.String S_SQL_WARNING
- 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_State_TypeID
private int m_State_TypeID
m_SQLWarning_TypeID
private int m_SQLWarning_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
SQLErrorDocument
public SQLErrorDocument(DTMManager mgr,
int ident,
java.sql.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,
java.lang.Exception error)
- Build up an Error Exception with just the Standard Error Information
- Parameters:
mgr
- ident
- error
-
SQLErrorDocument
public SQLErrorDocument(DTMManager mgr,
int ident,
java.lang.Exception error,
java.sql.SQLWarning warning,
boolean full)
- Build up an Error Exception with just the Standard Error Information
- Parameters:
mgr
- ident
- error
-
buildBasicStructure
private void buildBasicStructure(java.lang.Exception e)
- Build up the basic structure that is common for each error.
- Parameters:
e
-
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