Savarese Software Research Corporation
database::PreparedStatement Class Reference

#include <Database.h>

List of all members.

Public Types

enum  BindPolicy { BindTransient, BindStatic }

Public Member Functions

bool expired ()
unsigned int count_parameters ()
PreparedStatementbind (const unsigned int index, const double value) SSRC_DECL_THROW(DatabaseException)
PreparedStatementbind (const unsigned int index, const int value) SSRC_DECL_THROW(DatabaseException)
PreparedStatementbind (const unsigned int index, const unsigned int value) SSRC_DECL_THROW(DatabaseException)
PreparedStatementbind (const unsigned int index, const std::int16_t value) SSRC_DECL_THROW(DatabaseException)
PreparedStatementbind (const unsigned int index, const std::uint16_t value) SSRC_DECL_THROW(DatabaseException)
PreparedStatementbind (const unsigned int index, const bool value) SSRC_DECL_THROW(DatabaseException)
PreparedStatementbind (const unsigned int index, const std::int64_t value) SSRC_DECL_THROW(DatabaseException)
PreparedStatementbind (const unsigned int index, const std::uint64_t value) SSRC_DECL_THROW(DatabaseException)
PreparedStatementbind (const unsigned int index, const long value) SSRC_DECL_THROW(DatabaseException)
PreparedStatementbind (const unsigned int index, const unsigned long value) SSRC_DECL_THROW(DatabaseException)
PreparedStatementbind (const unsigned int index, const char *const value, const unsigned int bytes, const BindPolicy policy=BindTransient) SSRC_DECL_THROW(DatabaseException)
PreparedStatementbind (const unsigned int index, const char *const value, const BindPolicy policy=BindTransient) SSRC_DECL_THROW(DatabaseException)
PreparedStatementbind (const unsigned int index, const string &value, const BindPolicy policy=BindTransient) SSRC_DECL_THROW(DatabaseException)
PreparedStatementbind (const unsigned int index, const void *value, const unsigned int bytes, const BindPolicy policy=BindTransient) SSRC_DECL_THROW(DatabaseException)
PreparedStatementbind (const unsigned int index, const blob_type &blob, const BindPolicy policy=BindTransient) SSRC_DECL_THROW(DatabaseException)
template<typename T >
PreparedStatementbind (const unsigned int index, const T &t) SSRC_DECL_THROW(DatabaseException)
PreparedStatementunbind (const unsigned int index) SSRC_DECL_THROW(DatabaseException)
PreparedStatementunbind () SSRC_DECL_THROW(DatabaseException)
void reset () SSRC_DECL_THROW(DatabaseException)
QueryResult execute () SSRC_DECL_THROW(DatabaseException)
template<typename functor >
unsigned int for_each (const functor &apply) SSRC_DECL_THROW(DatabaseException)
unsigned int count_columns ()
string column_name (const unsigned int index)
template<typename... P>
PreparedStatementbindp (const P &...p) SSRC_DECL_THROW(DatabaseException)
template<typename... P>
QueryResult execute (const P &...p) SSRC_DECL_THROW(DatabaseException)
template<typename... P, typename functor >
unsigned int for_each (const functor &apply, const P &...p) SSRC_DECL_THROW(DatabaseException)

Friends

class Database

Detailed Description

Definition at line 47 of file Database.h.


Member Enumeration Documentation

Enumerator:
BindTransient 
BindStatic 

Definition at line 62 of file Database.h.


Member Function Documentation

PreparedStatement& database::PreparedStatement::bind ( const unsigned int  index,
const double  value 
) [inline]
PreparedStatement& database::PreparedStatement::bind ( const unsigned int  index,
const int  value 
) [inline]

Definition at line 81 of file Database.h.

References database::value().

PreparedStatement& database::PreparedStatement::bind ( const unsigned int  index,
const unsigned int  value 
) [inline]

Definition at line 89 of file Database.h.

References database::value().

PreparedStatement& database::PreparedStatement::bind ( const unsigned int  index,
const std::int16_t  value 
) [inline]

Definition at line 95 of file Database.h.

References database::value().

PreparedStatement& database::PreparedStatement::bind ( const unsigned int  index,
const std::uint16_t  value 
) [inline]

Definition at line 101 of file Database.h.

References database::value().

PreparedStatement& database::PreparedStatement::bind ( const unsigned int  index,
const bool  value 
) [inline]

Definition at line 107 of file Database.h.

References database::value().

PreparedStatement& database::PreparedStatement::bind ( const unsigned int  index,
const std::int64_t  value 
) [inline]

Definition at line 115 of file Database.h.

References database::value().

PreparedStatement& database::PreparedStatement::bind ( const unsigned int  index,
const std::uint64_t  value 
) [inline]

Definition at line 124 of file Database.h.

References database::value().

PreparedStatement& database::PreparedStatement::bind ( const unsigned int  index,
const long  value 
) [inline]

Definition at line 131 of file Database.h.

References database::value().

PreparedStatement& database::PreparedStatement::bind ( const unsigned int  index,
const unsigned long  value 
) [inline]

Definition at line 140 of file Database.h.

References database::value().

PreparedStatement& database::PreparedStatement::bind ( const unsigned int  index,
const char *const  value,
const unsigned int  bytes,
const BindPolicy  policy = BindTransient 
) [inline]

Definition at line 147 of file Database.h.

References database::value().

PreparedStatement& database::PreparedStatement::bind ( const unsigned int  index,
const char *const  value,
const BindPolicy  policy = BindTransient 
) [inline]

Definition at line 160 of file Database.h.

PreparedStatement& database::PreparedStatement::bind ( const unsigned int  index,
const string &  value,
const BindPolicy  policy = BindTransient 
) [inline]

Definition at line 167 of file Database.h.

PreparedStatement& database::PreparedStatement::bind ( const unsigned int  index,
const void *  value,
const unsigned int  bytes,
const BindPolicy  policy = BindTransient 
) [inline]

Definition at line 174 of file Database.h.

References database::value().

PreparedStatement& database::PreparedStatement::bind ( const unsigned int  index,
const blob_type blob,
const BindPolicy  policy = BindTransient 
) [inline]

Definition at line 186 of file Database.h.

template<typename T >
PreparedStatement& database::PreparedStatement::bind ( const unsigned int  index,
const T &  t 
) [inline]

Definition at line 202 of file Database.h.

template<typename... P>
PreparedStatement& database::PreparedStatement::bindp ( const P &...  p) [inline]

Definition at line 289 of file Database.h.

string database::PreparedStatement::column_name ( const unsigned int  index) [inline]

Definition at line 258 of file Database.h.

unsigned int database::PreparedStatement::count_columns ( ) [inline]

Definition at line 254 of file Database.h.

unsigned int database::PreparedStatement::count_parameters ( ) [inline]

Definition at line 68 of file Database.h.

QueryResult database::PreparedStatement::execute ( ) [inline]
template<typename... P>
QueryResult database::PreparedStatement::execute ( const P &...  p) [inline]

Definition at line 294 of file Database.h.

bool database::PreparedStatement::expired ( ) [inline]

Definition at line 64 of file Database.h.

template<typename functor >
unsigned int database::PreparedStatement::for_each ( const functor &  apply) [inline]

Definition at line 244 of file Database.h.

References database::QueryResult::result_set.

template<typename... P, typename functor >
unsigned int database::PreparedStatement::for_each ( const functor &  apply,
const P &...  p 
) [inline]

Definition at line 299 of file Database.h.

void database::PreparedStatement::reset ( ) [inline]
PreparedStatement& database::PreparedStatement::unbind ( const unsigned int  index) [inline]

Definition at line 208 of file Database.h.

PreparedStatement& database::PreparedStatement::unbind ( ) [inline]

Definition at line 216 of file Database.h.


Friends And Related Function Documentation

friend class Database [friend]

Definition at line 48 of file Database.h.


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

Savarese Software Research Corporation
Copyright © 2006-2011 Savarese Software Research Corporation. All rights reserved.