Class NaturalKeyDefinitionImpl
java.lang.Object
com.evolveum.midpoint.prism.impl.key.NaturalKeyDefinitionImpl
- All Implemented Interfaces:
NaturalKeyDefinition
-
Method Summary
Modifier and TypeMethodDescriptionvoid
mergeMatchingKeys
(PrismContainerValue<?> targetValue, PrismContainerValue<?> sourceValue) Merges natural key value in target and in source (assuming they match according toNaturalKeyDefinition.valuesMatch(PrismContainerValue, PrismContainerValue)
), i.e.static NaturalKeyDefinitionImpl
of
(Collection<QName> constituents) static NaturalKeyDefinitionImpl
boolean
valuesMatch
(PrismContainerValue<?> targetValue, PrismContainerValue<?> sourceValue) Returns `true` if the target and source container values match on their natural key.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.prism.key.NaturalKeyDefinition
getConstituents
-
Method Details
-
of
-
of
-
valuesMatch
Description copied from interface:NaturalKeyDefinition
Returns `true` if the target and source container values match on their natural key. (I.e. they have to be merged/diffed together.)- Specified by:
valuesMatch
in interfaceNaturalKeyDefinition
-
mergeMatchingKeys
public void mergeMatchingKeys(PrismContainerValue<?> targetValue, PrismContainerValue<?> sourceValue) Description copied from interface:NaturalKeyDefinition
Merges natural key value in target and in source (assuming they match according toNaturalKeyDefinition.valuesMatch(PrismContainerValue, PrismContainerValue)
), i.e. updates the key in targetValue if necessary.- Specified by:
mergeMatchingKeys
in interfaceNaturalKeyDefinition
-