public interface Auditor extends Configurable, Closeable
Modifier and Type | Method and Description |
---|---|
void |
audit(Broker broker,
java.util.Collection<Audited> newObjects,
java.util.Collection<Audited> updates,
java.util.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, java.util.Collection<Audited> newObjects, java.util.Collection<Audited> updates, java.util.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-2013 Apache Software Foundation. All Rights Reserved.