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

P::SQLResult Class Reference
[SQL Database library]

SQL Result class. More...

#include <psqlstatement.h>

List of all members.

Public Member Functions

 SQLResult (SQLStatement &stmt)
virtual ~SQLResult ()
unsigned int columnCount () const throw ()
 Returns the number of columns in this result.

std::string columnName (unsigned int pos) const
 Returns the name of the column.

bool fetch ()
 Fetch next row.

const SQLValueoperator[] (const std::string &fieldName)
 Retrieve value by column name.

const SQLValueoperator[] (unsigned int fieldPos)
 Retrieve value by column position.


Protected Member Functions

 SQLResult (std::auto_ptr< SQLDriver::ResultHandle > handle)

Friends

class SQLStatement


Detailed Description

SQL Result class.

Definition at line 40 of file psqlstatement.h.


Constructor & Destructor Documentation

P::SQLResult::SQLResult SQLStatement stmt  ) 
 

virtual P::SQLResult::~SQLResult  )  [virtual]
 

P::SQLResult::SQLResult std::auto_ptr< SQLDriver::ResultHandle handle  )  [protected]
 


Member Function Documentation

unsigned int P::SQLResult::columnCount  )  const throw ()
 

Returns the number of columns in this result.

std::string P::SQLResult::columnName unsigned int  pos  )  const
 

Returns the name of the column.

bool P::SQLResult::fetch  ) 
 

Fetch next row.

const SQLValue& P::SQLResult::operator[] unsigned int  fieldPos  ) 
 

Retrieve value by column position.

const SQLValue& P::SQLResult::operator[] const std::string &  fieldName  ) 
 

Retrieve value by column name.


Friends And Related Function Documentation

friend class SQLStatement [friend]
 

Definition at line 41 of file psqlstatement.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 12 21:08:36 2004 for P::Classes by doxygen 1.3.3