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 org.hibernate.engine.spi.SharedSessionContractImplementor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractAuditWorkUnit(org.hibernate.engine.spi.SharedSessionContractImplementor 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) voidundo(org.hibernate.engine.spi.SharedSessionContractImplementor session) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AuditWorkUnit
containsWork, generateDataMethods inherited from interface WorkUnitMergeDispatcher
dispatch
-
Field Details
-
sessionImplementor
protected final org.hibernate.engine.spi.SharedSessionContractImplementor sessionImplementor -
enversService
-
id
-
entityName
-
auditStrategy
-
revisionType
-
-
Constructor Details
-
Method Details
-
fillDataWithId
-
getEntityId
- Specified by:
getEntityIdin interfaceAuditWorkUnit
-
isPerformed
public boolean isPerformed()- Specified by:
isPerformedin interfaceAuditWorkUnit
-
getEntityName
- Specified by:
getEntityNamein interfaceAuditWorkUnit
-
setPerformed
-
getRevisionType
- Specified by:
getRevisionTypein interfaceAuditWorkUnit- Returns:
- Performed modification type.
-