Implementation of a BundleStore that uses an underlying SQL database. More...
#include <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. | |
| Bundle * | get (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 | |
| SQLStore * | store_ |
| The SQLStore instance used to store all the bundles. | |
Implementation of a BundleStore that uses an underlying SQL database.
Definition at line 33 of file SQLBundleStore.h.
| 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
| bool dtn::SQLBundleStore::del | ( | int | bundle_id | ) |
| int dtn::SQLBundleStore::delete_expired | ( | const time_t | now | ) |
| Bundle* dtn::SQLBundleStore::get | ( | int | bundle_id | ) |
Virtual methods inheritied from BundleStore.
| bool dtn::SQLBundleStore::is_custodian | ( | int | bundle_id | ) |
Update the metabundle for the bundle.
Reimplemented from dtn::BundleStore.
SQLStore* dtn::SQLBundleStore::store_ [private] |
The SQLStore instance used to store all the bundles.
Definition at line 58 of file SQLBundleStore.h.
1.6.3