ObjectStore C++ API Reference

os_database_schema

This class is part of the ObjectStore metaobject protocol, which provides access to ObjectStore schemas. An instance of this class represents a database schema. os_database_schema is derived from os_schema.

Programs using this class must include <ostore/ostore.hh>, followed by <ostore/coll.hh> (if used), followed by <ostore/mop.hh>.

os_database_schema::get()

static const os_database_schema &get(const os_database&);
Returns the schema of the specified database. Signals err_no_schema if the specified database has no schema installed.

os_database_schema::get_for_update()

static os_database_schema &get_for_update(const os_database&);
Returns the schema of the specified database. Signals err_no_schema if the specified database has no schema installed. This differs from get() in that the return value is a reference to a non-const os_database_schema rather than a const os_database_schema.

os_database_schema::install()

void install(os_schema &new_schema);
Installs the classes in new_schema into the database schema specified by this.



[previous] [next]

Copyright © 1997 Object Design, Inc. All rights reserved.

Updated: 03/31/98 17:25:09