ClanLib
2.3.7
|
Database command. More...
#include <db_command.h>
Public Member Functions | |
Attributes | |
int | get_input_parameter_column (const CL_StringRef &name) const |
Returns the index for a given input parameter name. More... | |
int | get_output_last_insert_rowid () const |
Returns the output parameter containing the row id of the last inserted row. More... | |
CL_DBCommandProvider * | get_provider () |
Returns the provider interface for this command. More... | |
Operations | |
void | set_input_parameter_string (int index, const CL_StringRef &value) |
Sets the specified input parameter index from a string value. More... | |
void | set_input_parameter_bool (int index, bool value) |
Sets the specified input parameter index from a boolean value. More... | |
void | set_input_parameter_int (int index, int value) |
Sets the specified input parameter index from an integer value. More... | |
void | set_input_parameter_double (int index, double value) |
Sets the specified input parameter index from a double value. More... | |
void | set_input_parameter_datetime (int index, const CL_DateTime &value) |
Sets the specified input parameter index from a CL_DateTime value. More... | |
void | set_input_parameter_binary (int index, const CL_DataBuffer &value) |
Sets the specified input parameter index from a CL_DataBuffer value. More... | |
template<class ValueType > | |
void | set_input_parameter (int index, ValueType value) |
Sets the specified input parameter index from a value. More... | |
template<class ValueType > | |
void | set_input_parameter (const CL_StringRef &name, ValueType value) |
Sets the specified input parameter name from a value. More... | |
Construction | |
enum | Type { stored_procedure, sql_statement } |
CL_DBCommand () | |
Constructs a database command. More... | |
CL_DBCommand (const CL_SharedPtr< CL_DBCommand_Impl > &impl) | |
Constructs a DBCommand. More... | |
~CL_DBCommand () | |
Database command.
enum CL_DBCommand::Type |
CL_DBCommand::CL_DBCommand | ( | ) |
Constructs a database command.
CL_DBCommand::CL_DBCommand | ( | const CL_SharedPtr< CL_DBCommand_Impl > & | impl) |
Constructs a DBCommand.
impl | = Shared Ptr |
CL_DBCommand::~CL_DBCommand | ( | ) |
int CL_DBCommand::get_input_parameter_column | ( | const CL_StringRef & | name) | const |
Returns the index for a given input parameter name.
int CL_DBCommand::get_output_last_insert_rowid | ( | ) | const |
Returns the output parameter containing the row id of the last inserted row.
CL_DBCommandProvider* CL_DBCommand::get_provider | ( | ) |
Returns the provider interface for this command.
void CL_DBCommand::set_input_parameter | ( | int | index, |
ValueType | value | ||
) |
Sets the specified input parameter index from a value.
void CL_DBCommand::set_input_parameter | ( | const CL_StringRef & | name, |
ValueType | value | ||
) |
Sets the specified input parameter name from a value.
void CL_DBCommand::set_input_parameter_binary | ( | int | index, |
const CL_DataBuffer & | value | ||
) |
Sets the specified input parameter index from a CL_DataBuffer value.
void CL_DBCommand::set_input_parameter_bool | ( | int | index, |
bool | value | ||
) |
Sets the specified input parameter index from a boolean value.
void CL_DBCommand::set_input_parameter_datetime | ( | int | index, |
const CL_DateTime & | value | ||
) |
Sets the specified input parameter index from a CL_DateTime value.
void CL_DBCommand::set_input_parameter_double | ( | int | index, |
double | value | ||
) |
Sets the specified input parameter index from a double value.
void CL_DBCommand::set_input_parameter_int | ( | int | index, |
int | value | ||
) |
Sets the specified input parameter index from an integer value.
void CL_DBCommand::set_input_parameter_string | ( | int | index, |
const CL_StringRef & | value | ||
) |
Sets the specified input parameter index from a string value.