public class FakeBidirectionalRelationWorkUnit extends AbstractAuditWorkUnit implements AuditWorkUnit
@OneToMany+@JoinColumn
and
@ManyToOne+@Column(insertable=false, updatable=false)
.auditStrategy, entityName, enversService, id, revisionType, sessionImplementor
Constructor and Description |
---|
FakeBidirectionalRelationWorkUnit(FakeBidirectionalRelationWorkUnit original,
AuditWorkUnit nestedWorkUnit) |
FakeBidirectionalRelationWorkUnit(FakeBidirectionalRelationWorkUnit original,
Map<String,org.hibernate.envers.internal.synchronization.work.FakeBidirectionalRelationWorkUnit.FakeRelationChange> fakeRelationChanges,
AuditWorkUnit nestedWorkUnit) |
FakeBidirectionalRelationWorkUnit(SessionImplementor sessionImplementor,
String entityName,
EnversService enversService,
Serializable id,
String referencingPropertyName,
Object owningEntity,
RelationDescription rd,
RevisionType revisionType,
Object index,
AuditWorkUnit nestedWorkUnit) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsWork() |
AuditWorkUnit |
dispatch(WorkUnitMergeVisitor first)
Should be invoked on the second work unit.
|
Map<String,Object> |
generateData(Object revisionData) |
Map<String,org.hibernate.envers.internal.synchronization.work.FakeBidirectionalRelationWorkUnit.FakeRelationChange> |
getFakeRelationChanges() |
AuditWorkUnit |
getNestedWorkUnit() |
AuditWorkUnit |
merge(AddWorkUnit second) |
AuditWorkUnit |
merge(CollectionChangeWorkUnit second) |
AuditWorkUnit |
merge(DelWorkUnit second) |
AuditWorkUnit |
merge(FakeBidirectionalRelationWorkUnit second) |
static AuditWorkUnit |
merge(FakeBidirectionalRelationWorkUnit frwu,
AuditWorkUnit nestedFirst,
AuditWorkUnit nestedSecond) |
AuditWorkUnit |
merge(ModWorkUnit second) |
fillDataWithId, getEntityId, getEntityName, getRevisionType, isPerformed, perform, setPerformed, undo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntityId, getEntityName, getRevisionType, isPerformed, perform, undo
public FakeBidirectionalRelationWorkUnit(SessionImplementor sessionImplementor, String entityName, EnversService enversService, Serializable id, String referencingPropertyName, Object owningEntity, RelationDescription rd, RevisionType revisionType, Object index, AuditWorkUnit nestedWorkUnit)
public FakeBidirectionalRelationWorkUnit(FakeBidirectionalRelationWorkUnit original, Map<String,org.hibernate.envers.internal.synchronization.work.FakeBidirectionalRelationWorkUnit.FakeRelationChange> fakeRelationChanges, AuditWorkUnit nestedWorkUnit)
public FakeBidirectionalRelationWorkUnit(FakeBidirectionalRelationWorkUnit original, AuditWorkUnit nestedWorkUnit)
public AuditWorkUnit getNestedWorkUnit()
public Map<String,org.hibernate.envers.internal.synchronization.work.FakeBidirectionalRelationWorkUnit.FakeRelationChange> getFakeRelationChanges()
public boolean containsWork()
containsWork
in interface AuditWorkUnit
public Map<String,Object> generateData(Object revisionData)
generateData
in interface AuditWorkUnit
revisionData
- The current revision data, which will be used to populate the work unit with the correct
revision relation.public AuditWorkUnit merge(AddWorkUnit second)
merge
in interface WorkUnitMergeVisitor
public AuditWorkUnit merge(ModWorkUnit second)
merge
in interface WorkUnitMergeVisitor
public AuditWorkUnit merge(DelWorkUnit second)
merge
in interface WorkUnitMergeVisitor
public AuditWorkUnit merge(CollectionChangeWorkUnit second)
merge
in interface WorkUnitMergeVisitor
public AuditWorkUnit merge(FakeBidirectionalRelationWorkUnit second)
merge
in interface WorkUnitMergeVisitor
public AuditWorkUnit dispatch(WorkUnitMergeVisitor first)
WorkUnitMergeDispatcher
dispatch
in interface WorkUnitMergeDispatcher
first
- First work unit (that is, the one added earlier).public static AuditWorkUnit merge(FakeBidirectionalRelationWorkUnit frwu, AuditWorkUnit nestedFirst, AuditWorkUnit nestedSecond)
Copyright © 2021 JBoss by Red Hat. All rights reserved.