company logo

ObjectSpace :: database - Database handle

Each object space belongs to a database. Since an object space belongs to exactly one database, there is also exactly one database access object, to which the object space access object belongs.

Notes:

Handles, usually, do not form hierarchies, but the related access objects do.

Return value:  Database handle ( odaba::Database & )

The database handle refers to an (usually) opened database. Calling functions with invalid database handles may cause an exception. For checking the database handle, isValid() can be called.

Implementation details

odaba::Database & ObjectSpace  :: database (  )

The function returns the database handle the for the database the referenced database object belongs to.