Interface ODataProperty


public interface ODataProperty
A property path for queries, such as Name or Hierarchy/Name. The generated model provides constants implementing this, so queries are checked by the compiler; of(String) works for any path.
  • Method Details

    • path

      String path()
      The path, with / between segments.
      Returns:
      the path, unencoded
    • of

      static ODataProperty of(String path)
      A property path from text.
      Parameters:
      path - the path, with / between segments
      Returns:
      the property
    • eq

      default Filter eq(Object value)
      this eq value.
      Parameters:
      value - the value to compare with, written as an OData literal (ODataLiterals.of(Object)); null isn't allowed, use isNull()
      Returns:
      the comparison
    • ne

      default Filter ne(Object value)
      this ne value.
      Parameters:
      value - the value to compare with, written as an OData literal (ODataLiterals.of(Object)); null isn't allowed, use isNull()
      Returns:
      the comparison
    • gt

      default Filter gt(Object value)
      this gt value.
      Parameters:
      value - the value to compare with, written as an OData literal (ODataLiterals.of(Object)); null isn't allowed, use isNull()
      Returns:
      the comparison
    • ge

      default Filter ge(Object value)
      this ge value.
      Parameters:
      value - the value to compare with, written as an OData literal (ODataLiterals.of(Object)); null isn't allowed, use isNull()
      Returns:
      the comparison
    • lt

      default Filter lt(Object value)
      this lt value.
      Parameters:
      value - the value to compare with, written as an OData literal (ODataLiterals.of(Object)); null isn't allowed, use isNull()
      Returns:
      the comparison
    • le

      default Filter le(Object value)
      this le value.
      Parameters:
      value - the value to compare with, written as an OData literal (ODataLiterals.of(Object)); null isn't allowed, use isNull()
      Returns:
      the comparison
    • isNull

      default Filter isNull()
      this eq null.
      Returns:
      the comparison