Package org.intermine.objectstore.query
Class ObjectStoreBagCombination
- java.lang.Object
-
- org.intermine.objectstore.query.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 operationstatic int
EXCEPT
Constant representing an EXCEPT operationstatic int
INTERSECT
Constant representing an INTERSECTION operationstatic int
UNION
Constant representing a UNION operation
-
Constructor Summary
Constructors Constructor Description ObjectStoreBagCombination(int op)
Constructs a new ObjectStoreBagCombination.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBag(ObjectStoreBag bag)
Adds a bag to this combinationvoid
addBagCombination(ObjectStoreBagCombination combo)
boolean
equals(java.lang.Object o)
java.util.List<QuerySelectable>
getBags()
Returns the List of bags.int
getOp()
Returns the op of this combination.java.lang.Class<?>
getType()
Get Java type represented by this item.int
hashCode()
-
-
-
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
-
-
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 interfaceQuerySelectable
- Returns:
- class describing the type
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-