Class RelationshipDifferences
java.lang.Object
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Differences
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.RelationshipDifferences
Capture the differences between relationship instances.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Differences
Differences.SidePresent, Differences.ValuePair -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckInstanceProperties(InstanceProperties left, InstanceProperties right) Determine if there is a difference between the provided instance properties, and capture either each of those differences or the similarity.Returns the differences between the first entity proxy of the two relationships.Returns the differences between the second entity proxy of the two relationships.Returns the differences between instance properties of these instances, or null if there either are no instance properties on the instance or the instance properties are the same on both instances.booleanReturns true if the two have any differences (are not equal), otherwise false.booleanReturns true if there are any differences in the entity proxies for the relationships.booleanReturns true if there are any differences between the first entity proxy on the relationships.booleanReturns true if there are any differences between the second entity proxy on the relationships.booleanReturns true if the two have any differences in their instance properties, or false if the instance properties are the same.voidsetEntityProxyOneDifferences(EntityProxyDifferences entityProxyOneDifferences) Set the differences between the first entity proxy of the two relationships.voidsetEntityProxyTwoDifferences(EntityProxyDifferences entityProxyTwoDifferences) Set the differences between the second entity proxy of the two relationships.Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Differences
addOnlyOnOneSide, check, getLeftValue, getNames, getOnlyOnLeft, getOnlyOnRight, getRightValue, isDifferent
-
Constructor Details
-
RelationshipDifferences
public RelationshipDifferences()
-
-
Method Details
-
hasDifferences
public boolean hasDifferences()Returns true if the two have any differences (are not equal), otherwise false.- Overrides:
hasDifferencesin classDifferences- Returns:
- boolean
-
hasEntityProxyDifferences
public boolean hasEntityProxyDifferences()Returns true if there are any differences in the entity proxies for the relationships.- Returns:
- boolean
-
hasEntityProxyOneDifferences
public boolean hasEntityProxyOneDifferences()Returns true if there are any differences between the first entity proxy on the relationships.- Returns:
- boolean
-
hasEntityProxyTwoDifferences
public boolean hasEntityProxyTwoDifferences()Returns true if there are any differences between the second entity proxy on the relationships.- Returns:
- boolean
-
setEntityProxyOneDifferences
Set the differences between the first entity proxy of the two relationships.- Parameters:
entityProxyOneDifferences- the differences calculated for entity proxy one
-
getEntityProxyOneDifferences
Returns the differences between the first entity proxy of the two relationships.- Returns:
- EntityProxyDifferences
-
setEntityProxyTwoDifferences
Set the differences between the second entity proxy of the two relationships.- Parameters:
entityProxyTwoDifferences- the differences calculated for entity proxy two
-
getEntityProxyTwoDifferences
Returns the differences between the second entity proxy of the two relationships.- Returns:
- EntityProxyDifferences
-
hasInstancePropertiesDifferences
public boolean hasInstancePropertiesDifferences()Returns true if the two have any differences in their instance properties, or false if the instance properties are the same.- Returns:
- boolean
-
getInstancePropertiesDifferences
Returns the differences between instance properties of these instances, or null if there either are no instance properties on the instance or the instance properties are the same on both instances.- Returns:
- InstancePropertiesDifferences
-
checkInstanceProperties
Determine if there is a difference between the provided instance properties, and capture either each of those differences or the similarity.- Parameters:
left- the instance properties from the first instanceright- the instance properties from the second instance
-