#include <BindInterface.hh>
Inherited by fatalmind::SQL::Bind< fatalmind::mysql::SQLType, fatalmind::mysql::SQLTypeImpl< T > >, fatalmind::SQL::Bind< fatalmind::oracle::oracleType, fatalmind::oracle::oracleTypeImpl< T > >, fatalmind::SQL::Bind< VBC, CT >, fatalmind::SQL::RTSQLExecute< TM >, fatalmind::SQL::RTSQLSelect< TM >, and fatalmind::SQL::RTSQLSelectRow< TM >.
It's not possible to use this polimorphycally since the methods are not virtual (and can not be virtual since it is a member template).
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 ()=0 |
| void fatalmind::SQL::BindInterface::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.
| 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 in fatalmind::SQL::Bind< VBC, CT >, fatalmind::SQL::RTSQLExecute< TM >, fatalmind::SQL::RTSQLSelect< TM >, fatalmind::SQL::RTSQLSelectRow< TM >, fatalmind::SQL::Bind< fatalmind::oracle::oracleType, fatalmind::oracle::oracleTypeImpl< T > >, and fatalmind::SQL::Bind< fatalmind::mysql::SQLType, fatalmind::mysql::SQLTypeImpl< T > >.
1.5.5