Class Results

  • All Implemented Interfaces:
    java.lang.Iterable<Result>

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

      Constructors 
      Constructor Description
      Results()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      void add​(Result result)  
      Result get​(int i)
      Get the ith result.
      java.util.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.
      int size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • 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 java.util.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 java.lang.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.