Class QueryParams

java.lang.Object
com.caplin.jtm.persistence.QueryParams

public class QueryParams extends Object
Class holding additional information to customize a persistence query.
  • Constructor Details

    • QueryParams

      public QueryParams()
      Create a new instance of QueryParams initialized with default values.
  • Method Details

    • addArg

      public QueryParams addArg(String argument)
      Add an argument to the list of arguments
      Parameters:
      argument - argument to be added
      Returns:
      this instance of QueryParams
    • addArgs

      public QueryParams addArgs(List<String> argument)
      Add multiple arguments to the list of arguments
      Parameters:
      argument - arguments to be added
      Returns:
      this instance of QueryParams
    • addOrdering

      public QueryParams addOrdering(String fieldName, Ordering order)
      Add a criterion to the List of ordering criteria
      Parameters:
      fieldName - The field to be ordered on
      order - Ordering specifying the sort order to be applied to the field specified in fieldName
      Returns:
      this instance of QueryParams
    • setLimit

      public QueryParams setLimit(long limit)
      Set the maximum number of rows to be returned by the query
      Parameters:
      limit - maximum number of rows to be returned by the query
      Returns:
      this instance of QueryParams
    • getLimit

      public long getLimit()
    • getOrderingAsEncodedArray

      public String[] getOrderingAsEncodedArray()
    • getArgs

      public String[] getArgs()