Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

db_creator< T > Class Template Reference

db creator More...

#include <db.h>

Inheritance diagram for db_creator< T >:

proto_creator< T, db_entry, db_arg >

List of all members.

Static Public Member Functions

static void activate (db_entry *obj, const db_arg &arg)
 activates object nothing to do
static bool find (db_entry *obj, const db_arg &arg)
 finds object
static void back (db_entry *obj, const db_arg &arg)
 backing object
static void destroy (db_entry *obj, const db_arg &arg)
 destroys object
static void deactivate (db_entry *obj, const db_arg &arg)
 deactivates object - nothing to do


Detailed Description

template<class T>
class db_creator< T >

db creator

Definition at line 1517 of file db.h.


Member Function Documentation

template<class T>
void db_creator< T >::activate ( db_entry obj,
const db_arg arg 
) [inline, static]

activates object nothing to do

activates object nothing to do

Parameters:
obj  object pointer

Reimplemented from proto_creator< T, db_entry, db_arg >.

Definition at line 624 of file db.hpp.

References db_arg::_login_string, db_entry::_obj, db_arg::_trusted, dbserver::connect(), and dbserver::is_connect().

template<class T>
bool db_creator< T >::find ( db_entry obj,
const db_arg arg 
) [inline, static]

finds object

Parameters:
obj  object pointer

Reimplemented from proto_creator< T, db_entry, db_arg >.

Definition at line 636 of file db.hpp.

template<class T>
void db_creator< T >::back ( db_entry obj,
const db_arg arg 
) [inline, static]

backing object

Parameters:
obj  object pointer

Reimplemented from proto_creator< T, db_entry, db_arg >.

Definition at line 647 of file db.hpp.

References db_entry::_obj, dbserver::close_sql(), dbserver::is_in_transaction(), dbserver::is_open_sql(), and dbserver::rollback().

Referenced by db_creator< T >::deactivate().

template<class T>
void db_creator< T >::destroy ( db_entry obj,
const db_arg arg 
) [inline, static]

destroys object

Parameters:
obj  object pointer

Reimplemented from proto_creator< T, db_entry, db_arg >.

Definition at line 664 of file db.hpp.

References db_entry::_obj, and db_creator< T >::deactivate().

template<class T>
void db_creator< T >::deactivate ( db_entry obj,
const db_arg arg 
) [inline, static]

deactivates object - nothing to do

Parameters:
obj  object pointer

Reimplemented from proto_creator< T, db_entry, db_arg >.

Definition at line 679 of file db.hpp.

References db_entry::_obj, db_creator< T >::back(), dbserver::disconnect(), and dbserver::is_connect().

Referenced by db_creator< T >::destroy().


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


© Copyright Terimber 2003-.