public interface Auditor extends Configurable, Closeable
auditable
instances and invoke
implementation of this interface within a transaction.
Modifier and Type | Method and Description |
---|---|
void |
audit(Broker broker,
Collection<Audited> newObjects,
Collection<Audited> updates,
Collection<Audited> deletes)
OpenJPA runtime will invoke this method with the given parameters
within a transaction.
|
boolean |
isRollbackOnError()
Affirm if the transaction be rolled back if
audit
operation fails with an exception. |
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.boolean isRollbackOnError()
audit
operation fails with an exception.Copyright © 2006–2022 Apache Software Foundation. All rights reserved.