ObjectDB ObjectDB

deletePersistent(pc) - JDO PersistenceManager's method

Method
javax.jdo.PersistenceManager
void deletePersistent(
  Object pc
)

Delete the persistent instance from the data store. This method must be called in an active transaction. The data store object will be removed at commit. Unlike makePersistent, which makes the closure of the instance persistent, the closure of the instance is not deleted from the data store. This method has no effect if the instance is already deleted in the current transaction. This method throws JDOUserException if the instance is transient or is managed by another PersistenceManager.
Parameters:
pc - a persistent instance
Since:
JDO 1.0