fatalmind::SQL::RTSQLExecute< TM > Class Template Reference

#include <RTSQLExecute.hh>

Inherits fatalmind::SQL::BindInterface.

List of all members.


Detailed Description

template<class TM>
class fatalmind::SQL::RTSQLExecute< TM >

A command to issue a non-select statement against an SQL database.

Automatically commits if not encapsulated into a Transaction Command.

Public Member Functions

 RTSQLExecute (const ResourcePool< ResourceType< TM > > &p, const SQLStatement &sql)
 Creates a new command to issue the specified SQL statement against the passed ResourcePool.
 RTSQLExecute (const RTSQLExecute< TM > &rho)
virtual void bind (const unsigned int pos, const char &val, bool isnull=false)
 Binds an actual input value for an placeholder in the SQL statement.
virtual void bind (const unsigned int pos, const signed char &val, bool isnull=false)
virtual void bind (const unsigned int pos, const unsigned char &val, bool isnull=false)
virtual void bind (const unsigned int pos, const short int &val, bool isnull=false)
virtual void bind (const unsigned int pos, const unsigned short int &val, bool isnull=false)
virtual void bind (const unsigned int pos, const int &val, bool isnull=false)
virtual void bind (const unsigned int pos, const unsigned int &val, bool isnull=false)
virtual void bind (const unsigned int pos, const long int &val, bool isnull=false)
virtual void bind (const unsigned int pos, const unsigned long int &val, bool isnull=false)
virtual void bind (const unsigned int pos, const float &val, bool isnull=false)
virtual void bind (const unsigned int pos, const double &val, bool isnull=false)
virtual void bind (const unsigned int pos, const long double &val, bool isnull=false)
virtual void bind (const unsigned int pos, const std::string &val, bool isnull=false)
virtual void clearParameters ()
void execute (typename ResourceType< TM >::resource_t &hand)
virtual void outputoperator (std::ostream &) const
virtual const Clone * getPlainSpecializedCommand () const

Protected Member Functions

virtual Clone * DoClone () const


Member Function Documentation

template<class TM>
void fatalmind::SQL::RTSQLExecute< TM >::bind ( const unsigned int  pos,
const char &  val,
bool  isnull = false 
) [inline, virtual]

Binds an actual input value for an placeholder in the SQL statement.

All binding is done by value! This means the passed data are copied to internal storage. Changing your original copy of your data after passing it to bind() is therefore safe.

Parameters:
pos The position indicator. The number of placeholder (?) in the SQL string. Counted from the left starting at 0.
val the actual value.
nul NULL inidcator, if set to yes the actual value to be bound will be NULL. Please note that you still need to provide a valid value!

Implements fatalmind::SQL::BindInterface.


The documentation for this class was generated from the following files:
Generated on Mon Nov 9 16:21:24 2009 for ResourcePool by  doxygen 1.5.3