Previous Page Next Page
Inserting and Deleting an Object
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 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.
Previous Page Next Page