Interface AuditWorkUnit
- All Superinterfaces:
WorkUnitMergeDispatcher,WorkUnitMergeVisitor
- All Known Implementing Classes:
AbstractAuditWorkUnit,AddWorkUnit,CollectionChangeWorkUnit,DelWorkUnit,FakeBidirectionalRelationWorkUnit,ModWorkUnit,PersistentCollectionChangeWorkUnit
TODO: refactor constructors into factory methods
-
Method Summary
Modifier and TypeMethodDescriptionbooleangenerateData(Object revisionData) booleanvoidPerform this work unit in the given session.voidMethods inherited from interface org.hibernate.envers.internal.synchronization.work.WorkUnitMergeDispatcher
dispatch
-
Method Details
-
getEntityId
Object getEntityId() -
getEntityName
String getEntityName() -
containsWork
boolean containsWork() -
isPerformed
boolean isPerformed() -
perform
Perform this work unit in the given session.- Parameters:
session- Session, in which the work unit should be performed.revisionData- The current revision data, which will be used to populate the work unit with the correct revision relation.
-
undo
-
generateData
- Parameters:
revisionData- The current revision data, which will be used to populate the work unit with the correct revision relation.- Returns:
- Generates data that should be saved when performing this work unit.
-
getRevisionType
RevisionType getRevisionType()- Returns:
- Performed modification type.
-