Class ObjectStoreBagCombination

  • All Implemented Interfaces:
    QuerySelectable

    public class ObjectStoreBagCombination
    extends java.lang.Object
    implements QuerySelectable
    Object representing a combination of ObjectStoreBags.
    Author:
    Matthew Wakeling
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALLBUTINTERSECT
      Constant representing an all but intersect operation
      static int EXCEPT
      Constant representing an EXCEPT operation
      static int INTERSECT
      Constant representing an INTERSECTION operation
      static int UNION
      Constant representing a UNION operation
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectStoreBagCombination​(int op)
      Constructs a new ObjectStoreBagCombination.
    • Field Detail

      • UNION

        public static final int UNION
        Constant representing a UNION operation
        See Also:
        Constant Field Values
      • INTERSECT

        public static final int INTERSECT
        Constant representing an INTERSECTION operation
        See Also:
        Constant Field Values
      • EXCEPT

        public static final int EXCEPT
        Constant representing an EXCEPT operation
        See Also:
        Constant Field Values
      • ALLBUTINTERSECT

        public static final int ALLBUTINTERSECT
        Constant representing an all but intersect operation
        See Also:
        Constant Field Values
    • Constructor Detail

      • ObjectStoreBagCombination

        public ObjectStoreBagCombination​(int op)
        Constructs a new ObjectStoreBagCombination.
        Parameters:
        op - the type of combination, out of UNION, INTERSECT, and EXCEPT
    • Method Detail

      • addBag

        public void addBag​(ObjectStoreBag bag)
        Adds a bag to this combination
        Parameters:
        bag - an ObjectStoreBag
      • addBagCombination

        public void addBagCombination​(ObjectStoreBagCombination combo)
        Parameters:
        combo - a combination of ObjectStoreBags.
      • getOp

        public int getOp()
        Returns the op of this combination.
        Returns:
        an int
      • getBags

        public java.util.List<QuerySelectable> getBags()
        Returns the List of bags.
        Returns:
        a List of ObjectStoreBags
      • getType

        public java.lang.Class<?> getType()
        Get Java type represented by this item.
        Specified by:
        getType in interface QuerySelectable
        Returns:
        class describing the type
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object