kexi

KexiDB::MySqlPreparedStatement Class Reference

#include <mysqlpreparedstatement.h>

Inheritance diagram for KexiDB::MySqlPreparedStatement:
KexiDB::PreparedStatement

Public Member Functions

 MySqlPreparedStatement (StatementType type, ConnectionInternal &conn, FieldList &fields)
virtual bool execute ()
Public Member Functions inherited from KexiDB::PreparedStatement
 PreparedStatement (StatementType type, ConnectionInternal &conn, FieldList &fields, const TQStringList &where=TQStringList())
PreparedStatement & operator<< (const TQVariant &value)
void clearArguments ()

Public Attributes

TQCString m_tempStatementString
bool m_resetRequired: 1

Protected Member Functions

bool init ()
void done ()
Protected Member Functions inherited from KexiDB::PreparedStatement
TQCString generateStatementString ()

Additional Inherited Members

Public Types inherited from KexiDB::PreparedStatement
enum  StatementType { SelectStatement , InsertStatement }
typedef TDESharedPtr< PreparedStatement > Ptr
Protected Attributes inherited from KexiDB::PreparedStatement
StatementType m_type
FieldList * m_fields
TQValueList< TQVariant > m_args
TQStringList * m_where
Field::List * m_whereFields

Detailed Description

Implementation of prepared statements for MySQL driver.

Definition at line 33 of file mysqlpreparedstatement.h.

Constructor & Destructor Documentation

◆ MySqlPreparedStatement()

MySqlPreparedStatement::MySqlPreparedStatement ( StatementType type,
ConnectionInternal & conn,
FieldList & fields )

Definition at line 29 of file mysqlpreparedstatement.cpp.

◆ ~MySqlPreparedStatement()

MySqlPreparedStatement::~MySqlPreparedStatement ( )
virtual

Definition at line 78 of file mysqlpreparedstatement.cpp.

Member Function Documentation

◆ done()

void MySqlPreparedStatement::done ( )
protected

Definition at line 83 of file mysqlpreparedstatement.cpp.

◆ execute()

bool MySqlPreparedStatement::execute ( )
virtual

Executes the prepared statement. In most cases you will need to clear arguments after executing, using clearArguments(). A number arguments set up for the statement must be the same as a number of fields defined in the underlying database table.

Returns
false on failure. Detailed error status can be obtained from KexiDB::Connection object used to create this statement.

Implements KexiDB::PreparedStatement.

Definition at line 105 of file mysqlpreparedstatement.cpp.

◆ init()

bool MySqlPreparedStatement::init ( )
protected

Definition at line 49 of file mysqlpreparedstatement.cpp.

Member Data Documentation

◆ m_resetRequired

bool KexiDB::MySqlPreparedStatement::m_resetRequired

Definition at line 49 of file mysqlpreparedstatement.h.

◆ m_tempStatementString

TQCString KexiDB::MySqlPreparedStatement::m_tempStatementString

Definition at line 42 of file mysqlpreparedstatement.h.


The documentation for this class was generated from the following files: