Version: 1.0.0
wxPostgresPreparedStatementWrapper Class Reference

#include <postgresql_preparedstatement_wrapper.h>

+ Inheritance diagram for wxPostgresPreparedStatementWrapper:

Detailed Description

Definition at line 9 of file postgresql_preparedstatement_wrapper.h.

Public Member Functions

 wxPostgresPreparedStatementWrapper (wxDynamicPostgresInterface *pInterface, PGconn *pDatabase, const wxString &strSQL, const wxString &strStatementName)
 
virtual ~wxPostgresPreparedStatementWrapper ()
 
void SetParam (int nPosition, int nValue)
 
void SetParam (int nPosition, double dblValue)
 
void SetParam (int nPosition, const wxString &strValue)
 
void SetParam (int nPosition)
 
void SetParam (int nPosition, const void *pData, long nDataLength)
 
void SetParam (int nPosition, const wxDateTime &dateValue)
 
void SetParam (int nPosition, bool bValue)
 
int GetParameterCount ()
 
int RunQuery ()
 
wxDatabaseResultSetRunQueryWithResults ()
 
- Public Member Functions inherited from wxDatabaseErrorReporter
 wxDatabaseErrorReporter ()
 
virtual ~wxDatabaseErrorReporter ()
 
const wxString & GetErrorMessage ()
 
int GetErrorCode ()
 
void ResetErrorCodes ()
 
- Public Member Functions inherited from wxDatabaseStringConverter
 wxDatabaseStringConverter ()
 
 wxDatabaseStringConverter (const wxChar *charset)
 
virtual ~wxDatabaseStringConverter ()
 
void SetEncoding (wxFontEncoding encoding)
 
void SetEncoding (const wxCSConv *conv)
 
const wxCSConv * GetEncoding ()
 
virtual const wxCharBuffer ConvertToUnicodeStream (const wxString &inputString)
 
virtual size_t GetEncodedStreamLength (const wxString &inputString)
 
virtual wxString ConvertFromUnicodeStream (const char *inputBuffer)
 
virtual wxString ConvertFromUnicodeStream (const wxChar *inputBuffer)
 

Private Attributes

wxDynamicPostgresInterfacem_pInterface
 
PGconn * m_pDatabase
 
wxString m_strSQL
 
wxString m_strStatementName
 
wxPostgresPreparedStatementParameterCollection m_Parameters
 

Additional Inherited Members

- Static Public Member Functions inherited from wxDatabaseStringConverter
static const wxCharBuffer ConvertToUnicodeStream (const wxString &inputString, const char *encoding)
 
static wxString ConvertFromUnicodeStream (const char *inputBuffer, const char *encoding)
 
static size_t GetEncodedStreamLength (const wxString &inputString, const char *encoding)
 
static wxString ConvertFromUnicodeStream (const wxChar *inputBuffer, const char *encoding)
 
- Protected Member Functions inherited from wxDatabaseErrorReporter
void SetErrorMessage (const wxString &strErrorMessage)
 
void SetErrorCode (int nErrorCode)
 
void ThrowDatabaseException ()
 

Constructor & Destructor Documentation

◆ wxPostgresPreparedStatementWrapper()

wxPostgresPreparedStatementWrapper::wxPostgresPreparedStatementWrapper ( wxDynamicPostgresInterface pInterface,
PGconn *  pDatabase,
const wxString &  strSQL,
const wxString &  strStatementName 
)

◆ ~wxPostgresPreparedStatementWrapper()

virtual wxPostgresPreparedStatementWrapper::~wxPostgresPreparedStatementWrapper ( )
virtual

Member Function Documentation

◆ GetParameterCount()

int wxPostgresPreparedStatementWrapper::GetParameterCount ( )

◆ RunQuery()

int wxPostgresPreparedStatementWrapper::RunQuery ( )

◆ RunQueryWithResults()

wxDatabaseResultSet* wxPostgresPreparedStatementWrapper::RunQueryWithResults ( )

◆ SetParam() [1/7]

void wxPostgresPreparedStatementWrapper::SetParam ( int  nPosition,
int  nValue 
)

◆ SetParam() [2/7]

void wxPostgresPreparedStatementWrapper::SetParam ( int  nPosition,
double  dblValue 
)

◆ SetParam() [3/7]

void wxPostgresPreparedStatementWrapper::SetParam ( int  nPosition,
const wxString &  strValue 
)

◆ SetParam() [4/7]

void wxPostgresPreparedStatementWrapper::SetParam ( int  nPosition)

◆ SetParam() [5/7]

void wxPostgresPreparedStatementWrapper::SetParam ( int  nPosition,
const void *  pData,
long  nDataLength 
)

◆ SetParam() [6/7]

void wxPostgresPreparedStatementWrapper::SetParam ( int  nPosition,
const wxDateTime &  dateValue 
)

◆ SetParam() [7/7]

void wxPostgresPreparedStatementWrapper::SetParam ( int  nPosition,
bool  bValue 
)

Member Data Documentation

◆ m_Parameters

wxPostgresPreparedStatementParameterCollection wxPostgresPreparedStatementWrapper::m_Parameters
private

Definition at line 37 of file postgresql_preparedstatement_wrapper.h.

◆ m_pDatabase

PGconn* wxPostgresPreparedStatementWrapper::m_pDatabase
private

Definition at line 33 of file postgresql_preparedstatement_wrapper.h.

◆ m_pInterface

wxDynamicPostgresInterface* wxPostgresPreparedStatementWrapper::m_pInterface
private

Definition at line 32 of file postgresql_preparedstatement_wrapper.h.

◆ m_strSQL

wxString wxPostgresPreparedStatementWrapper::m_strSQL
private

Definition at line 34 of file postgresql_preparedstatement_wrapper.h.

◆ m_strStatementName

wxString wxPostgresPreparedStatementWrapper::m_strStatementName
private

Definition at line 35 of file postgresql_preparedstatement_wrapper.h.