public class CollectionChangeWorkUnit extends AbstractAuditWorkUnit implements AuditWorkUnit
auditStrategy, entityName, enversService, id, revisionType, sessionImplementor
Constructor and Description |
---|
CollectionChangeWorkUnit(SessionImplementor session,
String entityName,
String collectionPropertyName,
EnversService enversService,
Serializable id,
Object entity) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsWork() |
AuditWorkUnit |
dispatch(WorkUnitMergeVisitor first)
Should be invoked on the second work unit.
|
Map<String,Object> |
generateData(Object revisionData) |
AuditWorkUnit |
merge(AddWorkUnit second) |
AuditWorkUnit |
merge(CollectionChangeWorkUnit second) |
AuditWorkUnit |
merge(DelWorkUnit second) |
AuditWorkUnit |
merge(FakeBidirectionalRelationWorkUnit second) |
AuditWorkUnit |
merge(ModWorkUnit second) |
void |
mergeCollectionModifiedData(Map<String,Object> data) |
fillDataWithId, getEntityId, getEntityName, getRevisionType, isPerformed, perform, setPerformed, undo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntityId, getEntityName, getRevisionType, isPerformed, perform, undo
public CollectionChangeWorkUnit(SessionImplementor session, String entityName, String collectionPropertyName, EnversService enversService, Serializable id, Object entity)
public boolean containsWork()
containsWork
in interface AuditWorkUnit
public Map<String,Object> generateData(Object revisionData)
generateData
in interface AuditWorkUnit
revisionData
- The current revision data, which will be used to populate the work unit with the correct
revision relation.public AuditWorkUnit merge(AddWorkUnit second)
merge
in interface WorkUnitMergeVisitor
public AuditWorkUnit merge(ModWorkUnit second)
merge
in interface WorkUnitMergeVisitor
public AuditWorkUnit merge(DelWorkUnit second)
merge
in interface WorkUnitMergeVisitor
public AuditWorkUnit merge(CollectionChangeWorkUnit second)
merge
in interface WorkUnitMergeVisitor
public AuditWorkUnit merge(FakeBidirectionalRelationWorkUnit second)
merge
in interface WorkUnitMergeVisitor
public AuditWorkUnit dispatch(WorkUnitMergeVisitor first)
WorkUnitMergeDispatcher
dispatch
in interface WorkUnitMergeDispatcher
first
- First work unit (that is, the one added earlier).Copyright © 2021 JBoss by Red Hat. All rights reserved.