Class DefaultNaturalKeyImpl
- java.lang.Object
-
- com.evolveum.midpoint.schema.merger.key.DefaultNaturalKeyImpl
-
- All Implemented Interfaces:
NaturalKey
public class DefaultNaturalKeyImpl extends Object implements NaturalKey
ANaturalKey
implementation that uses a simple list of constituent items to compare container values. No specific key merging is provided.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
of(QName... constituents)
boolean
valuesMatch(PrismContainerValue<?> targetValue, PrismContainerValue<?> sourceValue)
Returns `true` if the target and source container values match on their natural key.
-
-
-
Method Detail
-
of
public static DefaultNaturalKeyImpl of(QName... constituents)
-
valuesMatch
public boolean valuesMatch(PrismContainerValue<?> targetValue, PrismContainerValue<?> sourceValue)
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
-
-