Package org.mybatis.dynamic.sql.select
Class CountDSL<R>
java.lang.Object
org.mybatis.dynamic.sql.dsl.AbstractQueryingDSL
org.mybatis.dynamic.sql.dsl.AbstractCountDSL<R,CountDSL<R>>
org.mybatis.dynamic.sql.select.CountDSL<R>
- Type Parameters:
R- the type of model built by this Builder. Typically, SelectModel.
- All Implemented Interfaces:
JoinOperations<AbstractCountDSL<R,,CountDSL<R>>.JoinSpecificationFinisher> WhereOperations<AbstractCountDSL<R,,CountDSL<R>>.CountWhereBuilder> Buildable<R>,ConfigurableStatement<CountDSL<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 value. If these restrictions are not acceptable, then use the Select DSL for an unrestricted select statement.
- Author:
- Jeff Butler
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.mybatis.dynamic.sql.dsl.AbstractCountDSL
AbstractCountDSL.CountWhereBuilder, AbstractCountDSL.JoinSpecificationFinisherNested classes/interfaces inherited from interface org.mybatis.dynamic.sql.dsl.JoinOperations
JoinOperations.JoinOnGatherer<F extends BooleanOperations<?>> -
Method Summary
Modifier and TypeMethodDescriptionbuild()static <R> CountDSL<R>count(Function<SelectModel, R> adapterFunction, BasicColumn column) static CountDSL<SelectModel>count(BasicColumn column) static <R> CountDSL<R>countDistinct(Function<SelectModel, R> adapterFunction, BasicColumn column) static CountDSL<SelectModel>countDistinct(BasicColumn column) static <R> CountDSL<R>countFrom(Function<SelectModel, R> adapterFunction, SqlTable table) static CountDSL<SelectModel>static CountDSL<SelectModel>getThis()Methods inherited from class org.mybatis.dynamic.sql.dsl.AbstractCountDSL
applyWhere, buildSelectModel, configureStatement, from, from, join, join, where, whereMethods inherited from class org.mybatis.dynamic.sql.dsl.AbstractQueryingDSL
addJoinSpecification, addTableAlias, buildJoinModel, setTable, setTable, setTable, setTable, table, tableAliasesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mybatis.dynamic.sql.dsl.JoinOperations
fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, join, join, join, join, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin
-
Method Details
-
build
-
getThis
- Specified by:
getThisin classAbstractCountDSL<R,CountDSL<R>>
-
countFrom
-
countFrom
-
countFrom
-
count
-
count
-
countDistinct
-
countDistinct
public static <R> CountDSL<R> countDistinct(Function<SelectModel, R> adapterFunction, BasicColumn column)
-