IBR-DTNSuite  0.12
dtn::storage::SQLiteBundleSet::Factory Class Reference

#include <SQLiteBundleSet.h>

Inheritance diagram for dtn::storage::SQLiteBundleSet::Factory:
Inheritance graph
Collaboration diagram for dtn::storage::SQLiteBundleSet::Factory:
Collaboration graph

Public Member Functions

 Factory (SQLiteDatabase &db)
 
 ~Factory ()
 
dtn::data::BundleSetImplcreate (dtn::data::BundleSet::Listener *listener, dtn::data::Size bf_size)
 
dtn::data::BundleSetImplcreate (const std::string &name, dtn::data::BundleSet::Listener *listener, dtn::data::Size bf_size)
 

Static Public Member Functions

static size_t create (SQLiteDatabase &db) throw (SQLiteDatabase::SQLiteQueryException)
 
static size_t create (SQLiteDatabase &db, const std::string &name) throw (SQLiteDatabase::SQLiteQueryException)
 
static size_t __create (SQLiteDatabase &db, const std::string &name, bool persistent) throw (SQLiteDatabase::SQLiteQueryException)
 
static bool __exists (SQLiteDatabase &db, const std::string &name, bool persistent) throw (SQLiteDatabase::SQLiteQueryException)
 

Detailed Description

Definition at line 41 of file SQLiteBundleSet.h.

Constructor & Destructor Documentation

dtn::storage::SQLiteBundleSet::Factory::Factory ( SQLiteDatabase db)

Definition at line 34 of file SQLiteBundleSet.cpp.

dtn::storage::SQLiteBundleSet::Factory::~Factory ( )
virtual

Implements dtn::data::BundleSet::Factory.

Definition at line 39 of file SQLiteBundleSet.cpp.

Member Function Documentation

size_t dtn::storage::SQLiteBundleSet::Factory::__create ( SQLiteDatabase db,
const std::string &  name,
bool  persistent 
)
throw (SQLiteDatabase::SQLiteQueryException
)
static

Definition at line 80 of file SQLiteBundleSet.cpp.

References dtn::storage::SQLiteDatabase::Statement::step().

Here is the call graph for this function:

bool dtn::storage::SQLiteBundleSet::Factory::__exists ( SQLiteDatabase db,
const std::string &  name,
bool  persistent 
)
throw (SQLiteDatabase::SQLiteQueryException
)
static

Definition at line 100 of file SQLiteBundleSet.cpp.

References dtn::storage::SQLiteDatabase::Statement::step().

Here is the call graph for this function:

dtn::data::BundleSetImpl * dtn::storage::SQLiteBundleSet::Factory::create ( dtn::data::BundleSet::Listener listener,
dtn::data::Size  bf_size 
)
virtual

Implements dtn::data::BundleSet::Factory.

Definition at line 43 of file SQLiteBundleSet.cpp.

References create(), and dtn::storage::SQLiteBundleSet::SQLiteBundleSet().

Referenced by dtn::storage::SQLiteBundleSet::copy(), and create().

Here is the call graph for this function:

dtn::data::BundleSetImpl * dtn::storage::SQLiteBundleSet::Factory::create ( const std::string &  name,
dtn::data::BundleSet::Listener listener,
dtn::data::Size  bf_size 
)
virtual

Implements dtn::data::BundleSet::Factory.

Definition at line 52 of file SQLiteBundleSet.cpp.

References dtn::storage::SQLiteBundleSet::SQLiteBundleSet().

Here is the call graph for this function:

size_t dtn::storage::SQLiteBundleSet::Factory::create ( SQLiteDatabase db)
throw (SQLiteDatabase::SQLiteQueryException
)
static

creates an anonymous bundle-set and returns its ID

Definition at line 61 of file SQLiteBundleSet.cpp.

References dtn::utils::Random::gen_chars().

Here is the call graph for this function:

size_t dtn::storage::SQLiteBundleSet::Factory::create ( SQLiteDatabase db,
const std::string &  name 
)
throw (SQLiteDatabase::SQLiteQueryException
)
static

creates a named bundle-set or returns the ID of an existing bundle-set

Definition at line 74 of file SQLiteBundleSet.cpp.


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