Class NaturalKeyDefinitionImpl
java.lang.Object
com.evolveum.midpoint.prism.impl.key.NaturalKeyDefinitionImpl
- All Implemented Interfaces:
NaturalKeyDefinition
-
Method Summary
Modifier and TypeMethodDescriptionvoidmergeMatchingKeys(PrismContainerValue<?> targetValue, PrismContainerValue<?> sourceValue) Merges natural key value in target and in source (assuming they match according toNaturalKeyDefinition.valuesMatch(PrismContainerValue, PrismContainerValue)), i.e.static NaturalKeyDefinitionImplof(Collection<QName> constituents) static NaturalKeyDefinitionImplbooleanvaluesMatch(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, waitMethods inherited from interface com.evolveum.midpoint.prism.key.NaturalKeyDefinition
getConstituents
-
Method Details
-
of
-
of
-
valuesMatch
Description copied from interface:NaturalKeyDefinitionReturns `true` if the target and source container values match on their natural key. (I.e. they have to be merged/diffed together.)- Specified by:
valuesMatchin interfaceNaturalKeyDefinition
-
mergeMatchingKeys
public void mergeMatchingKeys(PrismContainerValue<?> targetValue, PrismContainerValue<?> sourceValue) Description copied from interface:NaturalKeyDefinitionMerges 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:
mergeMatchingKeysin interfaceNaturalKeyDefinition
-