Package org.mybatis.dynamic.sql.dsl
Class AbstractCountDSL<M,D extends AbstractCountDSL<M,D>>
java.lang.Object
org.mybatis.dynamic.sql.dsl.AbstractQueryingDSL
org.mybatis.dynamic.sql.dsl.AbstractCountDSL<M,D>
- Type Parameters:
M- the type of model built by this Builder. Typically, SelectModel.D- the type of DSL builder
- All Implemented Interfaces:
JoinOperations<AbstractCountDSL<M,,D>.JoinSpecificationFinisher> WhereOperations<AbstractCountDSL<M,,D>.CountWhereBuilder> Buildable<M>,ConfigurableStatement<D>
public abstract class AbstractCountDSL<M,D extends AbstractCountDSL<M,D>>
extends AbstractQueryingDSL
implements JoinOperations<AbstractCountDSL<M,D>.JoinSpecificationFinisher>, WhereOperations<AbstractCountDSL<M,D>.CountWhereBuilder>, ConfigurableStatement<D>, Buildable<M>
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 ClassesModifier and TypeClassDescriptionclassclassNested classes/interfaces inherited from interface org.mybatis.dynamic.sql.dsl.JoinOperations
JoinOperations.JoinOnGatherer<F extends BooleanOperations<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyWhere(WhereApplier whereApplier) protected SelectModelconfigureStatement(Consumer<StatementConfiguration> consumer) protected abstract DgetThis()join(JoinType joinType, SqlTable joinTable, String tableAlias, SqlCriterion initialCriterion) join(JoinType joinType, TableExpression joinTable, SqlCriterion initialCriterion) where()where(SqlCriterion initialCriterion) Methods 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
-
Constructor Details
-
AbstractCountDSL
-
-
Method Details
-
from
-
from
-
where
- Specified by:
wherein interfaceWhereOperations<M>
-
where
- Specified by:
wherein interfaceWhereOperations<M>
-
applyWhere
- Specified by:
applyWherein interfaceWhereOperations<M>
-
configureStatement
- Specified by:
configureStatementin interfaceConfigurableStatement<M>
-
buildSelectModel
-
getThis
-
join
public AbstractCountDSL<M,D>.JoinSpecificationFinisher join(JoinType joinType, TableExpression joinTable, SqlCriterion initialCriterion) - Specified by:
joinin interfaceJoinOperations<M>
-
join
public AbstractCountDSL<M,D>.JoinSpecificationFinisher join(JoinType joinType, SqlTable joinTable, String tableAlias, SqlCriterion initialCriterion) - Specified by:
joinin interfaceJoinOperations<M>
-