Package org.mybatis.dynamic.sql.dsl
Class CountDSL
java.lang.Object
org.mybatis.dynamic.sql.dsl.AbstractQueryingDSL
org.mybatis.dynamic.sql.dsl.AbstractCountDSL<SelectModel,CountDSL>
org.mybatis.dynamic.sql.dsl.CountDSL
- All Implemented Interfaces:
JoinOperations<AbstractCountDSL<SelectModel,,CountDSL>.JoinSpecificationFinisher> WhereOperations<AbstractCountDSL<SelectModel,,CountDSL>.CountWhereBuilder> Buildable<SelectModel>,ConfigurableStatement<CountDSL>
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 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 CountDSLcount(BasicColumn column) static CountDSLcountDistinct(BasicColumn column) static CountDSLstatic CountDSLprotected CountDSLgetThis()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
-
getThis
- Specified by:
getThisin classAbstractCountDSL<SelectModel,CountDSL>
-
build
-
countFrom
-
countFrom
-
count
-
countDistinct
-