Class DefaultNaturalKeyImpl
java.lang.Object
com.evolveum.midpoint.schema.merger.key.DefaultNaturalKeyImpl
- All Implemented Interfaces:
NaturalKey
A
NaturalKey implementation that uses a simple list of constituent items to compare container values.
No specific key merging is provided.-
Method Summary
Modifier and TypeMethodDescriptionvoidmergeMatchingKeys(PrismContainerValue<?> targetValue, PrismContainerValue<?> sourceValue) Merges natural key value in target and in source (assuming they match according toNaturalKey.valuesMatch(PrismContainerValue, PrismContainerValue)), i.e.static DefaultNaturalKeyImplbooleanvaluesMatch(PrismContainerValue<?> targetValue, PrismContainerValue<?> sourceValue) Returns `true` if the target and source container values match on their natural key.
-
Method Details
-
of
-
valuesMatch
Description copied from interface:NaturalKeyReturns `true` if the target and source container values match on their natural key. (I.e. they have to be merged together.)- Specified by:
valuesMatchin interfaceNaturalKey
-
mergeMatchingKeys
public void mergeMatchingKeys(PrismContainerValue<?> targetValue, PrismContainerValue<?> sourceValue) Description copied from interface:NaturalKeyMerges natural key value in target and in source (assuming they match according toNaturalKey.valuesMatch(PrismContainerValue, PrismContainerValue)), i.e. updates the key in targetValue if necessary.- Specified by:
mergeMatchingKeysin interfaceNaturalKey
-