Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

_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 Methods

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 Methods

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

Detailed Description

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

Definition at line 336 of file vdbl_database.h.


Constructor & Destructor Documentation

_VDBL_database::_VDBL_database   [inline]
 

standard constructor

Definition at line 759 of file vdbl_database.h.

_VDBL_database::_VDBL_database const _VDBL_database &    __t [inline]
 

copy constructor

Definition at line 765 of file vdbl_database.h.

virtual _VDBL_database::~_VDBL_database   [inline, virtual]
 

standard destructor

Definition at line 779 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 405 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.

Definition at line 640 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.

Definition at line 508 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 name is provided. return true, if deleting the table has worked.

Definition at line 495 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 470 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.

Definition at line 707 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 694 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 669 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 549 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 536 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 447 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 391 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 392 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.

Definition at line 746 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 734 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 626 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 393 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

Definition at line 529 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 517 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

Definition at line 728 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 716 of file vdbl_database.h.


The documentation for this class was generated from the following file:
Generated on Tue Nov 4 01:29:24 2003 for Vienna Database Library by doxygen1.2.18