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

OraclePreparedStatement Class Reference

#include <OraclePreparedStatement.h>

Inheritance diagram for OraclePreparedStatement:

PreparedStatement DatabaseErrorReporter DatabaseStringConverter List of all members.

Public Member Functions

 OraclePreparedStatement (oracle::occi::Environment *pEnvironment)
 OraclePreparedStatement (oracle::occi::Environment *pEnvironment, oracle::occi::Statement *pStatement)
virtual ~OraclePreparedStatement ()
virtual void Close ()
 Close the result set (call DatabaseLayer::ClosePreparedStatement() instead on the statement).
void AddStatement (oracle::occi::Statement *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

OraclePreparedStatement::OraclePreparedStatement oracle::occi::Environment *  pEnvironment  ) 
 

Definition at line 8 of file OraclePreparedStatement.cpp.

OraclePreparedStatement::OraclePreparedStatement oracle::occi::Environment *  pEnvironment,
oracle::occi::Statement *  pStatement
 

Definition at line 13 of file OraclePreparedStatement.cpp.

References AddStatement().

OraclePreparedStatement::~OraclePreparedStatement  )  [virtual]
 

Definition at line 19 of file OraclePreparedStatement.cpp.

References Close().


Member Function Documentation

void OraclePreparedStatement::AddStatement oracle::occi::Statement *  pStatement  ) 
 

Definition at line 47 of file OraclePreparedStatement.cpp.

Referenced by OraclePreparedStatement(), and OracleDatabaseLayer::PrepareStatement().

void OraclePreparedStatement::Close  )  [virtual]
 

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

Implements PreparedStatement.

Definition at line 24 of file OraclePreparedStatement.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().

Referenced by ~OraclePreparedStatement().

int OraclePreparedStatement::GetParameterCount  )  [virtual]
 

Implements PreparedStatement.

Definition at line 187 of file OraclePreparedStatement.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().

void OraclePreparedStatement::RunQuery  )  [virtual]
 

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

Implements PreparedStatement.

Definition at line 214 of file OraclePreparedStatement.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().

DatabaseResultSet * OraclePreparedStatement::RunQueryWithResults  )  [virtual]
 

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

Implements PreparedStatement.

Definition at line 235 of file OraclePreparedStatement.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().

void OraclePreparedStatement::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 128 of file OraclePreparedStatement.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().

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

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

Implements PreparedStatement.

Definition at line 169 of file OraclePreparedStatement.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().

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

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

Implements PreparedStatement.

Definition at line 149 of file OraclePreparedStatement.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().

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

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

Implements PreparedStatement.

Definition at line 72 of file OraclePreparedStatement.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().

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

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

Implements PreparedStatement.

Definition at line 54 of file OraclePreparedStatement.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().

void OraclePreparedStatement::SetParamNull int  nPosition  )  [virtual]
 

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

Implements PreparedStatement.

Definition at line 110 of file OraclePreparedStatement.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().

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

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

Implements PreparedStatement.

Definition at line 90 of file OraclePreparedStatement.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream(), DatabaseStringConverter::ConvertToUnicodeStream(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().


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