dtn::SQLRegistrationStore Class Reference

#include <SQLRegistrationStore.h>

Inheritance diagram for dtn::SQLRegistrationStore:

dtn::RegistrationStore oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType > oasys::Logger List of all members.

Detailed Description

Implementation of RegistrationStore that uses an underlying SQL database.

Definition at line 33 of file SQLRegistrationStore.h.

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_


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 void dtn::SQLRegistrationStore::load ( RegistrationList reg_list  )  [virtual]

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

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 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

SQLStore* dtn::SQLRegistrationStore::store_ [protected]

Definition at line 71 of file SQLRegistrationStore.h.


The documentation for this class was generated from the following file:
Generated on Thu Jun 7 16:56:59 2007 for DTN Reference Implementation by  doxygen 1.5.1