Previous Page | Next Page

Understanding com.sas.metadata.remote Interfaces and Classes

Working with the MdObjectStore Interface

All Java objects that you create to read metadata or to add or update metadata on the SAS Metadata Server must be contained in an MdObjectStore object. The MdObjectStore object serves as a working container for metadata objects. When you are ready to apply changes to the SAS Metadata Server, all of the new and modified metadata objects in the object store are persisted to the SAS Metadata Server as a group. The object store automatically maintains lists of new, updated, and deleted metadata objects. These lists are used to persist the updates to the SAS Metadata Server and by the event handling interface to track changes in object stores.

An object store is created with the statement:

MdObjectStore store = MdFactory.createObjectStore();

An object store is deleted with the MdObjectStore dispose method. The dispose method removes all objects in the object store from memory.

Previous Page | Next Page | Top of Page