Renaming Objects

To rename an object in the BI Beans Catalog, you call the rename method of the BIContext that contains the object.

The new name of the object cannot have path information. You cannot use the rename method to move an object.

Example: Renaming an object

The following code renames a graph. The original name of the graph is "MyGraph." The new name is "SalesGraph."


// cxtMyFolder is the PersistenceManager or the MDFolder // that contains the graph try{    cxtMyFolder.rename("MyGraph", "SalesGraph"); } catch (NamingException ne){   ne.printStackTrace(); }