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
NoneReturns
An empty virtual member manager root data object.Exceptions
- WIMException:
- RemoteException:
Signature
public DataObject createRootDataObject() throws WIMException, RemoteExceptionSample
For example, the following code creates a PersonAccount data object and adds it under the Root data object.DataObject root = service.createRootDataObject(); DataObject personAccount = root.createDataObject("entities", "http://www.ibm.com/websphere/wim", "PersonAccount");