Class CountDSL<R>

  • Type Parameters:
    R - the type of model built by this Builder. Typically SelectModel.
    All Implemented Interfaces:
    Buildable<R>

    public class CountDSL<R>
    extends AbstractQueryExpressionDSL<CountDSL<R>,​R>
    implements Buildable<R>
    DSL for building count queries. Count queries are specializations of select queries. They have joins and where clauses, but not the other parts of a select (group by, order by, etc.) Count queries always return a long. If these restrictions are not acceptable, then use the Select DSL for an unrestricted select statement.
    Author:
    Jeff Butler