createRootDataObject method

Use the createRootDataObject method to create an empty root data object.

Purpose

The createRootDataObject method returns an empty root data object. All entity, control and context data objects are contained under the root data object. Client applications can use the root data object to build input data objects, such as an input data object for creating an entity through the create method.

Parameters

None

Returns

An empty virtual member manager root data object.

Exceptions

Signature

public DataObject createRootDataObject() throws WIMException, RemoteException

Sample

For example, the following code creates a Person data object and adds it under the Root data object.
DataObject root = service.createRootDataObject();
DataObject person = root.createDataObject("entities", 
"http://www.ibm.com/websphere/wim", "Person");
Terms of use | Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.
IBM virtual member manager 6.1