org.hibernate.envers.test.integration.reventity
Class CountingRevisionListener

java.lang.Object
  extended by org.hibernate.envers.test.integration.reventity.CountingRevisionListener
All Implemented Interfaces:
RevisionListener

public class CountingRevisionListener
extends Object
implements RevisionListener


Field Summary
static int revisionCount
           
 
Constructor Summary
CountingRevisionListener()
           
 
Method Summary
 void newRevision(Object revisionEntity)
          Called when a new revision is created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

revisionCount

public static int revisionCount
Constructor Detail

CountingRevisionListener

public CountingRevisionListener()
Method Detail

newRevision

public void newRevision(Object revisionEntity)
Description copied from interface: RevisionListener
Called when a new revision is created.

Specified by:
newRevision in interface RevisionListener
Parameters:
revisionEntity - An instance of the entity annotated with RevisionEntity, which will be persisted after this method returns. All properties on this entity that are to be persisted should be set by this method.


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.