#include <SQLBundleStore.h>
Inheritance diagram for dtn::SQLBundleStore:
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. | |
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. |
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
Bundle* dtn::SQLBundleStore::get | ( | int | bundle_id | ) |
Virtual methods inheritied from 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 | ) |
SQLStore* dtn::SQLBundleStore::store_ [private] |
The SQLStore instance used to store all the bundles.
Definition at line 58 of file SQLBundleStore.h.