Interface DifferenceBetweenTables
- All Superinterfaces:
Difference
Represents the difference between two tables. In a table, records are identified by
their primary keys.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the container.getDeltaOccurrence(PrimaryKey aPrimaryKey) Returns the delta records.voidgetDeltaOccurrences(List<? super DifferenceBetweenOccurrences> aCollection) Adds the delta records to the specified collection.intReturns the total number of delta records.Returns the extra records on the left side.voidgetExtraOccurrencesOnLeft(List<? super ExtraOccurrenceOnLeft> aCollection) Adds the extra records on the left side to the specified collection.intReturns the total number of extra records on the left side.Returns the extra records on the right.voidgetExtraOccurrencesOnRight(List<? super ExtraOccurrenceOnRight> aCollection) Adds the extra records on the right side to the specified collection.intReturns the total number of extra records on the right side.getLeft()Returns the table on the left side.Returns the path of the table on the left side.Returns the path of the table on the right side.getRight()Returns the table on the right side.Methods inherited from interface com.orchestranetworks.service.comparison.Difference
isEmpty, isResolvedMode
-
Method Details
-
getContainer
DifferenceBetweenInstances getContainer()Returns the container. -
getLeft
AdaptationTable getLeft()Returns the table on the left side. -
getPathOnLeft
Path getPathOnLeft()Returns the path of the table on the left side. -
getRight
AdaptationTable getRight()Returns the table on the right side. -
getPathOnRight
Path getPathOnRight()Returns the path of the table on the right side. -
getExtraOccurrencesOnLeft
List<ExtraOccurrenceOnLeft> getExtraOccurrencesOnLeft()Returns the extra records on the left side. These are the records that exist in the table on the left but not in the table on the right.- Returns:
- a
ListofExtraOccurrenceOnLeft.
-
getExtraOccurrenceOnLeft
-
getExtraOccurrencesOnLeft
Adds the extra records on the left side to the specified collection.This is equivalent to:
aCollection.addAll(this.getExtraOccurrencesOnLeft());
-
getExtraOccurrencesOnLeftSize
int getExtraOccurrencesOnLeftSize()Returns the total number of extra records on the left side. -
getExtraOccurrencesOnRight
List<ExtraOccurrenceOnRight> getExtraOccurrencesOnRight()Returns the extra records on the right. These are the records that exist in the table on the right side but not in the table on the left side.- Returns:
- a
ListofExtraOccurrenceOnRight.
-
getExtraOccurrenceOnRight
-
getExtraOccurrencesOnRight
Adds the extra records on the right side to the specified collection.This is equivalent to:
aCollection.addAll(this.getExtraOccurrencesOnRight());
-
getExtraOccurrencesOnRightSize
int getExtraOccurrencesOnRightSize()Returns the total number of extra records on the right side. -
getDeltaOccurrences
List<DifferenceBetweenOccurrences> getDeltaOccurrences()Returns the delta records. These are the records that are defined in both tables (according to their primary keys), but have differences.- Returns:
- a
ListofDifferenceBetweenOccurrences.
-
getDeltaOccurrence
-
getDeltaOccurrences
Adds the delta records to the specified collection.This is equivalent to:
aCollection.addAll(this.getDeltaOccurrences());
-
getDeltaOccurrencesSize
int getDeltaOccurrencesSize()Returns the total number of delta records.
-