Delete Category in a Category Schema using RAM Java API
We have a need to delete categories in a category schema using the RAM Java API. Here's what we are doing...
RAMCategory categoryToDelete = (RAMCategory)catSchema.getCategory("Party");
categoryToDelete.delete();
session.put(catSchema, new NullProgressMonitor());
The java doc for the delete method says...
"Marks this category for deletion. The category won't be physically deleted from the repository until RAMSession.commitChanges(IProgressMonitor) or RAMSession.upload(IProgressMonitor) is called."
We are using RAM V7.5.0.2 Build: RAM7502-I20110308_1504 and the API doesn't have the commitChanges() or upload() methods available.
It looks like just calling the session.put(catSchema, new NullProgressMonitor()) method will not delete the category in RAM, how do we accomplish this? Thanks,
Sanjay Karnam
RAMCategory categoryToDelete = (RAMCategory)catSchema.getCategory("Party");
categoryToDelete.delete();
session.put(catSchema, new NullProgressMonitor());
The java doc for the delete method says...
"Marks this category for deletion. The category won't be physically deleted from the repository until RAMSession.commitChanges(IProgressMonitor) or RAMSession.upload(IProgressMonitor) is called."
We are using RAM V7.5.0.2 Build: RAM7502-I20110308_1504 and the API doesn't have the commitChanges() or upload() methods available.
It looks like just calling the session.put(catSchema, new NullProgressMonitor()) method will not delete the category in RAM, how do we accomplish this? Thanks,
Sanjay Karnam