|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xalan.utils.UnImplNode | +--org.apache.xalan.lib.sql.StreamableNode | +--org.apache.xalan.lib.sql.XStatement
Represents a JDBC query statement. Also acts as both a NodeIterator and the Document node for the row-set representation of the query result set.
Constructor Summary | |
XStatement(XConnection connection,
java.lang.String queryString)
The XConnection query() method uses this constructor to execute a SQL query statement. |
Method Summary | |
java.lang.Object |
clone()
|
NodeIterator |
cloneWithReset()
|
void |
detach()
Detaches the iterator from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state. |
Node |
getCurrentNode()
|
int |
getCurrentPos()
|
boolean |
getExpandEntityReferences()
The value of this flag determines whether the children of entity reference nodes are visible to the iterator. |
NodeFilter |
getFilter()
The filter used to screen nodes. |
Node |
getFirstChild()
Return the row-set node. |
Node |
getNextSibling()
This always returns null. |
java.lang.String |
getNodeName()
Return "#Document". |
short |
getNodeType()
Return Node.DOCUMENT_NODE. |
Document |
getOwnerDocument()
The parent of a document is null. |
Node |
getParentNode()
The parent node of document is always null. |
java.sql.ResultSet |
getResultSet()
|
Node |
getRoot()
The XStatement object is the NodeIterator root. |
java.sql.Statement |
getStatement()
|
int |
getWhatToShow()
This attribute determines which node types are presented via the iterator. |
XStatement |
getXStatement()
|
boolean |
hasChildNodes()
Tell if there are any children of the document, which is always true. |
boolean |
isFresh()
|
Node |
nextNode()
Return the #Document node (one role the XStatement plays) the first time called; return null thereafter. |
Node |
previousNode()
Throw an exception, since streaming nodes and iterators can not go backwards. |
void |
reset()
|
void |
runTo(int index)
|
void |
setCurrentPos(int i)
|
void |
setShouldCacheNodes(boolean b)
|
int |
size()
|
java.lang.String |
toString()
|
Methods inherited from class org.apache.xalan.lib.sql.StreamableNode |
getAttributes,
getLength,
getLocalName,
getNamedItem,
getNamedItemNS,
getNamespaceURI,
getNodeTest,
getPrefix,
getUid,
item,
removeNamedItem,
removeNamedItemNS,
setNamedItem,
setNamedItemNS,
setNodeTest,
supports |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public XStatement(XConnection connection, java.lang.String queryString) throws java.sql.SQLException
connection
- the XConnection object that calls this constructor.queryString
- the SQL query.Method Detail |
public java.sql.Statement getStatement()
public java.sql.ResultSet getResultSet()
public XStatement getXStatement()
public Node getRoot()
public int getWhatToShow()
NodeFilter
interface.public NodeFilter getFilter()
public boolean getExpandEntityReferences()
public Node nextNode() throws DOMException
public Node previousNode() throws DOMException
public void detach()
detach
has been invoked, calls to
nextNode
orpreviousNode
will raise the
exception INVALID_STATE_ERR.public java.lang.String toString()
public Document getOwnerDocument()
public short getNodeType()
public java.lang.String getNodeName()
public Node getFirstChild()
public Node getNextSibling()
public Node getParentNode()
public boolean hasChildNodes()
public Node getCurrentNode()
public int getCurrentPos()
public void reset()
public void setShouldCacheNodes(boolean b)
public void runTo(int index)
public void setCurrentPos(int i)
public int size()
public boolean isFresh()
public NodeIterator cloneWithReset() throws java.lang.CloneNotSupportedException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |