Class DelWorkUnit
java.lang.Object
org.hibernate.envers.internal.synchronization.work.AbstractAuditWorkUnit
org.hibernate.envers.internal.synchronization.work.DelWorkUnit
- All Implemented Interfaces:
AuditWorkUnit
,WorkUnitMergeDispatcher
,WorkUnitMergeVisitor
-
Field Summary
Fields inherited from class org.hibernate.envers.internal.synchronization.work.AbstractAuditWorkUnit
auditStrategy, entityName, enversService, id, revisionType, sessionImplementor
-
Constructor Summary
ConstructorsConstructorDescriptionDelWorkUnit
(SessionImplementor sessionImplementor, String entityName, EnversService enversService, Object id, EntityPersister entityPersister, Object[] state) -
Method Summary
Modifier and TypeMethodDescriptionboolean
dispatch
(WorkUnitMergeVisitor first) Should be invoked on the second work unit.generateData
(Object revisionData) merge
(AddWorkUnit second) merge
(CollectionChangeWorkUnit second) merge
(DelWorkUnit second) merge
(ModWorkUnit second) Methods inherited from class org.hibernate.envers.internal.synchronization.work.AbstractAuditWorkUnit
fillDataWithId, getEntityId, getEntityName, getRevisionType, isPerformed, perform, setPerformed, undo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.envers.internal.synchronization.work.AuditWorkUnit
getEntityId, getEntityName, getRevisionType, isPerformed, perform, undo
-
Constructor Details
-
DelWorkUnit
public DelWorkUnit(SessionImplementor sessionImplementor, String entityName, EnversService enversService, Object id, EntityPersister entityPersister, Object[] state)
-
-
Method Details
-
containsWork
public boolean containsWork()- Specified by:
containsWork
in interfaceAuditWorkUnit
-
generateData
- Specified by:
generateData
in interfaceAuditWorkUnit
- Parameters:
revisionData
- The current revision data, which will be used to populate the work unit with the correct revision relation.- Returns:
- Generates data that should be saved when performing this work unit.
-
merge
- Specified by:
merge
in interfaceWorkUnitMergeVisitor
-
merge
- Specified by:
merge
in interfaceWorkUnitMergeVisitor
-
merge
- Specified by:
merge
in interfaceWorkUnitMergeVisitor
-
merge
- Specified by:
merge
in interfaceWorkUnitMergeVisitor
-
merge
- Specified by:
merge
in interfaceWorkUnitMergeVisitor
-
dispatch
Description copied from interface:WorkUnitMergeDispatcher
Should be invoked on the second work unit.- Specified by:
dispatch
in interfaceWorkUnitMergeDispatcher
- Parameters:
first
- First work unit (that is, the one added earlier).- Returns:
- The work unit that is the result of the merge.
-