dtn::SQLBundleStore Class Reference

#include <SQLBundleStore.h>

Inheritance diagram for dtn::SQLBundleStore:

dtn::BundleStore

List of all members.


Detailed Description

Implementation of a BundleStore that uses an underlying SQL database.

Definition at line 33 of file SQLBundleStore.h.


Public Member Functions

 SQLBundleStore (oasys::SQLImplementation *db, const char *table_name="bundles")
 Constructor -- takes as a parameter an abstract pointer to the underlying storage technology so as to implement the basic methods.
Bundleget (int bundle_id)
 Virtual methods inheritied from BundleStore.
bool insert (Bundle *bundle)
bool update (Bundle *bundle)
 Update the metabundle for the bundle.
bool del (int bundle_id)
int delete_expired (const time_t now)
bool is_custodian (int bundle_id)

Private Attributes

SQLStorestore_
 The SQLStore instance used to store all the bundles.

Constructor & Destructor Documentation

dtn::SQLBundleStore::SQLBundleStore ( oasys::SQLImplementation db,
const char *  table_name = "bundles" 
)

Constructor -- takes as a parameter an abstract pointer to the underlying storage technology so as to implement the basic methods.

The table_name identifies the table in which all bundles will be stored


Member Function Documentation

Bundle* dtn::SQLBundleStore::get ( int  bundle_id  ) 

Virtual methods inheritied from BundleStore.

bool dtn::SQLBundleStore::insert ( Bundle bundle  ) 

bool dtn::SQLBundleStore::update ( Bundle bundle  ) 

Update the metabundle for the bundle.

Reimplemented from dtn::BundleStore.

bool dtn::SQLBundleStore::del ( int  bundle_id  ) 

int dtn::SQLBundleStore::delete_expired ( const time_t  now  ) 

bool dtn::SQLBundleStore::is_custodian ( int  bundle_id  ) 


Member Data Documentation

SQLStore* dtn::SQLBundleStore::store_ [private]

The SQLStore instance used to store all the bundles.

Definition at line 58 of file SQLBundleStore.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 8 08:36:23 2007 for DTN Reference Implementation by  doxygen 1.5.3