public interface Auditor extends Configurable, Closeable
auditableinstances and invoke implementation of this interface within a transaction.
|Modifier and Type||Method and Description|
OpenJPA runtime will invoke this method with the given parameters within a transaction.
Affirm if the transaction be rolled back if
endConfiguration, setConfiguration, startConfiguration
void audit(Broker broker, Collection<Audited> newObjects, Collection<Audited> updates, Collection<Audited> deletes)
broker- the active persistence context.
newObjects- the set of auditable objects being created. Can be empty, but never null.
updates- the set of auditable objects being updated. Can be empty, but never null.
deletes- the set of auditable objects being deleted. Can be empty, but never null.
auditoperation fails with an exception.
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.