Interface CriteriaBuilder<T>

    • Method Detail

      • getQueryRootCountQuery

        javax.persistence.TypedQuery<Long> getQueryRootCountQuery()
        Returns a query that counts the distinct query root results that would be produced if the current query was run.
        Returns:
        A query for determining the count of the distinct query root result list represented by this query builder
        Since:
        1.3.0
      • getQueryRootCountQueryString

        String getQueryRootCountQueryString()
        Returns the query string that selects the distinct count of query root elements.
        Returns:
        The query string
        Since:
        1.3.0
      • getQueryRootCountQuery

        javax.persistence.TypedQuery<Long> getQueryRootCountQuery​(long maximumCount)
        Returns a query that counts the distinct query root results and counts up to the maximum value that is given that would be produced if the current query was run.
        Parameters:
        maximumCount - the maximum value up to which should be counted
        Returns:
        A query for determining the count of the distinct query root result list represented by this query builder
        Since:
        1.5.0
      • getQueryRootCountQueryString

        String getQueryRootCountQueryString​(long maximumCount)
        Returns the query string that selects the distinct count of query root elements and counts up to the maximum value that is given.
        Parameters:
        maximumCount - the maximum value up to which should be counted
        Returns:
        The query string
        Since:
        1.5.0
      • copy

        <Y> CriteriaBuilder<Y> copy​(Class<Y> resultClass)
        Description copied from interface: FullQueryBuilder
        Copies this query builder into a new one, using it's projection as an overridable default.
        Specified by:
        copy in interface FullQueryBuilder<T,​CriteriaBuilder<T>>
        Type Parameters:
        Y - The type of the result class
        Parameters:
        resultClass - The result class of the query
        Returns:
        A new query builder
      • selectNew

        <Y> CriteriaBuilder<Y> selectNew​(ObjectBuilder<Y> builder)
        Description copied from interface: FullQueryBuilder
        Applies the given object builder to this query. The object builder provides the select clauses and is used to transform the result set tuples.
        Specified by:
        selectNew in interface FullQueryBuilder<T,​CriteriaBuilder<T>>
        Type Parameters:
        Y - The new query result type specified by the given class
        Parameters:
        builder - The object builder which transforms the result set into objects of type Y
        Returns:
        The query builder for chaining calls