Package org.intermine.objectstore.query
Class ObjectStoreBagsForObject
- java.lang.Object
-
- org.intermine.objectstore.query.ObjectStoreBagsForObject
-
- All Implemented Interfaces:
QuerySelectable
public class ObjectStoreBagsForObject extends java.lang.Object implements QuerySelectable
Object representing a query to fetch ObjectStoreBag IDs for ObjectStoreBags that contain a certain value.- Author:
- Matthew Wakeling
-
-
Constructor Summary
Constructors Constructor Description ObjectStoreBagsForObject(java.lang.Integer value)
Constructs a new ObjectStoreBagsForObject with no limit on the ObjectStoreBags returned.ObjectStoreBagsForObject(java.lang.Integer value, java.util.Collection<ObjectStoreBag> bags)
Constructs a new ObjectStoreBagsForObject with a limited set of ObjectStoreBags that can be present in the results.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.Collection<ObjectStoreBag>
getBags()
Returns the Collection of bags.java.lang.Class<?>
getType()
Get Java type represented by this item.java.lang.Integer
getValue()
Returns the value.int
hashCode()
-
-
-
Constructor Detail
-
ObjectStoreBagsForObject
public ObjectStoreBagsForObject(java.lang.Integer value)
Constructs a new ObjectStoreBagsForObject with no limit on the ObjectStoreBags returned.- Parameters:
value
- the value to look for in the bags
-
ObjectStoreBagsForObject
public ObjectStoreBagsForObject(java.lang.Integer value, java.util.Collection<ObjectStoreBag> bags)
Constructs a new ObjectStoreBagsForObject with a limited set of ObjectStoreBags that can be present in the results.- Parameters:
value
- the value to look for in the bagsbags
- a Collection of ObjectStoreBag objects which may be present in the results
-
-
Method Detail
-
getValue
public java.lang.Integer getValue()
Returns the value.- Returns:
- an Integer
-
getBags
public java.util.Collection<ObjectStoreBag> getBags()
Returns the Collection of bags.- Returns:
- a Collection 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
-
-