public class AddWorkUnit extends AbstractAuditWorkUnit implements AuditWorkUnit
auditStrategy, entityName, id, revisionType, sessionImplementor, verCfg
Constructor and Description |
---|
AddWorkUnit(SessionImplementor sessionImplementor,
String entityName,
AuditConfiguration verCfg,
Serializable id,
EntityPersister entityPersister,
Object[] state) |
AddWorkUnit(SessionImplementor sessionImplementor,
String entityName,
AuditConfiguration verCfg,
Serializable id,
Map<String,Object> data) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsWork() |
AuditWorkUnit |
dispatch(WorkUnitMergeVisitor first)
Shuold be invoked on the second work unit.
|
Map<String,Object> |
generateData(Object revisionData) |
Object[] |
getState() |
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 AddWorkUnit(SessionImplementor sessionImplementor, String entityName, AuditConfiguration verCfg, Serializable id, EntityPersister entityPersister, Object[] state)
public AddWorkUnit(SessionImplementor sessionImplementor, String entityName, AuditConfiguration verCfg, Serializable id, Map<String,Object> data)
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 Object[] getState()
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 © 2012 JBoss by Red Hat. All Rights Reserved.