public class AuditLogger extends Object implements Auditor
| Constructor and Description |
|---|
AuditLogger() |
| 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.
|
void |
close() |
void |
endConfiguration() |
String |
getFile() |
boolean |
isRollbackOnError()
Affirm if the transaction be rolled back if
audit
operation fails with an exception. |
void |
setConfiguration(Configuration conf) |
void |
setFile(String file) |
void |
startConfiguration() |
public void audit(Broker broker, Collection<Audited> newObjects, Collection<Audited> updates, Collection<Audited> deletes)
Auditoraudit in interface Auditorbroker - 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.public void setFile(String file) throws FileNotFoundException
FileNotFoundExceptionpublic String getFile()
public boolean isRollbackOnError()
Auditoraudit
operation fails with an exception.isRollbackOnError in interface Auditorpublic void setConfiguration(Configuration conf)
setConfiguration in interface Configurablepublic void startConfiguration()
startConfiguration in interface Configurablepublic void endConfiguration()
endConfiguration in interface ConfigurableCopyright © 2006-2014 Apache Software Foundation. All Rights Reserved.