setSynchronization(sync) - JDO Transaction's method
Synchronizationinstance to be notified on transaction completions. The
beforeCompletionmethod is called prior to flushing instances to the data store.
afterCompletion method is called after performing state transitions of persistent and transactional instances, following the data store commit or rollback operation.
Synchronization instance can be registered with the
Transaction. If the application requires more than one instance to receive synchronization callbacks, then the single application instance is responsible for managing them, and forwarding callbacks to them.
Synchronizationinstance to be notified;
- JDO 1.0