|
|
| Statement (IStatement *stmt=0) |
| |
| Statement & | clear () |
| | Set all host variables to NULL. More...
|
| |
| Statement & | setNull (const std::string &col) |
| | Set the host variable with the given name to NULL. More...
|
| |
| Statement & | setBool (const std::string &col, bool data) |
| | Set the host variable with the given name to a boolean value. More...
|
| |
| Statement & | setShort (const std::string &col, short data) |
| | Set the host variable with the given name to a short value. More...
|
| |
| Statement & | setInt (const std::string &col, int data) |
| | Set the host variable with the given name to an int value. More...
|
| |
| Statement & | setLong (const std::string &col, long data) |
| | Set the host variable with the given name to a long value. More...
|
| |
| Statement & | setUnsignedShort (const std::string &col, unsigned short data) |
| | Set the host variable with the given name to an unsigned short value. More...
|
| |
| Statement & | setUnsigned (const std::string &col, unsigned data) |
| | Set the host variable with the given name to an unsigned value. More...
|
| |
| Statement & | setUnsignedLong (const std::string &col, unsigned long data) |
| | Set the host variable with the given name to an unsigned long value. More...
|
| |
| Statement & | setInt32 (const std::string &col, int32_t data) |
| | Set the host variable with the given name to a int32_t value. More...
|
| |
| Statement & | setUnsigned32 (const std::string &col, uint32_t data) |
| | Set the host variable with the given name to a uint32_t value. More...
|
| |
| Statement & | setInt64 (const std::string &col, int64_t data) |
| | Set the host variable with the given name to a int64_t value. More...
|
| |
| Statement & | setUnsigned64 (const std::string &col, uint64_t data) |
| | Set the host variable with the given name to a uint64_t value. More...
|
| |
| Statement & | setDecimal (const std::string &col, const Decimal &data) |
| | Set the host variable with the given name to a Decimal. More...
|
| |
| Statement & | setFloat (const std::string &col, float data) |
| | Set the host variable with the given name to a float value. More...
|
| |
| Statement & | setDouble (const std::string &col, double data) |
| | Set the host variable with the given name to a double value. More...
|
| |
| Statement & | setChar (const std::string &col, char data) |
| | Set the host variable with the given name to a char value. More...
|
| |
| Statement & | setString (const std::string &col, const std::string &data) |
| | Set the host variable with the given name to a string value. More...
|
| |
| Statement & | setString (const std::string &col, const char *data) |
| | Set the host variable with the given name to a string value or null. More...
|
| |
| Statement & | setUString (const std::string &col, const cxxtools::String &data) |
| | Set the host variable with the given name to a unicode string value. More...
|
| |
| Statement & | setBlob (const std::string &col, const Blob &data) |
| | Set the host variable with the given name to a blob value. More...
|
| |
| Statement & | setDate (const std::string &col, const Date &data) |
| | Set the host variable with the given name to a date value. More...
|
| |
| Statement & | setTime (const std::string &col, const Time &data) |
| | Set the host variable with the given name to a time value. More...
|
| |
| Statement & | setDatetime (const std::string &col, const Datetime &data) |
| | Set the host variable with the given name to a datetime value. More...
|
| |
| template<typename T > |
| Statement & | set (const std::string &col, const T &data) |
| | Set the host variable with the given name to the passed value. More...
|
| |
| template<typename Iterator > |
| Statement & | set (const std::string &col, Iterator it1, Iterator it2) |
| | Set multiple numbered parameters to the values specified by the iterator range. More...
|
| |
|
template<typename Object > |
| Statement & | set (const Object &obj) |
| |
| template<typename T > |
| Statement & | setIf (const std::string &col, bool notNull, const T &data) |
| | Set the host variable with the given name to the passed value or null. More...
|
| |
| const_iterator | begin (unsigned fetchsize=100) const |
| | Create a database cursor and fetch the first row of the query result. More...
|
| |
| const_iterator | end () const |
| | Get an end iterator. More...
|
| |
| bool | operator! () const |
| | Check whether this object is associated with a real statement (true if not) More...
|
| |
| void | maxNumDelay (size_type n) |
| | Sets a buffer for delayed execution of statements. More...
|
| |
| size_type | numDelayed () const |
| | Returns the number of the currently pending statements. More...
|
| |
| size_type | flush () |
| | Executes all currently pending statements. More...
|
| |
|
| size_type | execute () |
| | Statement execution methods. More...
|
| |
| template<typename Object > |
| size_type | execute (const Object &obj) |
| | Statement execution methods. More...
|
| |
| Result | select () |
| | Execute the query and return the result. More...
|
| |
| Row | selectRow () |
| | Execute the query and return the first row of the result. More...
|
| |
| Value | selectValue () |
| | Execute the query and return the first value from the first row of the result. More...
|
| |
|
| const IStatement * | getImpl () const |
| |
| IStatement * | getImpl () |
| |
This class represents an SQL statement.
A statement can have parameters, which are referenced by name, called host variables. They are prefixed with a colon followed by a name. A name starts with a letter followed by alphanumeric characters or underscores. Host variables are not searched in strings (between apostrophes, quotation marks or backticks). A backslash prevents the interpretation of a special meaning of the following character.