org.hibernate.envers.synchronization
Class AuditProcess

java.lang.Object
  extended by 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)

Constructor Summary
AuditProcess(RevisionInfoGenerator revisionInfoGenerator, SessionImplementor session)
           
 
Method Summary
 void addWorkUnit(AuditWorkUnit vwu)
           
 void afterCompletion(int status)
           
 void beforeCompletion()
           
 void doBeforeTransactionCompletion(SessionImplementor session)
          Perform whatever processing is encapsulated here before completion of the transaction.
 Object getCurrentRevisionData(Session session, boolean persist)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditProcess

public AuditProcess(RevisionInfoGenerator revisionInfoGenerator,
                    SessionImplementor session)
Method Detail

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.