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

OdbcPreparedStatement Class Reference

#include <OdbcPreparedStatement.h>

Inheritance diagram for OdbcPreparedStatement:

PreparedStatement DatabaseErrorReporter DatabaseStringConverter List of all members.

Public Member Functions

 OdbcPreparedStatement (SQLHENV sqlEnvHandle, SQLHDBC sqlHDBC)
 OdbcPreparedStatement (SQLHENV sqlEnvHandle, SQLHDBC sqlHDBC, SQLHSTMT sqlStatementHandle)
 OdbcPreparedStatement (SQLHENV sqlEnvHandle, SQLHDBC sqlHDBC, StatementVector statements)
virtual ~OdbcPreparedStatement ()
virtual void Close ()
 Close the result set (call DatabaseLayer::ClosePreparedStatement() instead on the statement).
void AddPreparedStatement (SQLHSTMT 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.
virtual DatabaseResultSetRunQueryWithResults (bool bLogForCleanup)
SQLHSTMT GetLastStatement ()
void SetOneTimer (bool bOneTimer=true)

Constructor & Destructor Documentation

OdbcPreparedStatement::OdbcPreparedStatement SQLHENV  sqlEnvHandle,
SQLHDBC  sqlHDBC
 

Definition at line 6 of file OdbcPreparedStatement.cpp.

OdbcPreparedStatement::OdbcPreparedStatement SQLHENV  sqlEnvHandle,
SQLHDBC  sqlHDBC,
SQLHSTMT  sqlStatementHandle
 

Definition at line 14 of file OdbcPreparedStatement.cpp.

OdbcPreparedStatement::OdbcPreparedStatement SQLHENV  sqlEnvHandle,
SQLHDBC  sqlHDBC,
StatementVector  statements
 

Definition at line 23 of file OdbcPreparedStatement.cpp.

OdbcPreparedStatement::~OdbcPreparedStatement  )  [virtual]
 

Definition at line 33 of file OdbcPreparedStatement.cpp.

References Close().


Member Function Documentation

void OdbcPreparedStatement::AddPreparedStatement SQLHSTMT  pStatement  ) 
 

Definition at line 79 of file OdbcPreparedStatement.cpp.

void OdbcPreparedStatement::Close  )  [virtual]
 

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

Implements PreparedStatement.

Definition at line 39 of file OdbcPreparedStatement.cpp.

References PreparedStatement::CloseResultSets(), and DatabaseErrorReporter::ThrowDatabaseException().

Referenced by ~OdbcPreparedStatement().

SQLHSTMT OdbcPreparedStatement::GetLastStatement  )  [inline]
 

Definition at line 57 of file OdbcPreparedStatement.h.

Referenced by OdbcResultSet::GetResultBlob(), OdbcResultSet::Next(), and OdbcResultSet::OdbcResultSet().

int OdbcPreparedStatement::GetParameterCount  )  [virtual]
 

Implements PreparedStatement.

Definition at line 141 of file OdbcPreparedStatement.cpp.

References DatabaseErrorReporter::ResetErrorCodes(), and DatabaseErrorReporter::ThrowDatabaseException().

void OdbcPreparedStatement::RunQuery  )  [virtual]
 

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

Implements PreparedStatement.

Definition at line 164 of file OdbcPreparedStatement.cpp.

References DatabaseErrorReporter::ResetErrorCodes(), and DatabaseErrorReporter::ThrowDatabaseException().

Referenced by OdbcDatabaseLayer::RunQuery().

DatabaseResultSet * OdbcPreparedStatement::RunQueryWithResults bool  bLogForCleanup  )  [virtual]
 

Definition at line 199 of file OdbcPreparedStatement.cpp.

References PreparedStatement::LogResultSetForCleanup(), DatabaseErrorReporter::ResetErrorCodes(), and DatabaseErrorReporter::ThrowDatabaseException().

DatabaseResultSet * OdbcPreparedStatement::RunQueryWithResults  )  [virtual]
 

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

Implements PreparedStatement.

Definition at line 194 of file OdbcPreparedStatement.cpp.

Referenced by OdbcDatabaseLayer::RunQueryWithResults().

void OdbcPreparedStatement::SetOneTimer bool  bOneTimer = true  )  [inline]
 

Definition at line 58 of file OdbcPreparedStatement.h.

Referenced by OdbcDatabaseLayer::RunQueryWithResults().

void OdbcPreparedStatement::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 117 of file OdbcPreparedStatement.cpp.

References DatabaseErrorReporter::ResetErrorCodes().

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

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

Implements PreparedStatement.

Definition at line 133 of file OdbcPreparedStatement.cpp.

References DatabaseErrorReporter::ResetErrorCodes().

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

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

Implements PreparedStatement.

Definition at line 125 of file OdbcPreparedStatement.cpp.

References DatabaseErrorReporter::ResetErrorCodes().

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

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

Implements PreparedStatement.

Definition at line 93 of file OdbcPreparedStatement.cpp.

References DatabaseErrorReporter::ResetErrorCodes().

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

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

Implements PreparedStatement.

Definition at line 85 of file OdbcPreparedStatement.cpp.

References DatabaseErrorReporter::ResetErrorCodes().

void OdbcPreparedStatement::SetParamNull int  nPosition  )  [virtual]
 

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

Implements PreparedStatement.

Definition at line 109 of file OdbcPreparedStatement.cpp.

References DatabaseErrorReporter::ResetErrorCodes().

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

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

Implements PreparedStatement.

Definition at line 101 of file OdbcPreparedStatement.cpp.

References DatabaseErrorReporter::ResetErrorCodes().


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