Class QueryParams


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

      Constructors 
      Constructor Description
      QueryParams()
      Create a new instance of QueryParams initialized with default values.
    • Constructor Detail

      • QueryParams

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

      • addArg

        public QueryParams addArg​(java.lang.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​(java.util.List<java.lang.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​(java.lang.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 java.lang.String[] getOrderingAsEncodedArray()
      • getArgs

        public java.lang.String[] getArgs()