#include <PostgresPreparedStatement.h>
Inheritance diagram for PostgresPreparedStatement:

Public Member Functions | |
| PostgresPreparedStatement () | |
| PostgresPreparedStatement (PGconn *pDatabase, const wxString &strSQL, const wxString &strStatementName) | |
| virtual | ~PostgresPreparedStatement () |
| virtual void | Close () |
| Close the result set (call DatabaseLayer::ClosePreparedStatement() instead on the statement). | |
| void | AddStatement (PGconn *pDatabase, const wxString &strSQL, const wxString &strStatementName) |
| 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 DatabaseResultSet * | RunQueryWithResults () |
| Run an insert, update, or delete query on the database. | |
Static Public Member Functions | |
| static PostgresPreparedStatement * | CreateStatement (PGconn *pDatabase, const wxString &strSQL) |
| static wxString | TranslateSQL (const wxString &strOriginalSQL) |
|
|
Definition at line 18 of file PostgresPreparedStatement.cpp. Referenced by CreateStatement(). |
|
||||||||||||||||
|
Definition at line 23 of file PostgresPreparedStatement.cpp. References AddStatement(). |
|
|
Definition at line 30 of file PostgresPreparedStatement.cpp. References Close(). |
|
||||||||||||||||
|
Definition at line 42 of file PostgresPreparedStatement.cpp. References DatabaseStringConverter::GetEncoding(), and DatabaseStringConverter::SetEncoding(). Referenced by CreateStatement(), and PostgresPreparedStatement(). |
|
|
Close the result set (call DatabaseLayer::ClosePreparedStatement() instead on the statement).
Implements PreparedStatement. Definition at line 36 of file PostgresPreparedStatement.cpp. References PreparedStatement::CloseResultSets(). Referenced by ~PostgresPreparedStatement(). |
|
||||||||||||
|
|
Implements PreparedStatement. Definition at line 154 of file PostgresPreparedStatement.cpp. |
|
|
Run an insert, update, or delete query on the database.
Implements PreparedStatement. Definition at line 166 of file PostgresPreparedStatement.cpp. References DATABASE_LAYER_OK, DatabaseErrorReporter::GetErrorCode(), DatabaseErrorReporter::GetErrorMessage(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException(). |
|
|
Run an insert, update, or delete query on the database.
Implements PreparedStatement. Definition at line 182 of file PostgresPreparedStatement.cpp. References DATABASE_LAYER_OK, DatabaseErrorReporter::GetErrorCode(), DatabaseErrorReporter::GetErrorMessage(), PreparedStatement::LogResultSetForCleanup(), PostgresPreparedStatementWrapper::RunQueryWithResults(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException(). |
|
||||||||||||||||
|
Set the parameter at the 1-based position to a Blob value.
Implements PreparedStatement. Definition at line 127 of file PostgresPreparedStatement.cpp. |
|
||||||||||||
|
Set the parameter at the 1-based position to a boolean value.
Implements PreparedStatement. Definition at line 145 of file PostgresPreparedStatement.cpp. |
|
||||||||||||
|
Set the parameter at the 1-based position to a wxDateTime value.
Implements PreparedStatement. Definition at line 136 of file PostgresPreparedStatement.cpp. |
|
||||||||||||
|
Set the parameter at the 1-based position to a double value.
Implements PreparedStatement. Definition at line 100 of file PostgresPreparedStatement.cpp. |
|
||||||||||||
|
Set the parameter at the 1-based position to an int value.
Implements PreparedStatement. Definition at line 91 of file PostgresPreparedStatement.cpp. |
|
|
Set the parameter at the 1-based position to a NULL value.
Implements PreparedStatement. Definition at line 118 of file PostgresPreparedStatement.cpp. |
|
||||||||||||
|
Set the parameter at the 1-based position to a wxString value.
Implements PreparedStatement. Definition at line 109 of file PostgresPreparedStatement.cpp. |
|
|
Definition at line 244 of file PostgresPreparedStatement.cpp. Referenced by CreateStatement(). |
1.4.1