Package org.intermine.objectstore.query
Interface QueryEvaluable
-
- All Superinterfaces:
QueryNode
,QueryOrderable
,QuerySelectable
- All Known Implementing Classes:
QueryCast
,QueryExpression
,QueryField
,QueryForeignKey
,QueryFunction
,QueryValue
,WidthBucketFunction
public interface QueryEvaluable extends QueryNode
An element that can be evaluated for comparison (one that represents an atomic type)- Author:
- Mark Woodbridge, Richard Smith, Matthew Wakeling
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getApproximateType()
Returns an integer representing the approximate type of this QueryEvaluable, in the case where an accurate type cannot be ascertained.void
youAreType(java.lang.Class<?> cls)
Allows a caller to suggest to this object that it holds a value of a certain type.-
Methods inherited from interface org.intermine.objectstore.query.QueryOrderable
getType
-
Methods inherited from interface org.intermine.objectstore.query.QuerySelectable
getType
-
-
-
-
Method Detail
-
youAreType
void youAreType(java.lang.Class<?> cls)
Allows a caller to suggest to this object that it holds a value of a certain type. This method should only be called on objects which report their type to be UnknownTypeValue. Otherwise, this method will throw and exception.- Parameters:
cls
- the Class of the type to be imposed on this object
-
getApproximateType
int getApproximateType()
Returns an integer representing the approximate type of this QueryEvaluable, in the case where an accurate type cannot be ascertained.- Returns:
- an int, as described in UnknownTypeValue
-
-