public class DefaultRevisionInfoGenerator extends Object implements RevisionInfoGenerator
Constructor and Description |
---|
DefaultRevisionInfoGenerator(String revisionInfoEntityName,
Class<?> revisionInfoClass,
Class<? extends RevisionListener> listenerClass,
PropertyData revisionInfoTimestampData,
boolean timestampAsDate,
ServiceRegistry serviceRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
entityChanged(Class entityClass,
String entityName,
Serializable entityId,
RevisionType revisionType,
Object revisionInfo) |
Object |
generate() |
void |
saveRevisionData(Session session,
Object revisionData) |
public DefaultRevisionInfoGenerator(String revisionInfoEntityName, Class<?> revisionInfoClass, Class<? extends RevisionListener> listenerClass, PropertyData revisionInfoTimestampData, boolean timestampAsDate, ServiceRegistry serviceRegistry)
public void saveRevisionData(Session session, Object revisionData)
saveRevisionData
in interface RevisionInfoGenerator
public Object generate()
generate
in interface RevisionInfoGenerator
public void entityChanged(Class entityClass, String entityName, Serializable entityId, RevisionType revisionType, Object revisionInfo)
entityChanged
in interface RevisionInfoGenerator
EntityTrackingRevisionListener.entityChanged(Class, String, Serializable, RevisionType, Object)
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.