##### 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.