IStatement Class Referenceabstract

#include <Pt/Db/IStatement.h>

Prepared-statement backend.

Public Member Functions

SignalexecuteFinished ()
 Signal emitted when asynchronous execution completes.
SignalselectFinished ()
 Signal emitted when an asynchronous select completes.
long long lastInsertId () const
 Returns the generated row id of the last insert.
IConnection * connection ()
 Returns the connection that owns this statement.
virtual void clear ()=0
 Sets all host variables to NULL.
virtual void setNull (const std::string &col)=0
 Sets the host variable col to NULL.
virtual void setBool (const std::string &col, bool data)=0
 Sets the host variable col to data.
virtual void setInt (const std::string &col, int data)=0
 Sets the host variable col to data.
virtual void setUnsigned (const std::string &col, unsigned data)=0
 Sets the host variable col to data.
virtual void setFloat (const std::string &col, float data)=0
 Sets the host variable col to data.
virtual void setDouble (const std::string &col, double data)=0
 Sets the host variable col to data.
virtual void setChar (const std::string &col, char data)=0
 Sets the host variable col to data.
virtual void setString (const std::string &col, const std::string &data)=0
 Sets the host variable col to data.
virtual void setBlob (const std::string &col, const Blob &data)=0
 Sets the host variable col to data.
virtual void setDate (const std::string &col, const Date &data)=0
 Sets the host variable col to data.
virtual void setTime (const std::string &col, const Time &data)=0
 Sets the host variable col to data.
virtual void setDatetime (const std::string &col, const DateTime &data)=0
 Sets the host variable col to data.