Use the createSchema SPI to create new entity and property types.
Purpose
The createSchema SPI creates the schema of
new entity types and property types at runtime. When this method is called,
the new types are added to the schema model in the SchemaManager and the configuration
information in ConfigManager is updated to accept these new types.
The
adapter needs to support the new types and refresh the schema or configuration
cache if it is necessary. If the adapter does not support creating new types,
the exception, com.ibm.websphere.exception.OperationNotSupportException, is
thrown.
Parameters
- root
- Specifies the input root data object that contains the information of
the new entity and property types.
Returns
The output root data object that contains the
new types created and the repositories that support the new types.
Signature
Public DataObject createSchema(DataObject
root) throws WIMException