![]() |
|||||
|
How to retrieve the openMDX URI for a given instance?To retrieve the openMDX URI of a given object, the JMI operation refMofId can be called on the desired object. Example 4-3. Retrieve the openMDX URI of a given object // retrieve the openMDX URI of a given object String personUri = person.refMofId() To retrieve an object for a given openMDX URI, you use the operation refObject on the root package (or any other package) for this purpose. Example 4-4. Retrieve the object for a given openMDX URI // retrieve the object (e.g. a Person instance) for a given openMDX URI Person person = (Person)rootPkg.refObject(personUri);
|
||||