fatalmind::SQL::Bind< VBC, CT > Class Template Reference

#include <Bind.hh>

Inherits fatalmind::SQL::BindInterface.

Inherited by fatalmind::mysql::SQLExecute, fatalmind::mysql::SQLSelect, and fatalmind::oracle::CommandCommon< TM, SLMDC >.

List of all members.


Detailed Description

template<class VBC, template< class > class CT>
class fatalmind::SQL::Bind< VBC, CT >

This class defines the common interface for all SQL* classes which do accept input data via placeholders.

Public Member Functions

template<typename T>
void bind (const unsigned int pos, const T &val, bool nul=false)
 Binds an actual input value for an placeholder in the SQL statement.
virtual void clearParameters ()
virtual void bindoutputoperator (std::ostream &str) const

Protected Types

typedef std::vector< gc_ptr
< VBC > > 
_argst

Protected Attributes

_argst _args

Member Function Documentation

template<class VBC, template< class > class CT>
template<typename T>
void fatalmind::SQL::Bind< VBC, CT >::bind ( const unsigned int  pos,
const T &  val,
bool  nul = false 
) [inline]

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. Chaning 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!

Reimplemented from fatalmind::SQL::BindInterface.


The documentation for this class was generated from the following files:

Generated on Mon Jun 9 11:27:04 2008 for ResourcePool by  doxygen 1.5.5