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 TypeClassDescriptionclassclassclassclassclass -
Method Summary
Modifier and TypeMethodDescriptionbuild()configureStatement(Consumer<StatementConfiguration> consumer) fetchFirst(long fetchFirstRows) limit(long limit) offset(long offset) select(Collection<BasicColumn> selectList) static <R> QueryExpressionDSL.FromGatherer<R>select(Function<SelectModel, R> adapterFunction, Collection<BasicColumn> selectList) static <R> QueryExpressionDSL.FromGatherer<R>select(Function<SelectModel, R> adapterFunction, BasicColumn... selectList) select(BasicColumn... selectList) selectDistinct(Collection<BasicColumn> selectList) static <R> QueryExpressionDSL.FromGatherer<R>selectDistinct(Function<SelectModel, R> adapterFunction, Collection<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<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<BasicColumn> selectList) -
selectDistinct
public static QueryExpressionDSL.FromGatherer<SelectModel> selectDistinct(BasicColumn... selectList) -
selectDistinct
public static QueryExpressionDSL.FromGatherer<SelectModel> selectDistinct(Collection<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<BasicColumn> selectList) -
limit
-
offset
-
fetchFirst
-
configureStatement
- Specified by:
configureStatementin interfaceConfigurableStatement<R>
-
build
-