|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xml.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()
Clone this object |
NodeIterator |
cloneWithReset()
Overide cloneWithReset method |
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()
The current node is the RowSet |
int |
getCurrentPos()
Get Current Position |
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. |
int |
getLast()
Get index of the last found node |
Node |
getNextSibling()
getNextSibling - This always returns null. |
java.lang.String |
getNodeName()
Return node name: "#Document". |
short |
getNodeType()
Return node type: 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()
Get the ResultSet from executing the query string |
Node |
getRoot()
The XStatement object is the NodeIterator root. |
java.sql.Statement |
getStatement()
Get the JDBC Query statement |
int |
getWhatToShow()
This attribute determines which node types are presented via the iterator. |
XStatement |
getXStatement()
Get the representation of the JDBC Query statement |
boolean |
hasChildNodes()
Tell if there are any children of the document, which is always true. |
boolean |
isFresh()
Return whether this iterator is fresh |
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()
Reset this object |
void |
runTo(int index)
Not implemented |
void |
setCurrentPos(int i)
Not implemented |
void |
setLast(int last)
Set the index of the last found node |
void |
setShouldCacheNodes(boolean b)
Set whether nodes should be cached - not implemented |
int |
size()
Return size |
java.lang.String |
toString()
Return the String value of this object |
Methods inherited from class org.apache.xalan.lib.sql.StreamableNode |
getAttributes,
getLength,
getLocalName,
getNamedItem,
getNamedItemNS,
getNamespaceURI,
getNodeTest,
getPrefix,
getUid,
isSupported,
item,
removeNamedItem,
removeNamedItemNS,
setNamedItem,
setNamedItemNS,
setNodeTest |
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)
b
- Flag indicating whether nodes should be cachedpublic void runTo(int index)
index
- public void setCurrentPos(int i)
i
- public int size()
public boolean isFresh()
public NodeIterator cloneWithReset() throws java.lang.CloneNotSupportedException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
public int getLast()
public void setLast(int last)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |