Package org.intermine.objectstore.query
Class PathExpressionField
- java.lang.Object
-
- org.intermine.objectstore.query.PathExpressionField
-
- All Implemented Interfaces:
QueryPathExpression
,QuerySelectable
public class PathExpressionField extends java.lang.Object implements QueryPathExpression
An element that can appear in the SELECT clause of a query, representing extra data to be collected for the Results - namely a part of the SELECT list of a QueryObjectPathExpression in single-row mode.- Author:
- Matthew Wakeling
-
-
Constructor Summary
Constructors Constructor Description PathExpressionField(QueryObjectPathExpression qope, int fieldNumber)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getFieldNumber()
Returns the field number.QueryObjectPathExpression
getQope()
Returns the QueryObjectPathExpression.java.lang.Class<?>
getType()
Get Java type represented by this item.int
hashCode()
-
-
-
Constructor Detail
-
PathExpressionField
public PathExpressionField(QueryObjectPathExpression qope, int fieldNumber)
Constructor.- Parameters:
qope
- a QueryObjectPathExpression objectfieldNumber
- the number of the field from the path expression to represent
-
-
Method Detail
-
getQope
public QueryObjectPathExpression getQope()
Returns the QueryObjectPathExpression.- Returns:
- the qope
-
getFieldNumber
public int getFieldNumber()
Returns the field number.- Returns:
- fieldNumber
-
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
-
-