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 AuditStrategyprotected final Stringprotected final EnversServiceprotected final Objectprotected final RevisionTypeprotected final SessionImplementor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractAuditWorkUnit(SessionImplementor sessionImplementor, String entityName, EnversService enversService, Object id, RevisionType revisionType) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfillDataWithId(Map<String, Object> data, Object revision) booleanvoidPerform this work unit in the given session.protected voidsetPerformed(Object performedData) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.envers.internal.synchronization.work.AuditWorkUnit
containsWork, generateDataMethods 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:AuditWorkUnitPerform this work unit in the given session.- Specified by:
performin 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:
getEntityIdin interfaceAuditWorkUnit
-
isPerformed
public boolean isPerformed()- Specified by:
isPerformedin interfaceAuditWorkUnit
-
getEntityName
- Specified by:
getEntityNamein interfaceAuditWorkUnit
-
setPerformed
-
undo
- Specified by:
undoin interfaceAuditWorkUnit
-
getRevisionType
- Specified by:
getRevisionTypein interfaceAuditWorkUnit- Returns:
- Performed modification type.
-