{
if (DEBUG)
System.out.println("In RowSet.getFirstChild");
NodeTest nt = this.getNodeTest();
// If we are asking for the Column Header branch of the Node Tree
// or if we are asking for any branch (nt == null) then we will
// return the First Column Header Node
if ((null == nt) ||
nt.getLocalName().equals(XStatement.S_COLUMNHEADERNAME))
{
m_RowSetPos = ROWSET_POS_COLHDR;
return getFirstColHdr();
}
//
// If we ask for the Row Branch directly then return the
// first row. If we have been here before and we are in
// streamable mode then return null, we can re-traverse
// the Result Set in Streamable Mode.
//
// Suppporting JDBC scrollable cursors may change that
// though.
//
else if (nt.getLocalName().equals(XStatement.S_ROWNAME))
{
m_RowSetPos = ROWSET_POS_ROW;
return getFirstRow();
}