org.apache.xalan.lib.sql

Class SQLDocument

public class SQLDocument extends DTMDocument

The SQL Document is the main controlling class the executesa SQL Query
Constructor Summary
SQLDocument(DTMManager mgr, int ident)
Method Summary
SQLWarningcheckWarnings()
voidclose(boolean flushConnPool)
Close down any resources used by this document.
voiddocumentRegistration()
voiddocumentRelease()
voidexecute(XConnection xconn, SQLQueryParser query)
ExpressionContextgetExpressionContext()
Return the context used to build this document
static SQLDocumentgetNewDocument(ExpressionContext exprContext)
This static method simplifies the creation of an SQL Document and allows us to embedd the complexity of creating / handling the dtmIdent inside the document.
booleanhasErrors()
Used by the XConnection to determine if the Document should handle the document differently.
voidskip(int value)
Push the record set forward value rows.

Constructor Detail

SQLDocument

public SQLDocument(DTMManager mgr, int ident)

Parameters: mgr ident

Throws: SQLException

Method Detail

checkWarnings

public SQLWarning checkWarnings()

close

public void close(boolean flushConnPool)
Close down any resources used by this document. If an SQL Error occure while the document was being accessed, the SQL Connection used to create this document will be released to the Connection Pool on error. This allows the COnnection Pool to give special attention to any connection that may be in a errored state.

documentRegistration

public void documentRegistration()

documentRelease

public void documentRelease()

execute

public void execute(XConnection xconn, SQLQueryParser query)

getExpressionContext

public ExpressionContext getExpressionContext()
Return the context used to build this document

getNewDocument

public static SQLDocument getNewDocument(ExpressionContext exprContext)
This static method simplifies the creation of an SQL Document and allows us to embedd the complexity of creating / handling the dtmIdent inside the document. This type of method may better placed inside the DTMDocument code

hasErrors

public boolean hasErrors()
Used by the XConnection to determine if the Document should handle the document differently.

skip

public void skip(int value)
Push the record set forward value rows. Used to help in SQL pagination.

Parameters: value

Copyright © 2005 Apache XML Project. All Rights Reserved.