Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

MysqlPreparedStatement Class Reference

#include <MysqlPreparedStatement.h>

Inheritance diagram for MysqlPreparedStatement:

PreparedStatement DatabaseErrorReporter DatabaseStringConverter List of all members.

Public Member Functions

 MysqlPreparedStatement ()
 MysqlPreparedStatement (MYSQL_STMT *pStatement)
virtual ~MysqlPreparedStatement ()
virtual void Close ()
 Close the result set (call DatabaseLayer::ClosePreparedStatement() instead on the statement).
void AddPreparedStatement (MYSQL_STMT *pStatement)
virtual void SetParamInt (int nPosition, int nValue)
 Set the parameter at the 1-based position to an int value.
virtual void SetParamDouble (int nPosition, double dblValue)
 Set the parameter at the 1-based position to a double value.
virtual void SetParamString (int nPosition, const wxString &strValue)
 Set the parameter at the 1-based position to a wxString value.
virtual void SetParamNull (int nPosition)
 Set the parameter at the 1-based position to a NULL value.
virtual void SetParamBlob (int nPosition, const void *pData, long nDataLength)
 Set the parameter at the 1-based position to a Blob value.
virtual void SetParamDate (int nPosition, const wxDateTime &dateValue)
 Set the parameter at the 1-based position to a wxDateTime value.
virtual void SetParamBool (int nPosition, bool bValue)
 Set the parameter at the 1-based position to a boolean value.
virtual int GetParameterCount ()
virtual void RunQuery ()
 Run an insert, update, or delete query on the database.
virtual DatabaseResultSetRunQueryWithResults ()
 Run an insert, update, or delete query on the database.

Constructor & Destructor Documentation

MysqlPreparedStatement::MysqlPreparedStatement  ) 
 

Definition at line 5 of file MysqlPreparedStatement.cpp.

MysqlPreparedStatement::MysqlPreparedStatement MYSQL_STMT *  pStatement  ) 
 

Definition at line 11 of file MysqlPreparedStatement.cpp.

References AddPreparedStatement().

MysqlPreparedStatement::~MysqlPreparedStatement  )  [virtual]
 

Definition at line 17 of file MysqlPreparedStatement.cpp.

References Close().


Member Function Documentation

void MysqlPreparedStatement::AddPreparedStatement MYSQL_STMT *  pStatement  ) 
 

Definition at line 42 of file MysqlPreparedStatement.cpp.

References DatabaseStringConverter::GetEncoding(), and DatabaseStringConverter::SetEncoding().

Referenced by MysqlPreparedStatement(), and MysqlDatabaseLayer::PrepareStatement().

void MysqlPreparedStatement::Close  )  [virtual]
 

Close the result set (call DatabaseLayer::ClosePreparedStatement() instead on the statement).

Implements PreparedStatement.

Definition at line 23 of file MysqlPreparedStatement.cpp.

References PreparedStatement::CloseResultSets().

Referenced by ~MysqlPreparedStatement().

int MysqlPreparedStatement::GetParameterCount  )  [virtual]
 

Implements PreparedStatement.

Definition at line 114 of file MysqlPreparedStatement.cpp.

References MysqlPreparedStatementWrapper::GetParameterCount().

void MysqlPreparedStatement::RunQuery  )  [virtual]
 

Run an insert, update, or delete query on the database.

Implements PreparedStatement.

Definition at line 128 of file MysqlPreparedStatement.cpp.

References DATABASE_LAYER_OK, MysqlPreparedStatementWrapper::RunQuery(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().

DatabaseResultSet * MysqlPreparedStatement::RunQueryWithResults  )  [virtual]
 

Run an insert, update, or delete query on the database.

Implements PreparedStatement.

Definition at line 147 of file MysqlPreparedStatement.cpp.

References DATABASE_LAYER_OK, DatabaseErrorReporter::GetErrorCode(), DatabaseErrorReporter::GetErrorMessage(), PreparedStatement::LogResultSetForCleanup(), MysqlPreparedStatementWrapper::RunQuery(), MysqlPreparedStatementWrapper::RunQueryWithResults(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().

void MysqlPreparedStatement::SetParamBlob int  nPosition,
const void *  pData,
long  nDataLength
[virtual]
 

Set the parameter at the 1-based position to a Blob value.

Implements PreparedStatement.

Definition at line 87 of file MysqlPreparedStatement.cpp.

References MysqlPreparedStatementWrapper::SetParam().

void MysqlPreparedStatement::SetParamBool int  nPosition,
bool  bValue
[virtual]
 

Set the parameter at the 1-based position to a boolean value.

Implements PreparedStatement.

Definition at line 105 of file MysqlPreparedStatement.cpp.

References MysqlPreparedStatementWrapper::SetParam().

void MysqlPreparedStatement::SetParamDate int  nPosition,
const wxDateTime &  dateValue
[virtual]
 

Set the parameter at the 1-based position to a wxDateTime value.

Implements PreparedStatement.

Definition at line 96 of file MysqlPreparedStatement.cpp.

References MysqlPreparedStatementWrapper::SetParam().

void MysqlPreparedStatement::SetParamDouble int  nPosition,
double  dblValue
[virtual]
 

Set the parameter at the 1-based position to a double value.

Implements PreparedStatement.

Definition at line 60 of file MysqlPreparedStatement.cpp.

References MysqlPreparedStatementWrapper::SetParam().

void MysqlPreparedStatement::SetParamInt int  nPosition,
int  nValue
[virtual]
 

Set the parameter at the 1-based position to an int value.

Implements PreparedStatement.

Definition at line 51 of file MysqlPreparedStatement.cpp.

References MysqlPreparedStatementWrapper::SetParam().

void MysqlPreparedStatement::SetParamNull int  nPosition  )  [virtual]
 

Set the parameter at the 1-based position to a NULL value.

Implements PreparedStatement.

Definition at line 78 of file MysqlPreparedStatement.cpp.

References MysqlPreparedStatementWrapper::SetParam().

void MysqlPreparedStatement::SetParamString int  nPosition,
const wxString &  strValue
[virtual]
 

Set the parameter at the 1-based position to a wxString value.

Implements PreparedStatement.

Definition at line 69 of file MysqlPreparedStatement.cpp.

References MysqlPreparedStatementWrapper::SetParam().


The documentation for this class was generated from the following files:
Generated on Sat May 13 17:31:35 2006 for databaselayer by  doxygen 1.4.1