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
Modifier and TypeClassDescriptionclass
class
class
class
class
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
configureStatement
(Consumer<StatementConfiguration> consumer) fetchFirst
(long fetchFirstRows) limit
(long limit) offset
(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
-
offset
-
fetchFirst
-
configureStatement
- Specified by:
configureStatement
in interfaceConfigurableStatement<R>
-
build
-