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:
Buildable<R>,ConfigurableStatement<SelectDSL<R>>
public class SelectDSL<R>
extends Object
implements Buildable<R>, ConfigurableStatement<SelectDSL<R>>
Implements a SQL DSL for building select statements.
- Author:
- Jeff Butler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassclass -
Method Summary
Modifier and TypeMethodDescriptionbuild()configureStatement(Consumer<StatementConfiguration> consumer) fetchFirst(long fetchFirstRows) fetchFirstWhenPresent(@Nullable Long fetchFirstRows) forShare()limit(long limit) limitWhenPresent(@Nullable Long limit) nowait()offset(long offset) offsetWhenPresent(@Nullable Long offset) select(Collection<? extends BasicColumn> selectList) static <R> QueryExpressionDSL.FromGatherer<R> select(Function<SelectModel, R> adapterFunction, Collection<? extends BasicColumn> selectList) static <R> QueryExpressionDSL.FromGatherer<R> select(Function<SelectModel, R> adapterFunction, BasicColumn... selectList) select(BasicColumn... selectList) selectDistinct(Collection<? extends BasicColumn> selectList) static <R> QueryExpressionDSL.FromGatherer<R> selectDistinct(Function<SelectModel, R> adapterFunction, Collection<? extends BasicColumn> selectList) static <R> QueryExpressionDSL.FromGatherer<R> selectDistinct(Function<SelectModel, R> adapterFunction, BasicColumn... selectList) selectDistinct(BasicColumn... selectList)
-
Method Details
-
select
-
select
public static QueryExpressionDSL.FromGatherer<SelectModel> select(Collection<? extends BasicColumn> selectList) -
select
public static <R> QueryExpressionDSL.FromGatherer<R> select(Function<SelectModel, R> adapterFunction, BasicColumn... selectList) -
select
public static <R> QueryExpressionDSL.FromGatherer<R> select(Function<SelectModel, R> adapterFunction, Collection<? extends BasicColumn> selectList) -
selectDistinct
public static QueryExpressionDSL.FromGatherer<SelectModel> selectDistinct(BasicColumn... selectList) -
selectDistinct
public static QueryExpressionDSL.FromGatherer<SelectModel> selectDistinct(Collection<? extends BasicColumn> selectList) -
selectDistinct
public static <R> QueryExpressionDSL.FromGatherer<R> selectDistinct(Function<SelectModel, R> adapterFunction, BasicColumn... selectList) -
selectDistinct
public static <R> QueryExpressionDSL.FromGatherer<R> selectDistinct(Function<SelectModel, R> adapterFunction, Collection<? extends BasicColumn> selectList) -
limit
-
limitWhenPresent
-
offset
-
offsetWhenPresent
-
fetchFirst
-
fetchFirstWhenPresent
-
forUpdate
-
forNoKeyUpdate
-
skipLocked
-
nowait
-
configureStatement
- Specified by:
configureStatementin interfaceConfigurableStatement<R>
-
build
-