org.hibernate.envers.revisioninfo
Class DefaultRevisionInfoGenerator

java.lang.Object
  extended by org.hibernate.envers.revisioninfo.DefaultRevisionInfoGenerator
All Implemented Interfaces:
RevisionInfoGenerator

public class DefaultRevisionInfoGenerator
extends Object
implements RevisionInfoGenerator

Author:
Adam Warski (adam at warski dot org)

Constructor Summary
DefaultRevisionInfoGenerator(String revisionInfoEntityName, Class<?> revisionInfoClass, Class<? extends RevisionListener> listenerClass, PropertyData revisionInfoTimestampData, boolean timestampAsDate)
           
 
Method Summary
 Object generate()
           
 void saveRevisionData(Session session, Object revisionData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRevisionInfoGenerator

public DefaultRevisionInfoGenerator(String revisionInfoEntityName,
                                    Class<?> revisionInfoClass,
                                    Class<? extends RevisionListener> listenerClass,
                                    PropertyData revisionInfoTimestampData,
                                    boolean timestampAsDate)
Method Detail

saveRevisionData

public void saveRevisionData(Session session,
                             Object revisionData)
Specified by:
saveRevisionData in interface RevisionInfoGenerator

generate

public Object generate()
Specified by:
generate in interface RevisionInfoGenerator


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