Package com._1c.g5.v8.dt.compare.merge
Class MergeContext
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.merge.MergeContext
-
public class MergeContext extends Object
A context to store all information needed on merge process.
-
-
Field Summary
Fields Modifier and Type Field Description ComparisonContext
comparisonContext
The comparison context.boolean
customMergeAvailable
The custom merge available flag.IMergeSession
mergeSession
The merge session.TopComparisonNode
topNode
The top node being merged.AbstractComparedEmfObjects<?>
topParents
The triple of topEObject
s being merged related to the top node.
-
Constructor Summary
Constructors Constructor Description MergeContext(ComparisonContext comparisonContext, IMergeSession mergeSession, TopComparisonNode topNode, AbstractComparedEmfObjects<?> topParents)
Creates context instance.MergeContext(MergeContext mergeContext, boolean customMergeAvailable)
Creates context instance based on given context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IBmTransaction
getMergeBmTransaction()
Gets the merge BM transaction.
-
-
-
Field Detail
-
comparisonContext
public final ComparisonContext comparisonContext
The comparison context.
-
mergeSession
public final IMergeSession mergeSession
The merge session.
-
topNode
public final TopComparisonNode topNode
The top node being merged.
-
topParents
public final AbstractComparedEmfObjects<?> topParents
The triple of topEObject
s being merged related to the top node.
-
customMergeAvailable
public final boolean customMergeAvailable
The custom merge available flag.
-
-
Constructor Detail
-
MergeContext
public MergeContext(ComparisonContext comparisonContext, IMergeSession mergeSession, TopComparisonNode topNode, AbstractComparedEmfObjects<?> topParents)
Creates context instance.- Parameters:
comparisonContext
- the comparison context, cannot benull
mergeSession
- the merge session, cannot benull
topNode
- the top node being merged, cannot benull
topParents
- the triple of top EObjects, can benull
for non-model entities
-
MergeContext
public MergeContext(MergeContext mergeContext, boolean customMergeAvailable)
Creates context instance based on given context.- Parameters:
mergeContext
- the base context, cannot benull
.customMergeAvailable
- the custom merge available flag.
-
-
Method Detail
-
getMergeBmTransaction
public IBmTransaction getMergeBmTransaction()
Gets the merge BM transaction.- Returns:
- The merge transaction, cannot be
null
.
-
-