Package org.mybatis.dynamic.sql.select
Class SelectDSL<R>
java.lang.Object
org.mybatis.dynamic.sql.select.SelectDSL<R>
- Type Parameters:
R- the type of model produced by this builder, typically SelectModel
- All Implemented Interfaces:
ForAndWaitOperations<SelectDSL<R>>,LimitAndOffsetOperations<SelectDSL<R>,,R> OrderByOperations<SelectDSL<R>>,Buildable<R>,ConfigurableStatement<SelectDSL<R>>
public class SelectDSL<R>
extends Object
implements ForAndWaitOperations<SelectDSL<R>>, LimitAndOffsetOperations<SelectDSL<R>,R>, OrderByOperations<SelectDSL<R>>, ConfigurableStatement<SelectDSL<R>>, Buildable<R>
Implements a SQL DSL for building select statements.
- Author:
- Jeff Butler
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mybatis.dynamic.sql.dsl.LimitAndOffsetOperations
LimitAndOffsetOperations.FetchFirstFinisher<T>, LimitAndOffsetOperations.LimitFinisher<T,M>, LimitAndOffsetOperations.OffsetFirstFinisher<T, M> -
Method Summary
Modifier and TypeMethodDescriptionbuild()configureStatement(Consumer<StatementConfiguration> consumer) fetchFirstWhenPresent(@Nullable Long fetchFirstRows) limitWhenPresent(@Nullable Long limit) offsetWhenPresent(@Nullable Long offset) orderBy(Collection<? extends SortSpecification> columns) static QueryExpressionDSL<SelectModel>select(Collection<? extends BasicColumn> selectList) static <R> QueryExpressionDSL<R>select(Function<SelectModel, R> adapterFunction, Collection<? extends BasicColumn> selectList) static <R> QueryExpressionDSL<R>select(Function<SelectModel, R> adapterFunction, BasicColumn... selectList) static QueryExpressionDSL<SelectModel>select(BasicColumn... selectList) static QueryExpressionDSL<SelectModel>selectDistinct(Collection<? extends BasicColumn> selectList) static <R> QueryExpressionDSL<R>selectDistinct(Function<SelectModel, R> adapterFunction, Collection<? extends BasicColumn> selectList) static <R> QueryExpressionDSL<R>selectDistinct(Function<SelectModel, R> adapterFunction, BasicColumn... selectList) static QueryExpressionDSL<SelectModel>selectDistinct(BasicColumn... selectList) setForClause(String forClause) setWaitClause(String waitClause) Methods 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.ForAndWaitOperations
forKeyShare, forNoKeyUpdate, forShare, forUpdate, nowait, skipLockedMethods inherited from interface org.mybatis.dynamic.sql.dsl.LimitAndOffsetOperations
fetchFirst, limit, offsetMethods inherited from interface org.mybatis.dynamic.sql.dsl.OrderByOperations
orderBy
-
Method Details
-
select
-
select
-
select
public static <R> QueryExpressionDSL<R> select(Function<SelectModel, R> adapterFunction, BasicColumn... selectList) -
select
public static <R> QueryExpressionDSL<R> select(Function<SelectModel, R> adapterFunction, Collection<? extends BasicColumn> selectList) -
selectDistinct
-
selectDistinct
public static QueryExpressionDSL<SelectModel> selectDistinct(Collection<? extends BasicColumn> selectList) -
selectDistinct
public static <R> QueryExpressionDSL<R> selectDistinct(Function<SelectModel, R> adapterFunction, BasicColumn... selectList) -
selectDistinct
public static <R> QueryExpressionDSL<R> selectDistinct(Function<SelectModel, R> adapterFunction, Collection<? extends BasicColumn> selectList) -
orderBy
- Specified by:
orderByin interfaceOrderByOperations<R>
-
limitWhenPresent
public LimitAndOffsetOperations.LimitFinisher<SelectDSL<R>,R> limitWhenPresent(@Nullable Long limit) - Specified by:
limitWhenPresentin interfaceLimitAndOffsetOperations<SelectDSL<R>,R>
-
offsetWhenPresent
public LimitAndOffsetOperations.OffsetFirstFinisher<SelectDSL<R>,R> offsetWhenPresent(@Nullable Long offset) - Specified by:
offsetWhenPresentin interfaceLimitAndOffsetOperations<SelectDSL<R>,R>
-
fetchFirstWhenPresent
public LimitAndOffsetOperations.FetchFirstFinisher<SelectDSL<R>> fetchFirstWhenPresent(@Nullable Long fetchFirstRows) - Specified by:
fetchFirstWhenPresentin interfaceLimitAndOffsetOperations<SelectDSL<R>,R>
-
setWaitClause
- Specified by:
setWaitClausein interfaceForAndWaitOperations<R>
-
setForClause
- Specified by:
setForClausein interfaceForAndWaitOperations<R>
-
configureStatement
- Specified by:
configureStatementin interfaceConfigurableStatement<R>
-
build
-