Interface PathExpression

    • Method Detail

      • get

        PathExpression get​(java.lang.String attributeName)
        Return a path expression corresponding to the referenced attribute. It is not permitted to invoke this method on a path expression that corresponds to a multi-valued association or element collection. The path expression on which this method is invoked must correspond to a class containing the referenced attribute.
        Parameters:
        attributeName - - name of the referenced attribute
        Returns:
        path expression
      • type

        Expression type()
        Return an expression that corresponds to the type of the entity. This method can only be invoked on a path expression corresponding to an entity. It is not permitted to invoke this method on a path expression that corresponds to a multi-valued association.
        Returns:
        expression denoting the entity's type
      • size

        Expression size()
        Return an expression that corresponds to the number of elements association or element collection corresponding to the path expression. This method can only be invoked on a path expression that corresponds to a multi-valued association or to an element collection.
        Returns:
        expression denoting the size
      • isEmpty

        Predicate isEmpty()
        Add a restriction that the path expression must correspond to an association or element collection that is empty (has no elements). This method can only be invoked on a path expression that corresponds to a multi-valued association or to an element collection.
        Returns:
        predicate corresponding to the restriction
      • avg

        Aggregate avg()
        Specify that the avg operation is to be applied. The path expression must correspond to an attribute of a numeric type. It is not permitted to invoke this method on a path expression that corresponds to a multi-valued association or element collection.
        Returns:
        the resulting aggregate
      • max

        Aggregate max()
        Specify that the max operation is to be applied. The path expression must correspond to an attribute of an orderable type. It is not permitted to invoke this method on a path expression that corresponds to a multi-valued association or element collection.
        Returns:
        the resulting aggregate
      • min

        Aggregate min()
        Specify that the min operation is to be applied. The path expression must correspond to an attribute of an orderable type. It is not permitted to invoke this method on a path expression that corresponds to a multi-valued association or element collection.
        Returns:
        the resulting aggregate
      • count

        Aggregate count()
        Specify that the count operation is to be applied. It is not permitted to invoke this method on a path expression that corresponds to a multi-valued association or element collection.
        Returns:
        the resulting aggregate
      • sum

        Aggregate sum()
        Specify that the sum operation is to be applied. The path expression must correspond to an attribute of a numeric type. It is not permitted to invoke this method on a path expression that corresponds to a multi-valued association or element collection.
        Returns:
        the resulting aggregate