Inserting and Deleting an Object
This topic introduces how to insert and delete an object in a catalog API.
Inserting an Object
The following methods are used to insert an object into a catalog and to return the handle of the newly inserted object:
- insert(String name, int type)
- insert(String dataSourceName, String name, int type)
Parameters
- name - The object name.
- type - The object type. For more information, refer to the Logi JReport Javadoc jet.api.CatalogAPI class in
<install_root>\help\api
, which includes all documents generated by Javadoc.
Deleting an Object
The method delete(Stringhandle) is used to delete an object from its parent node and to return true if the specified object is removed.
Parameter
- handle - The handle of the object that is to be deleted.