_VDBL_database Class Reference
[Classes and types for internal use]

the database class More...

#include <vdbl_database.h>

Inheritance diagram for _VDBL_database:

Inheritance graph
[legend]

List of all members.

Public Member Functions

bool create_table (const std::string &_C_i, const _VDBL_userid &_C_u, const _VDBL_tableflags &__f=_VDBL_tableflags())
_VDBL_tableid get_tableid (const std::string &_C_i, const _VDBL_userid &_C_u) const
bool drop_table (const _D_tables::iterator &__t, const _D_table_names::iterator &__tn, const _VDBL_userid &_C_u)
bool drop_table (const _VDBL_tableid &_C_i, const _VDBL_userid &_C_u)
bool drop_table (const std::string &_C_i, const _VDBL_userid &_C_u)
bool has_table (const _VDBL_tableid &_C_i, const _VDBL_userid &_C_u) const
bool has_table (const std::string &_C_i, const _VDBL_userid &_C_u) const
_VDBL_tableget_table (const _VDBL_tableid &_C_i, const _VDBL_userid &_C_u) const
_VDBL_tableget_table (const std::string &_C_i, const _VDBL_userid &_C_u) const
_VDBL_viewid get_viewid (const std::string &_C_i, const _VDBL_userid &_C_u) const
bool create_view (const std::string &_C_i, const _VDBL_userid &_C_u, const _VDBL_context &__c, const std::string &_C_t, const _V_enum &__e)
bool drop_view (const _D_views::iterator &__v, const _D_view_names::iterator &__vn, const _VDBL_userid &_C_u)
bool drop_view (const _VDBL_viewid &_C_i, const _VDBL_userid &_C_u)
bool drop_view (const std::string &_C_i, const _VDBL_userid &_C_u)
bool has_view (const _VDBL_viewid &_C_i, const _VDBL_userid &_C_u) const
bool has_view (const std::string &_C_i, const _VDBL_userid &_C_u) const
_VDBL_viewget_view (const _VDBL_viewid &_C_i, const _VDBL_userid &_C_u) const
_VDBL_viewget_view (const std::string &_C_i, const _VDBL_userid &_C_u) const
 _VDBL_database ()
 _VDBL_database (const _VDBL_database &__t)
virtual ~_VDBL_database ()

Protected Member Functions

_VDBL_tableid get_tableid ()
_VDBL_userid get_userid ()
_VDBL_viewid get_viewid ()

Friends

class _VDBL_viewdbase


Detailed Description

This is the base class for a whole database including tables and views.

Definition at line 337 of file vdbl_database.h.


Constructor & Destructor Documentation

_VDBL_database::_VDBL_database (  )  [inline]

standard constructor

Definition at line 794 of file vdbl_database.h.

_VDBL_database::_VDBL_database ( const _VDBL_database __t  )  [inline]

copy constructor

Definition at line 800 of file vdbl_database.h.

virtual _VDBL_database::~_VDBL_database (  )  [inline, virtual]

standard destructor

Definition at line 814 of file vdbl_database.h.


Member Function Documentation

bool _VDBL_database::create_table ( const std::string &  _C_i,
const _VDBL_userid _C_u,
const _VDBL_tableflags __f = _VDBL_tableflags() 
) [inline]

create a new table

  • _C_i: name
  • _C_u: user id
  • __f: the table flags (if they are not default) return true, if creating the table was successful.

Reimplemented in database.

Definition at line 406 of file vdbl_database.h.

bool _VDBL_database::create_view ( const std::string &  _C_i,
const _VDBL_userid _C_u,
const _VDBL_context __c,
const std::string &  _C_t,
const _V_enum __e 
) [inline]

create a new standard view with name _C_i, evaluation context __c, for table _C_t, of type __e. return true if creating worked, and false otherwise.

Reimplemented in database.

Definition at line 675 of file vdbl_database.h.

bool _VDBL_database::drop_table ( const std::string &  _C_i,
const _VDBL_userid _C_u 
) [inline]

delete a table, whose name is provided. return true, if deleting the table has worked.

Reimplemented in database.

Definition at line 509 of file vdbl_database.h.

bool _VDBL_database::drop_table ( const _VDBL_tableid _C_i,
const _VDBL_userid _C_u 
) [inline]

delete a table, whose table id is provided. return true, if deleting the table has worked.

Definition at line 496 of file vdbl_database.h.

bool _VDBL_database::drop_table ( const _D_tables::iterator &  __t,
const _D_table_names::iterator &  __tn,
const _VDBL_userid _C_u 
) [inline]

delete a table, internal function. The first argument is the iterator into the table map, the second argument is the iterator into the table names map, return true, if deleting the table has worked.

Definition at line 471 of file vdbl_database.h.

bool _VDBL_database::drop_view ( const std::string &  _C_i,
const _VDBL_userid _C_u 
) [inline]

delete a view, whose name is provided. return true, if deleting the table has worked.

Reimplemented in database.

Definition at line 742 of file vdbl_database.h.

bool _VDBL_database::drop_view ( const _VDBL_viewid _C_i,
const _VDBL_userid _C_u 
) [inline]

delete a view, whose id is provided. return true, if deleting the table has worked.

Definition at line 729 of file vdbl_database.h.

bool _VDBL_database::drop_view ( const _D_views::iterator &  __v,
const _D_view_names::iterator &  __vn,
const _VDBL_userid _C_u 
) [inline]

delete a view, internal function. The first argument is the iterator into the table map, the second argument is the iterator into the table names map, return true, if deleting the table has worked.

Definition at line 704 of file vdbl_database.h.

_VDBL_table* _VDBL_database::get_table ( const std::string &  _C_i,
const _VDBL_userid _C_u 
) const [inline]

return a pointer to the table with name _C_i.

Reimplemented in database.

Definition at line 550 of file vdbl_database.h.

_VDBL_table* _VDBL_database::get_table ( const _VDBL_tableid _C_i,
const _VDBL_userid _C_u 
) const [inline]

return a pointer to the table with id _C_i.

Definition at line 537 of file vdbl_database.h.

_VDBL_tableid _VDBL_database::get_tableid ( const std::string &  _C_i,
const _VDBL_userid _C_u 
) const [inline]

return the table id for a given name

Definition at line 448 of file vdbl_database.h.

_VDBL_tableid _VDBL_database::get_tableid (  )  [inline, protected]

generate a new unique id for tables, views, and users

Definition at line 392 of file vdbl_database.h.

_VDBL_userid _VDBL_database::get_userid (  )  [inline, protected]

generate a new unique id for tables, views, and users

Definition at line 393 of file vdbl_database.h.

_VDBL_view* _VDBL_database::get_view ( const std::string &  _C_i,
const _VDBL_userid _C_u 
) const [inline]

return a pointer to the view with name _C_i.

Reimplemented in database.

Definition at line 781 of file vdbl_database.h.

_VDBL_view* _VDBL_database::get_view ( const _VDBL_viewid _C_i,
const _VDBL_userid _C_u 
) const [inline]

return a pointer to the view with id _C_i.

Definition at line 769 of file vdbl_database.h.

_VDBL_viewid _VDBL_database::get_viewid ( const std::string &  _C_i,
const _VDBL_userid _C_u 
) const [inline]

return the view id of view _C_i.

Definition at line 661 of file vdbl_database.h.

_VDBL_viewid _VDBL_database::get_viewid (  )  [inline, protected]

generate a new unique id for tables, views, and users

Definition at line 394 of file vdbl_database.h.

bool _VDBL_database::has_table ( const std::string &  _C_i,
const _VDBL_userid _C_u 
) const [inline]

check whether the table _C_i exists

Reimplemented in database.

Definition at line 530 of file vdbl_database.h.

bool _VDBL_database::has_table ( const _VDBL_tableid _C_i,
const _VDBL_userid _C_u 
) const [inline]

check whether the table _C_i exists

Definition at line 518 of file vdbl_database.h.

bool _VDBL_database::has_view ( const std::string &  _C_i,
const _VDBL_userid _C_u 
) const [inline]

check whether the view _C_i exists

Reimplemented in database.

Definition at line 763 of file vdbl_database.h.

bool _VDBL_database::has_view ( const _VDBL_viewid _C_i,
const _VDBL_userid _C_u 
) const [inline]

check whether the view with id _C_i exists

Definition at line 751 of file vdbl_database.h.


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

Generated on Tue Feb 9 14:59:35 2010 for Vienna Database Library by  doxygen 1.5.8