A precompiled SQL statement that can be efficiently executed multiple times. More...
#include <SQLDatabase.h++>

Public Member Functions | |
| ~PreparedStatement () throw () | |
| Destructor. | |
| void | reset () throw (SQLException) |
| Reset the statement so that it can be executed again. | |
| String | toSQL () throw (SQLException) |
| Get the SQL statement represented by this PreparedStatement. | |
| void | bind (uint_t index) throw (SQLException) |
| Bind a null value to the designated parameter in the statement. | |
| void | bind (const String &name) throw (SQLException) |
| Bind a null value to the designated parameter in the statement. | |
| void | bind (uint_t index, int value) throw (SQLException) |
| Bind an integer value to the designated parameter in the statement. | |
| void | bind (const String &name, int value) throw (SQLException) |
| Bind an integer value to the designated parameter in the statement. | |
| void | bind (uint_t index, const int64_t &value) throw (SQLException) |
| Bind a 64-bit integer value to the designated parameter in the statement. | |
| void | bind (const String &name, const int64_t &value) throw (SQLException) |
| Bind a 64-bit integer value to the designated parameter in the statement. | |
| void | bind (uint_t index, const double &value) throw (SQLException) |
| Bind a double-precision floating point value to the designated parameter in the statement. | |
| void | bind (const String &name, const double &value) throw (SQLException) |
| Bind a double-precision floating point value to the designated parameter in the statement. | |
| void | bind (uint_t index, const String &value) throw (SQLException) |
| Bind a String value to the designated parameter in the statement. | |
| void | bind (const String &name, const String &value) throw (SQLException) |
| Bind a String value to the designated parameter in the statement. | |
| void | bind (uint_t index, const Blob &value) throw (SQLException) |
| Bind a Blob value to the designated parameter in the statement. | |
| void | bind (const String &name, const Blob &value) throw (SQLException) |
| Bind a Blob value to the designated parameter in the statement. | |
| void | clear () throw (SQLException) |
| Clear the parameter value bindings for the statement. | |
| uint_t | getParameterCount () throw (SQLException) |
| Returns the number of parameters in the statement. | |
| SharedPtr< ResultSet > | execute () throw (SQLException, InterruptedException) |
| Execute the statement. | |
Friends | |
| class | SQLDatabase |
| class | ResultSet |
A precompiled SQL statement that can be efficiently executed multiple times.
| ~PreparedStatement | ( | ) | throw () |
Destructor.
| void bind | ( | const String & | name, | |
| const Blob & | value | |||
| ) | throw (SQLException) |
Bind a Blob value to the designated parameter in the statement.
| name | The name of the parameter. | |
| value | The value to bind. |
| SQLException | If a database error occurs. |
| void bind | ( | uint_t | index, | |
| const Blob & | value | |||
| ) | throw (SQLException) |
Bind a Blob value to the designated parameter in the statement.
| index | The index of the parameter (where 1 refers to the first parameter). | |
| value | The value to bind. |
| SQLException | If a database error occurs. |
| void bind | ( | const String & | name, | |
| const String & | value | |||
| ) | throw (SQLException) |
Bind a String value to the designated parameter in the statement.
| name | The name of the parameter. | |
| value | The value to bind. |
| SQLException | If a database error occurs. |
| void bind | ( | uint_t | index, | |
| const String & | value | |||
| ) | throw (SQLException) |
Bind a String value to the designated parameter in the statement.
| index | The index of the parameter (where 1 refers to the first parameter). | |
| value | The value to bind. |
| SQLException | If a database error occurs. |
| void bind | ( | const String & | name, | |
| const double & | value | |||
| ) | throw (SQLException) |
Bind a double-precision floating point value to the designated parameter in the statement.
| name | The name of the parameter. | |
| value | The value to bind. |
| SQLException | If a database error occurs. |
| void bind | ( | uint_t | index, | |
| const double & | value | |||
| ) | throw (SQLException) |
Bind a double-precision floating point value to the designated parameter in the statement.
| index | The index of the parameter (where 1 refers to the first parameter). | |
| value | The value to bind. |
| SQLException | If a database error occurs. |
| void bind | ( | const String & | name, | |
| const int64_t & | value | |||
| ) | throw (SQLException) |
Bind a 64-bit integer value to the designated parameter in the statement.
| name | The name of the parameter. | |
| value | The value to bind. |
| SQLException | If a database error occurs. |
| void bind | ( | uint_t | index, | |
| const int64_t & | value | |||
| ) | throw (SQLException) |
Bind a 64-bit integer value to the designated parameter in the statement.
| index | The index of the parameter (where 1 refers to the first parameter). | |
| value | The value to bind. |
| SQLException | If a database error occurs. |
| void bind | ( | const String & | name, | |
| int | value | |||
| ) | throw (SQLException) |
Bind an integer value to the designated parameter in the statement.
| name | The name of the parameter. | |
| value | The value to bind. |
| SQLException | If a database error occurs. |
| void bind | ( | uint_t | index, | |
| int | value | |||
| ) | throw (SQLException) |
Bind an integer value to the designated parameter in the statement.
| index | The index of the parameter (where 1 refers to the first parameter). | |
| value | The value to bind. |
| SQLException | If a database error occurs. |
| void bind | ( | const String & | name | ) | throw (SQLException) |
Bind a null value to the designated parameter in the statement.
| name | The name of the parameter. |
| SQLException | If a database error occurs. |
| void bind | ( | uint_t | index | ) | throw (SQLException) |
Bind a null value to the designated parameter in the statement.
| index | The index of the parameter (where 1 refers to the first parameter). |
| SQLException | If a database error occurs. |
| void clear | ( | ) | throw (SQLException) |
Clear the parameter value bindings for the statement.
| SQLException | If a database error occurs. |
| SharedPtr< ResultSet > execute | ( | ) | throw (SQLException, InterruptedException) |
Execute the statement.
| SQLException | If a database error occurs. | |
| InterruptedException | If the operation was interrupted via a call to SQLDatabase::interrupt(). |
| uint_t getParameterCount | ( | ) | throw (SQLException) |
Returns the number of parameters in the statement.
| SQLException | If a database error occurs. |
| void reset | ( | ) | throw (SQLException) |
Reset the statement so that it can be executed again.
| SQLException | If a database error occurs. |
| String toSQL | ( | ) | throw (SQLException) |
Get the SQL statement represented by this PreparedStatement.
| SQLException | If a database error occurs. |
friend class ResultSet [friend] |
friend class SQLDatabase [friend] |
1.6.3