Kexi API Documentation (2.0 alpha)

KexiDB::MySqlPreparedStatement Class Reference

#include <mysqlpreparedstatement.h>

Inheritance diagram for KexiDB::MySqlPreparedStatement:

KexiDB::PreparedStatement MySqlConnectionInternal KShared List of all members.

Detailed Description

Implementation of prepared statements for MySQL driver.

Definition at line 33 of file mysqlpreparedstatement.h.

Public Member Functions

 MySqlPreparedStatement (StatementType type, ConnectionInternal &conn, FieldList &fields)
virtual ~MySqlPreparedStatement ()
virtual bool execute ()

Public Attributes

QCString m_tempStatementString
bool m_resetRequired: 1

Protected Member Functions

bool init ()
void done ()


Constructor & Destructor Documentation

MySqlPreparedStatement::MySqlPreparedStatement StatementType  type,
ConnectionInternal conn,
FieldList fields
 

Definition at line 29 of file mysqlpreparedstatement.cpp.

References done(), KexiDB::PreparedStatement::generateStatementString(), init(), and m_tempStatementString.

MySqlPreparedStatement::~MySqlPreparedStatement  )  [virtual]
 

Definition at line 78 of file mysqlpreparedstatement.cpp.

References done().


Member Function Documentation

void MySqlPreparedStatement::done  )  [protected]
 

Definition at line 83 of file mysqlpreparedstatement.cpp.

Referenced by execute(), MySqlPreparedStatement(), and ~MySqlPreparedStatement().

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.

References KexiDB::_dummy, KexiDB::Field::BigInteger, KexiDB::Field::BLOB, KexiDB::Field::Boolean, KexiDB::Field::Byte, KexiDB::Field::Date, KexiDB::Field::DateTime, done(), KexiDB::Field::Double, field, KexiDB::FieldList::fieldsIterator(), KexiDB::Field::Float, init(), KexiDB::PreparedStatement::InsertStatement, KexiDB::Field::Integer, KexiDB::Field::isTextType(), KexiDBWarn, KexiDB::PreparedStatement::m_args, KexiDB::PreparedStatement::m_fields, m_resetRequired, KexiDB::PreparedStatement::m_type, KexiDB::PreparedStatement::m_whereFields, KexiDB::PreparedStatement::SelectStatement, KexiDB::Field::ShortInteger, SQLITE_DONE, SQLITE_OK, KexiDB::Field::Time, and KexiDB::Field::type().

bool MySqlPreparedStatement::init  )  [protected]
 

Definition at line 49 of file mysqlpreparedstatement.cpp.

References m_tempStatementString.

Referenced by execute(), and MySqlPreparedStatement().


Member Data Documentation

bool KexiDB::MySqlPreparedStatement::m_resetRequired
 

Definition at line 49 of file mysqlpreparedstatement.h.

Referenced by execute().

QCString KexiDB::MySqlPreparedStatement::m_tempStatementString
 

Definition at line 42 of file mysqlpreparedstatement.h.

Referenced by init(), and MySqlPreparedStatement().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:41 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003