|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xml.utils.UnImplNode | +--weblogic.apache.xalan.lib.sql.StreamableNode | +--weblogic.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. |
|
XStatement(XConnection connection,
java.lang.String queryString,
java.util.Vector pList)
|
Method Summary | |
java.lang.Object |
clone()
Clone this object |
org.w3c.dom.traversal.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. |
org.w3c.dom.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. |
org.w3c.dom.traversal.NodeFilter |
getFilter()
The filter used to screen nodes. |
org.w3c.dom.Node |
getFirstChild()
Return the row-set node. |
int |
getLast()
Get index of the last found node |
org.w3c.dom.Node |
getNextSibling()
getNextSibling - This always returns null. |
java.lang.String |
getNodeName()
Return node name: "#Document". |
short |
getNodeType()
Return node type: Node.DOCUMENT_NODE. |
org.w3c.dom.Document |
getOwnerDocument()
The parent of a document is null. |
org.w3c.dom.Node |
getParentNode()
The parent node of document is always null. |
java.sql.ResultSet |
getResultSet()
Get the ResultSet from executing the query string |
org.w3c.dom.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 |
org.w3c.dom.Node |
nextNode()
Return the #Document node (one role the XStatement plays) the first time called; return null thereafter. |
org.w3c.dom.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 |
setParameter(int pos,
java.sql.PreparedStatement stmt,
QueryParameter p)
Set the parameter for a Prepared Statement |
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 weblogic.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,
finalize,
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.public XStatement(XConnection connection, java.lang.String queryString, java.util.Vector pList) throws java.sql.SQLException
Method Detail |
public java.sql.Statement getStatement()
public java.sql.ResultSet getResultSet()
public void setParameter(int pos, java.sql.PreparedStatement stmt, QueryParameter p) throws java.sql.SQLException
public XStatement getXStatement()
public org.w3c.dom.Node getRoot()
public int getWhatToShow()
NodeFilter
interface.
public org.w3c.dom.traversal.NodeFilter getFilter()
public boolean getExpandEntityReferences()
public org.w3c.dom.Node nextNode() throws org.w3c.dom.DOMException
public org.w3c.dom.Node previousNode() throws org.w3c.dom.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 org.w3c.dom.Document getOwnerDocument()
public short getNodeType()
public java.lang.String getNodeName()
public org.w3c.dom.Node getFirstChild()
public org.w3c.dom.Node getNextSibling()
public org.w3c.dom.Node getParentNode()
public boolean hasChildNodes()
public org.w3c.dom.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 org.w3c.dom.traversal.NodeIterator cloneWithReset() throws java.lang.CloneNotSupportedException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
public int getLast()
public void setLast(int last)
|
Documentation is available at http://e-docs.bea.com/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |