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

database Class Reference
[Classes and types for external use]

the database class More...

#include <vdbl_database.h>

Inheritance diagram for database:

Inheritance graph
[legend]
Collaboration diagram for database:

Collaboration 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())
bool create_table (const char *_C_i, const _VDBL_userid &_C_u, const _VDBL_tableflags &__f=_VDBL_tableflags())
bool drop_table (const char *_C_i, const _VDBL_userid &_C_u)
bool has_table (const char *_C_i, const _VDBL_userid &_C_u) const
bool create_view (const char *_C_i, const _VDBL_userid &_C_u, const _VDBL_context &__c, const std::string &_C_t, const _V_enum &__e)
bool create_view (const std::string &_C_i, const _VDBL_userid &_C_u, const _VDBL_context &__c, const char *_C_t, const _V_enum &__e)
bool create_view (const char *_C_i, const _VDBL_userid &_C_u, const _VDBL_context &__c, const char *_C_t, const _V_enum &__e)
bool drop_view (const char *_C_i, const _VDBL_userid &_C_u)
bool has_view (const char *_C_i, const _VDBL_userid &_C_u) const
viewbase * get_view (const char *_C_i, const _VDBL_userid &_C_u) const
tableget_table (const tableid &_C_i, const _VDBL_userid &_C_u) const
tableget_table (const std::string &_C_i, const _VDBL_userid &_C_u) const
tableget_table (const char *_C_i, const _VDBL_userid &_C_u) const
_VDBL_tableid get_tableid (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 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
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

Protected Methods

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

Detailed Description

This is the class describing a whole database including users, tables and views.

Definition at line 796 of file vdbl_database.h.


Member Function Documentation

bool database::create_table const char *    _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.

Definition at line 824 of file vdbl_database.h.

bool 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 from _VDBL_database.

Definition at line 814 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, inherited]
 

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 database::create_view const char *    _C_i,
const _VDBL_userid   _C_u,
const _VDBL_context   __c,
const char *    _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 877 of file vdbl_database.h.

bool database::create_view const std::string &    _C_i,
const _VDBL_userid   _C_u,
const _VDBL_context   __c,
const char *    _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 868 of file vdbl_database.h.

bool database::create_view const char *    _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 859 of file vdbl_database.h.

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

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, inherited]
 

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, inherited]
 

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 database::drop_table const char *    _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 847 of file vdbl_database.h.

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

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, inherited]
 

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, inherited]
 

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.

bool database::drop_view const char *    _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 888 of file vdbl_database.h.

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

return a pointer to the table with id _C_i.

Definition at line 536 of file vdbl_database.h.

table* database::get_table const char *    _C_i,
const _VDBL_userid   _C_u
const [inline]
 

return a pointer to the table with name _C_i.

Definition at line 923 of file vdbl_database.h.

table* 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 from _VDBL_database.

Definition at line 918 of file vdbl_database.h.

table* database::get_table const tableid   _C_i,
const _VDBL_userid   _C_u
const [inline]
 

return a pointer to the table with id _C_i.

Definition at line 913 of file vdbl_database.h.

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

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, inherited]
 

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, inherited]
 

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, inherited]
 

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, inherited]
 

return a pointer to the view with id _C_i.

Definition at line 734 of file vdbl_database.h.

viewbase* database::get_view const char *    _C_i,
const _VDBL_userid   _C_u
const [inline]
 

return a pointer to the view with name _C_i.

Definition at line 898 of file vdbl_database.h.

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

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, inherited]
 

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, inherited]
 

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, inherited]
 

check whether the table _C_i exists

Definition at line 517 of file vdbl_database.h.

bool database::has_table const char *    _C_i,
const _VDBL_userid   _C_u
const [inline]
 

check whether the table _C_i exists

Definition at line 852 of file vdbl_database.h.

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

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, inherited]
 

check whether the view with id _C_i exists

Definition at line 716 of file vdbl_database.h.

bool database::has_view const char *    _C_i,
const _VDBL_userid   _C_u
const [inline]
 

check whether the view _C_i exists

Definition at line 893 of file vdbl_database.h.


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