Nebula
Loading...
Searching...
No Matches
Db::DbFactory Class Reference

#include <dbfactory.h>

Detailed Description

DbFactory object for the Db subsystem.

Inherits Core::RefCounted.

Inherited by Db::Sqlite3Factory.

Public Member Functions

 DbFactory ()
 constructor
 
virtual ~DbFactory ()
 destructor
 
virtual Ptr< TableCreateTable () const
 create a table object
 
virtual Ptr< DatabaseCreateDatabase () const
 create a database object
 
virtual Ptr< CommandCreateCommand () const
 create a command object
 
virtual Ptr< RelationCreateRelation () const
 create a relation object
 
virtual Ptr< ReaderCreateReader () const
 create a database reader
 
virtual Ptr< WriterCreateWriter () const
 create a database writer
 
- Public Member Functions inherited from Core::RefCounted
 RefCounted ()
 constructor
 
int GetRefCount () const
 get the current refcount
 
void AddRef ()
 increment refcount by one
 
void Release ()
 decrement refcount and destroy object if refcount is zero
 
bool IsInstanceOf (const Rtti &rtti) const
 return true if this object is instance of given class
 
bool IsInstanceOf (const Util::String &className) const
 return true if this object is instance of given class by string
 
bool IsInstanceOf (const Util::FourCC &classFourCC) const
 return true if this object is instance of given class by fourcc
 
bool IsA (const Rtti &rtti) const
 return true if this object is instance of given class, or a derived class
 
bool IsA (const Util::String &rttiName) const
 return true if this object is instance of given class, or a derived class, by string
 
bool IsA (const Util::FourCC &rttiFourCC) const
 return true if this object is instance of given class, or a derived class, by fourcc
 
const Util::StringGetClassName () const
 get the class name
 
Util::FourCC GetClassFourCC () const
 get the class FourCC code
 

Protected Member Functions

virtual Ptr< DatasetCreateDataset () const
 create a dataset object
 
virtual Ptr< ValueTableCreateValueTable () const
 create a value table
 
virtual Ptr< FilterSetCreateFilterSet () const
 create a filter object
 
- Protected Member Functions inherited from Core::RefCounted
virtual ~RefCounted ()
 destructor (called when refcount reaches zero)
 

Private Member Functions

 __DeclareClass (DbFactory)
 
 __DeclareSingleton (DbFactory)
 

Friends

class Database
 
class Table
 
class Dataset
 
class Writer
 
class Reader
 

Additional Inherited Members

- Static Public Member Functions inherited from Core::RefCounted
static void DumpRefCountingLeaks ()
 dump refcounting leaks, call at end of application (NEBULA_DEBUG builds only!)
 

Constructor & Destructor Documentation

◆ DbFactory()

Db::DbFactory::DbFactory ( )

constructor

◆ ~DbFactory()

Db::DbFactory::~DbFactory ( )
virtual

destructor

Member Function Documentation

◆ __DeclareClass()

Db::DbFactory::__DeclareClass ( DbFactory )
private

◆ __DeclareSingleton()

Db::DbFactory::__DeclareSingleton ( DbFactory )
private

◆ CreateCommand()

Ptr< Command > Db::DbFactory::CreateCommand ( ) const
virtual

create a command object

Reimplemented in Db::Sqlite3Factory.

◆ CreateDatabase()

Ptr< Database > Db::DbFactory::CreateDatabase ( ) const
virtual

create a database object

Reimplemented in Db::Sqlite3Factory.

◆ CreateDataset()

Ptr< Dataset > Db::DbFactory::CreateDataset ( ) const
protectedvirtual

create a dataset object

Reimplemented in Db::Sqlite3Factory.

◆ CreateFilterSet()

Ptr< FilterSet > Db::DbFactory::CreateFilterSet ( ) const
protectedvirtual

create a filter object

Reimplemented in Db::Sqlite3Factory.

◆ CreateReader()

Ptr< Reader > Db::DbFactory::CreateReader ( ) const
virtual

create a database reader

◆ CreateRelation()

Ptr< Relation > Db::DbFactory::CreateRelation ( ) const
virtual

create a relation object

◆ CreateTable()

Ptr< Table > Db::DbFactory::CreateTable ( ) const
virtual

create a table object

Reimplemented in Db::Sqlite3Factory.

◆ CreateValueTable()

Ptr< ValueTable > Db::DbFactory::CreateValueTable ( ) const
protectedvirtual

create a value table

◆ CreateWriter()

Ptr< Writer > Db::DbFactory::CreateWriter ( ) const
virtual

create a database writer

Friends And Related Symbol Documentation

◆ Database

friend class Database
friend

◆ Dataset

friend class Dataset
friend

◆ Reader

friend class Reader
friend

◆ Table

friend class Table
friend

◆ Writer

friend class Writer
friend

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