Version: 1.0.0
wxMysqlPreparedStatementWrapper Class Reference

#include <mysql_preparedstatement_wrapper.h>

+ Inheritance diagram for wxMysqlPreparedStatementWrapper:

Detailed Description

Definition at line 9 of file mysql_preparedstatement_wrapper.h.

Public Member Functions

 wxMysqlPreparedStatementWrapper (wxMysqlDynamicInterface *pInterface, MYSQL_STMT *pStatement)
 
virtual ~wxMysqlPreparedStatementWrapper ()
 
void Close ()
 
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

wxMysqlDynamicInterfacem_pInterface
 
MYSQL_STMT * m_pStatement
 
wxMysqlPreparedStatementParameterCollection 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

◆ wxMysqlPreparedStatementWrapper()

wxMysqlPreparedStatementWrapper::wxMysqlPreparedStatementWrapper ( wxMysqlDynamicInterface pInterface,
MYSQL_STMT *  pStatement 
)

◆ ~wxMysqlPreparedStatementWrapper()

virtual wxMysqlPreparedStatementWrapper::~wxMysqlPreparedStatementWrapper ( )
virtual

Member Function Documentation

◆ Close()

void wxMysqlPreparedStatementWrapper::Close ( )

◆ GetParameterCount()

int wxMysqlPreparedStatementWrapper::GetParameterCount ( )

◆ RunQuery()

int wxMysqlPreparedStatementWrapper::RunQuery ( )

◆ RunQueryWithResults()

wxDatabaseResultSet* wxMysqlPreparedStatementWrapper::RunQueryWithResults ( )

◆ SetParam() [1/7]

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

◆ SetParam() [2/7]

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

◆ SetParam() [3/7]

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

◆ SetParam() [4/7]

void wxMysqlPreparedStatementWrapper::SetParam ( int  nPosition)

◆ SetParam() [5/7]

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

◆ SetParam() [6/7]

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

◆ SetParam() [7/7]

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

Member Data Documentation

◆ m_Parameters

wxMysqlPreparedStatementParameterCollection wxMysqlPreparedStatementWrapper::m_Parameters
private

Definition at line 37 of file mysql_preparedstatement_wrapper.h.

◆ m_pInterface

wxMysqlDynamicInterface* wxMysqlPreparedStatementWrapper::m_pInterface
private

Definition at line 34 of file mysql_preparedstatement_wrapper.h.

◆ m_pStatement

MYSQL_STMT* wxMysqlPreparedStatementWrapper::m_pStatement
private

Definition at line 35 of file mysql_preparedstatement_wrapper.h.