Package org.mybatis.dynamic.sql.select
Class QueryExpressionDSL<R>
java.lang.Object
org.mybatis.dynamic.sql.select.AbstractQueryExpressionDSL<QueryExpressionDSL<R>.QueryExpressionWhereBuilder,QueryExpressionDSL<R>>
org.mybatis.dynamic.sql.select.QueryExpressionDSL<R>
- All Implemented Interfaces:
SelectDSLForAndWaitOperations<R>,SelectDSLOperations<R>,Buildable<R>,ConfigurableStatement<QueryExpressionDSL<R>>,AbstractWhereStarter<QueryExpressionDSL<R>.QueryExpressionWhereBuilder,QueryExpressionDSL<R>>
public class QueryExpressionDSL<R>
extends AbstractQueryExpressionDSL<QueryExpressionDSL<R>.QueryExpressionWhereBuilder,QueryExpressionDSL<R>>
implements Buildable<R>, SelectDSLOperations<R>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclassclassclassclassclassclass -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedQueryExpressionDSL(QueryExpressionDSL.FromGatherer<R> fromGatherer, SqlTable table, String tableAlias) protectedQueryExpressionDSL(QueryExpressionDSL.FromGatherer<R> fromGatherer, TableExpression table) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyHaving(CriteriaGroup criteriaGroup) This method is meant for use by the Kotlin DSL.build()protected QueryExpressionModelconfigureStatement(Consumer<StatementConfiguration> consumer) fullJoin(Buildable<SelectModel> joinTable, String tableAlias) Gain access to the SelectDSL instance.protected QueryExpressionDSL<R> getThis()groupBy(Collection<? extends BasicColumn> columns) groupBy(BasicColumn... columns) protected QueryExpressionDSL<R>.QueryExpressionHavingBuilderhaving()This method is protected here because it doesn't make sense at this point in the DSL.join(Buildable<SelectModel> joinTable, String tableAlias) leftJoin(Buildable<SelectModel> joinTable, String tableAlias) orderBy(Collection<? extends SortSpecification> columns) orderBy(SortSpecification... columns) rightJoin(Buildable<SelectModel> joinTable, String tableAlias) union()unionAll()where()Methods inherited from class org.mybatis.dynamic.sql.select.AbstractQueryExpressionDSL
addJoinSpecificationSupplier, addTableAlias, buildJoinModel, buildSubQuery, buildSubQuery, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, join, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, 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.where.AbstractWhereStarter
applyWhere, where, where, where, where, where, where, whereMethods inherited from interface org.mybatis.dynamic.sql.select.SelectDSLForAndWaitOperations
forKeyShare, forNoKeyUpdate, forShare, forUpdate, nowait, skipLockedMethods inherited from interface org.mybatis.dynamic.sql.select.SelectDSLOperations
fetchFirst, fetchFirstWhenPresent, limit, limitWhenPresent, offset, offsetWhenPresent
-
Constructor Details
-
QueryExpressionDSL
protected QueryExpressionDSL(QueryExpressionDSL.FromGatherer<R> fromGatherer, TableExpression table) -
QueryExpressionDSL
protected QueryExpressionDSL(QueryExpressionDSL.FromGatherer<R> fromGatherer, SqlTable table, String tableAlias)
-
-
Method Details
-
where
- Specified by:
wherein interfaceAbstractWhereStarter<QueryExpressionDSL<R>.QueryExpressionWhereBuilder,QueryExpressionDSL<R>>
-
configureStatement
- Specified by:
configureStatementin interfaceConfigurableStatement<R>
-
having
This method is protected here because it doesn't make sense at this point in the DSL.- Returns:
- The having builder
-
applyHaving
This method is meant for use by the Kotlin DSL. We expect a full set of criteria.- Parameters:
criteriaGroup- the full criteria for a Kotlin Having clause
-
build
-
join
-
join
-
join
public QueryExpressionDSL<R>.JoinSpecificationStarter join(Buildable<SelectModel> joinTable, String tableAlias) -
leftJoin
-
leftJoin
public QueryExpressionDSL<R>.JoinSpecificationStarter leftJoin(SqlTable joinTable, String tableAlias) -
leftJoin
public QueryExpressionDSL<R>.JoinSpecificationStarter leftJoin(Buildable<SelectModel> joinTable, String tableAlias) -
rightJoin
-
rightJoin
public QueryExpressionDSL<R>.JoinSpecificationStarter rightJoin(SqlTable joinTable, String tableAlias) -
rightJoin
public QueryExpressionDSL<R>.JoinSpecificationStarter rightJoin(Buildable<SelectModel> joinTable, String tableAlias) -
fullJoin
-
fullJoin
public QueryExpressionDSL<R>.JoinSpecificationStarter fullJoin(SqlTable joinTable, String tableAlias) -
fullJoin
public QueryExpressionDSL<R>.JoinSpecificationStarter fullJoin(Buildable<SelectModel> joinTable, String tableAlias) -
groupBy
-
groupBy
-
orderBy
-
orderBy
-
union
-
unionAll
-
buildModel
-
getThis
- Specified by:
getThisin classAbstractQueryExpressionDSL<QueryExpressionDSL<R>.QueryExpressionWhereBuilder,QueryExpressionDSL<R>>
-
getSelectDSL
Description copied from interface:SelectDSLForAndWaitOperationsGain access to the SelectDSL instance.This is a leak of an implementation detail into the public API. The tradeoff is that it significantly reduces copy/paste code of SelectDSL methods into all the different inner classes of QueryExpressionDSL where they would be needed.
- Specified by:
getSelectDSLin interfaceSelectDSLForAndWaitOperations<R>- Returns:
- the SelectDSL instance associated with this interface instance
-