deletePersistentAll() - JDO Query's method
Dirty instances of affected classes in the cache are first flushed to the datastore. Instances in the cache or brought into the cache as a result of executing one of the
deletePersistentAll methods undergo life cycle changes as if
deletePersistent were called on them.
Specifically, if the class of deleted instances implements the delete callback interface, the corresponding callback methods are called on the deleted instances. Similarly, if there are lifecycle listeners registered for delete events on affected classes, the listener is called for each appropriate deleted instance.
Before returning control to the application, instances of affected classes in the cache are refreshed to reflect whether they were deleted from the datastore.
- the number of instances of the candidate class that were deleted
- JDO 2.0