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, enversService, id, revisionType, sessionImplementor| Constructor and Description |
|---|
PersistentCollectionChangeWorkUnit(SessionImplementor sessionImplementor,
java.lang.String entityName,
EnversService enversService,
PersistentCollection collection,
CollectionEntry collectionEntry,
java.io.Serializable snapshot,
java.io.Serializable id,
java.lang.String referencingPropertyName) |
PersistentCollectionChangeWorkUnit(SessionImplementor sessionImplementor,
java.lang.String entityName,
EnversService enversService,
java.io.Serializable id,
java.util.List<PersistentCollectionChangeData> collectionChanges,
java.lang.String referencingPropertyName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsWork() |
AuditWorkUnit |
dispatch(WorkUnitMergeVisitor first)
Should be invoked on the second work unit.
|
java.util.Map<java.lang.String,java.lang.Object> |
generateData(java.lang.Object revisionData) |
java.util.List<PersistentCollectionChangeData> |
getCollectionChanges() |
java.lang.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,
java.lang.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, java.lang.String entityName, EnversService enversService, PersistentCollection collection, CollectionEntry collectionEntry, java.io.Serializable snapshot, java.io.Serializable id, java.lang.String referencingPropertyName)
public PersistentCollectionChangeWorkUnit(SessionImplementor sessionImplementor, java.lang.String entityName, EnversService enversService, java.io.Serializable id, java.util.List<PersistentCollectionChangeData> collectionChanges, java.lang.String referencingPropertyName)
public boolean containsWork()
containsWork in interface AuditWorkUnitpublic java.util.Map<java.lang.String,java.lang.Object> generateData(java.lang.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, java.lang.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 java.lang.String getReferencingPropertyName()
public java.util.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 © 2001-2018 Red Hat, Inc. All Rights Reserved.