Home » JDO » PersistenceManager » deletePersistent(pc) - JDO PersistenceManager's method

deletePersistent(pc) - JDO PersistenceManager's method

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.
pc - a persistent instance
JDO 1.0

This documentation page is derived (with some adjustments) from the JDO 2.2 API
and is available under the terms of the Apache License, v. 2.0.