Class AbstractAuditWorkUnit
java.lang.Object
org.hibernate.envers.internal.synchronization.work.AbstractAuditWorkUnit
- All Implemented Interfaces:
AuditWorkUnit
,WorkUnitMergeDispatcher
,WorkUnitMergeVisitor
- Direct Known Subclasses:
AddWorkUnit
,CollectionChangeWorkUnit
,DelWorkUnit
,FakeBidirectionalRelationWorkUnit
,ModWorkUnit
,PersistentCollectionChangeWorkUnit
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AuditStrategy
protected final String
protected final EnversService
protected final Object
protected final RevisionType
protected final SessionImplementor
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractAuditWorkUnit
(SessionImplementor sessionImplementor, String entityName, EnversService enversService, Object id, RevisionType revisionType) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
fillDataWithId
(Map<String, Object> data, Object revision) boolean
void
Perform this work unit in the given session.protected void
setPerformed
(Object performedData) void
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
containsWork, generateData
Methods inherited from interface org.hibernate.envers.internal.synchronization.work.WorkUnitMergeDispatcher
dispatch
-
Field Details
-
sessionImplementor
-
enversService
-
id
-
entityName
-
auditStrategy
-
revisionType
-
-
Constructor Details
-
AbstractAuditWorkUnit
protected AbstractAuditWorkUnit(SessionImplementor sessionImplementor, String entityName, EnversService enversService, Object id, RevisionType revisionType)
-
-
Method Details
-
fillDataWithId
-
perform
Description copied from interface:AuditWorkUnit
Perform this work unit in the given session.- Specified by:
perform
in interfaceAuditWorkUnit
- Parameters:
session
- 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.
-
getEntityId
- Specified by:
getEntityId
in interfaceAuditWorkUnit
-
isPerformed
public boolean isPerformed()- Specified by:
isPerformed
in interfaceAuditWorkUnit
-
getEntityName
- Specified by:
getEntityName
in interfaceAuditWorkUnit
-
setPerformed
-
undo
- Specified by:
undo
in interfaceAuditWorkUnit
-
getRevisionType
- Specified by:
getRevisionType
in interfaceAuditWorkUnit
- Returns:
- Performed modification type.
-