Class DefaultRevisionInfoGenerator
- java.lang.Object
-
- org.hibernate.envers.internal.revisioninfo.DefaultRevisionInfoGenerator
-
- All Implemented Interfaces:
RevisionInfoGenerator
- Direct Known Subclasses:
DefaultTrackingModifiedEntitiesRevisionInfoGenerator
public class DefaultRevisionInfoGenerator extends Object implements RevisionInfoGenerator
-
-
Constructor Summary
Constructors Constructor Description DefaultRevisionInfoGenerator(String revisionInfoEntityName, Class<?> revisionInfoClass, Class<? extends RevisionListener> listenerClass, RevisionTimestampValueResolver timestampValueResolver, ServiceRegistry serviceRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
entityChanged(Class entityClass, String entityName, Object entityId, RevisionType revisionType, Object revisionInfo)
Object
generate()
void
saveRevisionData(Session session, Object revisionData)
void
setRevisionInfoNumberReader(RevisionInfoNumberReader revisionInfoNumberReader)
Set the revision entity number reader instance.
-
-
-
Constructor Detail
-
DefaultRevisionInfoGenerator
public DefaultRevisionInfoGenerator(String revisionInfoEntityName, Class<?> revisionInfoClass, Class<? extends RevisionListener> listenerClass, RevisionTimestampValueResolver timestampValueResolver, ServiceRegistry serviceRegistry)
-
-
Method Detail
-
setRevisionInfoNumberReader
public void setRevisionInfoNumberReader(RevisionInfoNumberReader revisionInfoNumberReader)
Description copied from interface:RevisionInfoGenerator
Set the revision entity number reader instance.- Specified by:
setRevisionInfoNumberReader
in interfaceRevisionInfoGenerator
-
saveRevisionData
public void saveRevisionData(Session session, Object revisionData)
- Specified by:
saveRevisionData
in interfaceRevisionInfoGenerator
-
generate
public Object generate()
- Specified by:
generate
in interfaceRevisionInfoGenerator
-
entityChanged
public void entityChanged(Class entityClass, String entityName, Object entityId, RevisionType revisionType, Object revisionInfo)
- Specified by:
entityChanged
in interfaceRevisionInfoGenerator
- See Also:
EntityTrackingRevisionListener.entityChanged(Class, String, Object, RevisionType, Object)
-
-