db\DataReader readAll()

readAll() public method Reads the whole result set into an array. public array readAll ( )return array The result set (each array element represents a row of data). An empty array will be returned if the result contains no row.

db\DataReader read()

read() public method Advances the reader to the next row in a result set. public array read ( )return array The current row, false if no more row available

db\DataReader nextResult()

nextResult() public method Advances the reader to the next result when reading the results of a batch of statements. This method is only useful when there are multiple result sets returned by the query. Not all DBMS support this feature. public boolean nextResult ( )return boolean Returns true on success or false on failure.

db\DataReader next()

next() public method Moves the internal pointer to the next row. This method is required by the interface Iterator. public void next ( )

db\DataReader key()

key() public method Returns the index of the current row. This method is required by the interface Iterator. public integer key ( )return integer The index of the current row.

db\DataReader getRowCount()

getRowCount() public method Returns the number of rows in the result set. Note, most DBMS may not give a meaningful count. In this case, use "SELECT COUNT(*) FROM tableName" to obtain the number of rows. public integer getRowCount ( )return integer Number of rows contained in the result.

db\DataReader getIsClosed()

getIsClosed() public method Whether the reader is closed or not. public boolean getIsClosed ( )return boolean Whether the reader is closed or not.

db\DataReader getColumnCount()

getColumnCount() public method Returns the number of columns in the result set. Note, even there's no row in the reader, this still gives correct column number. public integer getColumnCount ( )return integer The number of columns in the result set.

db\DataReader current()

current() public method Returns the current row. This method is required by the interface Iterator. public mixed current ( )return mixed The current row.

db\DataReader count()

count() public method Returns the number of rows in the result set. This method is required by the Countable interface. Note, most DBMS may not give a meaningful count. In this case, use "SELECT COUNT(*) FROM tableName" to obtain the number of rows. public integer count ( )return integer Number of rows contained in the result.