Class DefaultNaturalKeyImpl
- java.lang.Object
-
- com.evolveum.midpoint.schema.merger.key.DefaultNaturalKeyImpl
-
- All Implemented Interfaces:
NaturalKey
public class DefaultNaturalKeyImpl extends Object implements NaturalKey
ANaturalKeyimplementation 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 voidmergeMatchingKeys(PrismContainerValue<?> targetValue, PrismContainerValue<?> sourceValue)Merges natural key value in target and in source (assuming they match according toNaturalKey.valuesMatch(PrismContainerValue, PrismContainerValue)), i.e.static DefaultNaturalKeyImplof(QName... constituents)booleanvaluesMatch(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: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
-
-