org.hibernate.envers.synchronization
Class AuditProcess
java.lang.Object
org.hibernate.envers.synchronization.AuditProcess
- All Implemented Interfaces:
- Synchronization, BeforeTransactionCompletionProcess
public class AuditProcess
- extends Object
- implements BeforeTransactionCompletionProcess, Synchronization
- Author:
- Adam Warski (adam at warski dot org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuditProcess
public AuditProcess(RevisionInfoGenerator revisionInfoGenerator,
SessionImplementor session)
addWorkUnit
public void addWorkUnit(AuditWorkUnit vwu)
getCurrentRevisionData
public Object getCurrentRevisionData(Session session,
boolean persist)
doBeforeTransactionCompletion
public void doBeforeTransactionCompletion(SessionImplementor session)
- Description copied from interface:
BeforeTransactionCompletionProcess
- Perform whatever processing is encapsulated here before completion of the transaction.
- Specified by:
doBeforeTransactionCompletion
in interface BeforeTransactionCompletionProcess
- Parameters:
session
- The session on which the transaction is preparing to complete.
beforeCompletion
public void beforeCompletion()
- Specified by:
beforeCompletion
in interface Synchronization
afterCompletion
public void afterCompletion(int status)
- Specified by:
afterCompletion
in interface Synchronization
Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.