dtn::SQLRegistrationStore Class Reference

Implementation of RegistrationStore that uses an underlying SQL database. More...

#include <SQLRegistrationStore.h>

Inheritance diagram for dtn::SQLRegistrationStore:

dtn::RegistrationStore

List of all members.

Public Member Functions

 SQLRegistrationStore (oasys::SQLImplementation *impl, const char *table_name="registration")
 Constructor.
virtual ~SQLRegistrationStore ()
 Destructor.
virtual void load (RegistrationList *reg_list)
 Load in the whole database of registrations, populating the given list.
virtual bool add (Registration *reg)
 Add a new registration to the database.
virtual bool del (Registration *reg)
 Remove the registration from the database, returns true if successful, false on error.
virtual bool update (Registration *reg)
 Update the registration in the database.

Protected Attributes

SQLStorestore_


Detailed Description

Implementation of RegistrationStore that uses an underlying SQL database.

Definition at line 33 of file SQLRegistrationStore.h.


Constructor & Destructor Documentation

dtn::SQLRegistrationStore::SQLRegistrationStore ( oasys::SQLImplementation *  impl,
const char *  table_name = "registration" 
)

Constructor.

virtual dtn::SQLRegistrationStore::~SQLRegistrationStore (  )  [virtual]

Destructor.


Member Function Documentation

virtual bool dtn::SQLRegistrationStore::add ( Registration reg  )  [virtual]

Add a new registration to the database.

Returns true if the registration is successfully added, false on error.

virtual bool dtn::SQLRegistrationStore::del ( Registration reg  )  [virtual]

Remove the registration from the database, returns true if successful, false on error.

virtual void dtn::SQLRegistrationStore::load ( RegistrationList reg_list  )  [virtual]

Load in the whole database of registrations, populating the given list.

virtual bool dtn::SQLRegistrationStore::update ( Registration reg  )  [virtual]

Update the registration in the database.

Returns true on success, false if there's no matching registration or on error.


Member Data Documentation

Definition at line 71 of file SQLRegistrationStore.h.


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

Generated on Fri Jan 30 09:43:15 2009 for DTN Reference Implementation by  doxygen 1.5.8