public class ModWorkUnit extends AbstractAuditWorkUnit implements AuditWorkUnit
auditStrategy, entityName, id, revisionType, sessionImplementor, verCfg
Constructor and Description |
---|
ModWorkUnit(SessionImplementor sessionImplementor,
String entityName,
AuditConfiguration verCfg,
Serializable id,
EntityPersister entityPersister,
Object[] newState,
Object[] oldState) |
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) |
Map<String,Object> |
getData() |
AuditWorkUnit |
merge(AddWorkUnit second) |
AuditWorkUnit |
merge(CollectionChangeWorkUnit second) |
AuditWorkUnit |
merge(DelWorkUnit second) |
AuditWorkUnit |
merge(FakeBidirectionalRelationWorkUnit second) |
AuditWorkUnit |
merge(ModWorkUnit second) |
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 ModWorkUnit(SessionImplementor sessionImplementor, String entityName, AuditConfiguration verCfg, Serializable id, EntityPersister entityPersister, Object[] newState, Object[] oldState)
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 © 2018 JBoss by Red Hat. All rights reserved.