There are several ways to instantiate an ObjectStore class,
through factory methods for creating or retrieving object stores,
or by retrieving object stores from other objects.
Retrieving from Domain
The following Java™ and C# examples get existing ObjectStore instances
by retrieving an ObjectStoreSet collection from the Domain object.
Retrieving an Instance with a Factory Method
As shown in the following Java and
C# examples, you can get an existing instance of an ObjectStore with
a factory method: getInstance or fetchInstance.
Retrieving from a Repository Object
As shown in the following Java and
C# examples, you can get an existing instance of an ObjectStore object
from any object that is persisted on that object store.