public interface EntityTrackingRevisionListener extends RevisionListener
RevisionListener
that notifies whenever an entity instance has been
added, modified or removed within current revision boundaries.RevisionListener
Modifier and Type | Method and Description |
---|---|
void |
entityChanged(java.lang.Class entityClass,
java.lang.String entityName,
java.io.Serializable entityId,
RevisionType revisionType,
java.lang.Object revisionEntity)
Called after audited entity data has been persisted.
|
newRevision
void entityChanged(java.lang.Class entityClass, java.lang.String entityName, java.io.Serializable entityId, RevisionType revisionType, java.lang.Object revisionEntity)
entityClass
- Audited entity class.entityName
- Name of the audited entity. May be useful when Java class is mapped multiple times,
potentially to different tables.entityId
- Identifier of modified entity.revisionType
- Modification type (addition, update or removal).revisionEntity
- An instance of the entity annotated with RevisionEntity
.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.