Package org.alfresco.util.schemacomp
Class Results
java.lang.Object
org.alfresco.util.schemacomp.Results
Collects differences so that tools can report on or respond to differences between database schemas.
- Author:
- Matt Ward
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Difference.Where where, DbProperty left, DbProperty right) Record a difference between two objects, or specify that an object only appears in either the 'left' or 'right' schemas.voidget(int i) Get the ith result.iterator()Obtain an iterator for the top-level items held in this schema - since this is a hierarchical model, deeper items are obtained by navigating through the top-level items.intsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Results
public Results()
-
-
Method Details
-
add
Record a difference between two objects, or specify that an object only appears in either the 'left' or 'right' schemas.- Parameters:
where- The type of difference, seeDifference.Whereleft- Left value, or null if the item appears in the right, but not left schema.right- Right value, or null if the item appears in the left, but not right schema.
-
add
-
iterator
Obtain an iterator for the top-level items held in this schema - since this is a hierarchical model, deeper items are obtained by navigating through the top-level items. -
get
Get the ith result.- Parameters:
i- int- Returns:
- Result
-
size
public int size()- Returns:
- How many top-level items are in the schema.
-