Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MCDBResultSet Class Reference

Representation of a result of executing a SQL statement. More...

#include <mcllib/db/MCDBResultSet.h>

Inheritance diagram for MCDBResultSet:

MCBase List of all members.

Public Member Functions

mcllib::mcint32 findColumn (const mcllib::MCString &columnName) const
 Get the column index for a named column.
mcllib::MCVariantType get (mcllib::mcint32 columnIndex)
 Get data (column) value for a column index.
mcllib::MCVariantType get (const mcllib::MCString &columnName)
 Get data (column) value for a named column.
MCDBResultSetMetaData getMetaData () const
 Get meta data for the result set.
mcllib::mcint64 getRow ()
 Get the row number of the current row.
mcllib::mcint64 getRowCount ()
 Get the row count or -1 if the row count is unknown.
bool next ()
 Get the next row in the result set.
 ~MCDBResultSet ()
 Free any resources in the result set.

Friends

class MCSqlStatement

Detailed Description

Representation of a result of executing a SQL statement.

Use MCDBConnection::execute() to determine if an executed statement was a query or an update statement, and use the appropriate methods on the result set.


Member Function Documentation

bool next  ) 
 

Get the next row in the result set.

Return false when no more rows


Generated on Wed Jan 12 19:05:51 2005 for MCLLIB by  doxygen 1.3.9.1