Class 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 Detail

      • PathExpressionField

        public PathExpressionField​(QueryObjectPathExpression qope,
                                   int fieldNumber)
        Constructor.
        Parameters:
        qope - a QueryObjectPathExpression object
        fieldNumber - the number of the field from the path expression to represent
    • Method Detail

      • 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 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