Class QuerySpec

java.lang.Object
com.flowingcode.backendcore.model.QuerySpec

public class QuerySpec extends Object
  • Constructor Details

    • QuerySpec

      public QuerySpec()
  • Method Details

    • addOrder

      public void addOrder(String property, QuerySpec.Order order)
    • addOrder

      public void addOrder(String property)
    • addConstraint

      public void addConstraint(Constraint constraint)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getFirstResult

      public Integer getFirstResult()
      Return the position of the first result to retrieve.
      Returns:
      the position of the first result to retrieve (numbered from 0) or null.
    • getMaxResult

      public Integer getMaxResult()
      Return the maximum number of results to retrieve.
      Returns:
      the maximum number of results to retrieve, or null.
    • setFirstResult

      public void setFirstResult(Integer firstResult)
      Set the position of the first result to retrieve.
      Parameters:
      startPosition - position of the first result, numbered from 0 (may be null)
      Throws:
      IllegalArgumentException - if the argument is negative
    • setMaxResult

      public void setMaxResult(Integer maxResult)
      Set the maximum number of results to retrieve.
      Parameters:
      maxResult - maximum number of results to retrieve (may be null)
      Throws:
      IllegalArgumentException - if the argument is negative