public class PersistentCollectionChangeWorkUnit extends AbstractAuditWorkUnit implements AuditWorkUnit
| Modifier and Type | Class and Description |
|---|---|
static class |
PersistentCollectionChangeWorkUnit.PersistentCollectionChangeWorkUnitId
A unique identifier for a collection work unit.
|
auditStrategy, entityName, id, revisionType, sessionImplementor, verCfg| Constructor and Description |
|---|
PersistentCollectionChangeWorkUnit(SessionImplementor sessionImplementor,
String entityName,
AuditConfiguration auditCfg,
PersistentCollection collection,
CollectionEntry collectionEntry,
Serializable snapshot,
Serializable id,
String referencingPropertyName) |
PersistentCollectionChangeWorkUnit(SessionImplementor sessionImplementor,
String entityName,
AuditConfiguration verCfg,
Serializable id,
List<PersistentCollectionChangeData> collectionChanges,
String referencingPropertyName) |
| 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) |
List<PersistentCollectionChangeData> |
getCollectionChanges() |
String |
getReferencingPropertyName() |
AuditWorkUnit |
merge(AddWorkUnit second) |
AuditWorkUnit |
merge(CollectionChangeWorkUnit second) |
AuditWorkUnit |
merge(DelWorkUnit second) |
AuditWorkUnit |
merge(FakeBidirectionalRelationWorkUnit second) |
AuditWorkUnit |
merge(ModWorkUnit second) |
void |
perform(Session session,
Object revisionData)
Perform this work unit in the given session.
|
fillDataWithId, getEntityId, getEntityName, getRevisionType, isPerformed, setPerformed, undoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEntityId, getEntityName, getRevisionType, isPerformed, undopublic PersistentCollectionChangeWorkUnit(SessionImplementor sessionImplementor, String entityName, AuditConfiguration auditCfg, PersistentCollection collection, CollectionEntry collectionEntry, Serializable snapshot, Serializable id, String referencingPropertyName)
public PersistentCollectionChangeWorkUnit(SessionImplementor sessionImplementor, String entityName, AuditConfiguration verCfg, Serializable id, List<PersistentCollectionChangeData> collectionChanges, String referencingPropertyName)
public boolean containsWork()
containsWork in interface AuditWorkUnitpublic Map<String,Object> generateData(Object revisionData)
generateData in interface AuditWorkUnitrevisionData - The current revision data, which will be used to populate the work unit with the correct
revision relation.public void perform(Session session, Object revisionData)
AuditWorkUnitperform in interface AuditWorkUnitperform in class AbstractAuditWorkUnitsession - 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.public String getReferencingPropertyName()
public List<PersistentCollectionChangeData> getCollectionChanges()
public AuditWorkUnit merge(AddWorkUnit second)
merge in interface WorkUnitMergeVisitorpublic AuditWorkUnit merge(ModWorkUnit second)
merge in interface WorkUnitMergeVisitorpublic AuditWorkUnit merge(DelWorkUnit second)
merge in interface WorkUnitMergeVisitorpublic AuditWorkUnit merge(CollectionChangeWorkUnit second)
merge in interface WorkUnitMergeVisitorpublic AuditWorkUnit merge(FakeBidirectionalRelationWorkUnit second)
merge in interface WorkUnitMergeVisitorpublic AuditWorkUnit dispatch(WorkUnitMergeVisitor first)
WorkUnitMergeDispatcherdispatch in interface WorkUnitMergeDispatcherfirst - First work unit (that is, the one added earlier).Copyright © 2012 JBoss by Red Hat. All Rights Reserved.