CL_DBCommand Class Reference
[clanDatabase System]

Database command. More...

#include <db_command.h>

List of all members.

Construction

enum  Type { stored_procedure, sql_statement }
 CL_DBCommand ()
 Constructs a database command.
 CL_DBCommand (const CL_SharedPtr< CL_DBCommand_Impl > &impl)
 Constructs a DBCommand.
 ~CL_DBCommand ()

Public Member Functions

Attributes
int get_input_parameter_column (const CL_StringRef &name) const
 Returns the index for a given input parameter name.
int get_output_last_insert_rowid () const
 Returns the output parameter containing the row id of the last inserted row.
CL_DBCommandProviderget_provider ()
 Returns the provider interface for this command.
Operations
void set_input_parameter_string (int index, const CL_StringRef &value)
 Sets the specified input parameter index from a string value.
void set_input_parameter_bool (int index, bool value)
 Sets the specified input parameter index from a boolean value.
void set_input_parameter_int (int index, int value)
 Sets the specified input parameter index from an integer value.
void set_input_parameter_double (int index, double value)
 Sets the specified input parameter index from a double value.
void set_input_parameter_datetime (int index, const CL_DateTime &value)
 Sets the specified input parameter index from a CL_DateTime value.
void set_input_parameter_binary (int index, const CL_DataBuffer &value)
 Sets the specified input parameter index from a CL_DataBuffer value.


Detailed Description

Database command.


Member Enumeration Documentation

enum CL_DBCommand::Type
 

Enumerator:
stored_procedure 
sql_statement 


Constructor & Destructor Documentation

CL_DBCommand::CL_DBCommand  ) 
 

Constructs a database command.

CL_DBCommand::CL_DBCommand const CL_SharedPtr< CL_DBCommand_Impl > &  impl  ) 
 

Constructs a DBCommand.

Parameters:
CL_DBCommand_Impl = Shared Ptr

CL_DBCommand::~CL_DBCommand  ) 
 


Member Function Documentation

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_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.


The documentation for this class was generated from the following file:
Generated on Thu Dec 3 02:39:35 2009 for ClanLib by  doxygen 1.4.6