CL_DBCommand Class Reference
[clanDatabase System]

Database command. More...

#include <db_command.h>

List of all members.

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.
template<class ValueType >
void set_input_parameter (int index, ValueType value)
 Sets the specified input parameter index from a value.
template<class ValueType >
void set_input_parameter (const CL_StringRef &name, ValueType value)
 Sets the specified input parameter name from a value.

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 ()

Detailed Description

Database command.


Member Enumeration Documentation

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

template<class ValueType >
void CL_DBCommand::set_input_parameter ( const CL_StringRef name,
ValueType  value 
)

Sets the specified input parameter name from a value.

template<class ValueType >
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_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: