company logo

ControlContext :: setDatabaseHandle - Set database handle for data source

Usually, data sources refer to the database, which is defined for the application. You may, however, refer to alternative databases in an application by setting the data source explicitly to another database handle. Then, all subsequent data sources (property handles) refer to the database passed in cDatabase.

Implementation details

ControlContext  :: setDatabaseHandle ( odaba::Database &cDatabase )
  • cDatabase - Database handle

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