Getting schema repository objects

Most of the schema repository information can be found in the properties of various objects. For example, the AdminSession object has properties that return a complete list of the databases, schemas, users, and groups associated with the schema repository. The AdminSession object also has methods that retrieve database, user, and group objects whose name you already know. You can also use methods of the AdminSession object to create new databases, user accounts, and groups.

Calling each of these methods creates a new object of the corresponding type. You can then set data. The information in these objects is saved immediately to the schema repository. If you are setting information related to users and groups, you must update your user databases.