Main | License | Installation | FAQ | Screenshots | Contact | Links | Sf.net | Freshmeat.net | KDE-Apps.org
Requirements | Design | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

Statement Class Reference
[MySQL C++ Wrappers]

#include <statement.hpp>

Inheritance diagram for Statement:

Inheritance graph
[legend]

Public Member Functions

 Statement (void)
 Empty constructor.
virtual int getNumCols (void)=0 throw (Error)
virtual std::string getColAttr (int col)=0 throw (Error)
virtual ResultRowPtr fetchRow (void)=0 throw (Error)
 Fetch row of resulting row.

Detailed Description

Abstract class for performing SQL queries and acquiring results.
See also:
Database::execQuery
Date:
Thu Mar 03 2005
Author:
Jan Wedekind (wedesoft@users.sourceforge.net)

Definition at line 31 of file statement.hpp.


Constructor & Destructor Documentation

Statement::Statement ( void   )  [inline]

Empty constructor.

Definition at line 35 of file statement.hpp.

00035 {}


Member Function Documentation

virtual int Statement::getNumCols ( void   )  throw (Error) [pure virtual]

Get number of result columns.

Returns:
Number of resulting columns of a SELECT query. 0 if there is none.

Implemented in MySQLStatement, and ODBCStatement.

virtual std::string Statement::getColAttr ( int  col  )  throw (Error) [pure virtual]

Meta information about column.

Parameters:
col Number of column (between 0 and getNumCols()-1).

Implemented in MySQLStatement, and ODBCStatement.

virtual ResultRowPtr Statement::fetchRow ( void   )  throw (Error) [pure virtual]

Fetch row of resulting row.

Implemented in MySQLStatement, and ODBCStatement.


The documentation for this class was generated from the following file:

anymeal 0.30 - recipe management software - Make the most of your food! - © Jan Wedekind Sun Sep 14 16:01:29 2008 - GNU Free Documentation License