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 TypeMethodDescriptionvoid
mergeMatchingKeys
(PrismContainerValue<?> targetValue, PrismContainerValue<?> sourceValue) Merges natural key value in target and in source (assuming they match according toNaturalKey.valuesMatch(PrismContainerValue, PrismContainerValue)
), i.e.static DefaultNaturalKeyImpl
boolean
valuesMatch
(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:NaturalKey
Returns `true` if the target and source container values match on their natural key. (I.e. they have to be merged together.)- Specified by:
valuesMatch
in interfaceNaturalKey
-
mergeMatchingKeys
public void mergeMatchingKeys(PrismContainerValue<?> targetValue, PrismContainerValue<?> sourceValue) Description copied from interface:NaturalKey
Merges 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:
mergeMatchingKeys
in interfaceNaturalKey
-