|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.kernel.InMemorySavepointManager
org.apache.openjpa.kernel.AuditManager
public class AuditManager
Controller for audit facility. This controller performs the following basic duties:
Auditor at transaction boundary.
| Constructor Summary | |
|---|---|
AuditManager(Auditor auditor)
|
|
| Method Summary | |
|---|---|
void |
afterBegin(TransactionEvent event)
----------------------------------------------------------------------- Transaction callbacks. |
void |
afterCommit(TransactionEvent event)
Notification that a transaction has successfully committed. |
void |
afterCommitComplete(TransactionEvent event)
Notification that a transaction has successfully committed and the transaction is no longer active. |
void |
afterFlush(TransactionEvent event)
Notification that a transaction has flushed all object changes. |
void |
afterRollback(TransactionEvent event)
Notification that a transaction has been rolled back. |
void |
afterRollbackComplete(TransactionEvent event)
Notification that a transaction has been rolled back and the transaction is no longer active. |
void |
afterStateTransitions(TransactionEvent event)
Notification that state transitions are complete. |
void |
beforeCommit(TransactionEvent event)
Notification that the next flush is for the transaction commit. |
void |
beforeFlush(TransactionEvent event)
Notification that a transaction is about to flush all object changes. |
Set<Class<?>> |
getAuditedTypes()
|
Auditor |
getAuditor()
|
protected Broker |
getBroker(PersistenceCapable pc)
Extracts the broker from the given persistence capable instance. |
protected PersistenceCapable |
getPersistenceCapable(LifecycleEvent evt)
Extracts the persistence capable instance from the source of the given event. |
protected boolean |
isAuditable(AuditableOperation op,
StateManagerImpl sm)
Affirms if the given state manager is auditable for the given operation. |
void |
register(Class<?> cls)
Records all auditable classes in operation-specific sets. |
| Methods inherited from class org.apache.openjpa.kernel.InMemorySavepointManager |
|---|
getPreFlush, newSavepoint, setPreFlush, supportsIncrementalFlush |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuditManager(Auditor auditor)
| Method Detail |
|---|
public void register(Class<?> cls)
register in interface PCRegistry.RegisterClassListenerpublic Auditor getAuditor()
public Set<Class<?>> getAuditedTypes()
public void afterBegin(TransactionEvent event)
afterBegin in interface BeginTransactionListenerTransactionEvent.AFTER_BEGINpublic void beforeCommit(TransactionEvent event)
EndTransactionListener
beforeCommit in interface EndTransactionListenerTransactionEvent.BEFORE_COMMITpublic void afterCommit(TransactionEvent event)
EndTransactionListener
afterCommit in interface EndTransactionListenerTransactionEvent.AFTER_COMMITpublic void afterRollback(TransactionEvent event)
EndTransactionListener
afterRollback in interface EndTransactionListenerTransactionEvent.AFTER_ROLLBACKpublic void afterCommitComplete(TransactionEvent event)
EndTransactionListener
afterCommitComplete in interface EndTransactionListenerpublic void afterRollbackComplete(TransactionEvent event)
EndTransactionListener
afterRollbackComplete in interface EndTransactionListenerpublic void beforeFlush(TransactionEvent event)
FlushTransactionListener
beforeFlush in interface FlushTransactionListenerTransactionEvent.BEFORE_FLUSHpublic void afterFlush(TransactionEvent event)
FlushTransactionListener
afterFlush in interface FlushTransactionListenerTransactionEvent.AFTER_FLUSHpublic void afterStateTransitions(TransactionEvent event)
EndTransactionListener
afterStateTransitions in interface EndTransactionListenerprotected PersistenceCapable getPersistenceCapable(LifecycleEvent evt)
protected Broker getBroker(PersistenceCapable pc)
pc - a persistence capable instance
protected boolean isAuditable(AuditableOperation op, StateManagerImpl sm)
op - an auditable operationsm -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||