Class Results

  • All Implemented Interfaces:
    Iterable<Result>

    public class Results
    extends Object
    implements Iterable<Result>
    Collects differences so that tools can report on or respond to differences between database schemas.
    Author:
    Matt Ward
    • Constructor Detail

      • Results

        public Results()
    • Method Detail

      • add

        public void add​(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.
        Parameters:
        where - The type of difference, see Difference.Where
        left - 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

        public void add​(Result result)
      • iterator

        public Iterator<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.
        Specified by:
        iterator in interface Iterable<Result>
      • get

        public Result get​(int i)
        Get the ith result.
        Parameters:
        i - int
        Returns:
        Result
      • size

        public int size()
        Returns:
        How many top-level items are in the schema.