Interface Query

  • All Superinterfaces:
    PaginationContext<Query>, ParameterContext<Query>

    public interface Query
    extends PaginationContext<Query>, ParameterContext<Query>
    An immutable object representing both the query and the result. The result is obtained lazily when one of the methods in this interface is executed first time. The query is executed only once. Further calls will just return the previously cached results. If you intend to re-execute the query to obtain fresh data you need to build another instance using a QueryBuilder.
    • Method Detail

      • getQueryString

        java.lang.String getQueryString()
        Returns the Ickle query string.
      • list

        <T> java.util.List<T> list()
        Returns the results of a search as a list.
        list of objects that were found from the search.
      • getResultSize

        int getResultSize()
        Gets the total number of results matching the query, ignoring pagination (firstResult, maxResult).
        total number of results.
      • getProjection

        java.lang.String[] getProjection()
        the values for query projections or null if the query does not have projections.