public interface CommonSelectMapper
ResultMap for each statement.
This mapper contains three types of methods:
This mapper can be injected as-is into a MyBatis configuration, or it can be extended with existing mappers.
| Modifier and Type | Method and Description |
|---|---|
default <R> reactor.core.publisher.Flux<R> |
selectMany(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement,
Function<Map<String,Object>,R> rowMapper)
Select any number of rows and then convert the values to a custom type.
|
reactor.core.publisher.Flux<BigDecimal> |
selectManyBigDecimals(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
Retrieve a List of
BigDecimal from a result set. |
reactor.core.publisher.Flux<Double> |
selectManyDoubles(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
Retrieve a List of
Double from a result set. |
reactor.core.publisher.Flux<Integer> |
selectManyIntegers(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
Retrieve a List of
Integer from a result set. |
reactor.core.publisher.Flux<Long> |
selectManyLongs(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
Retrieve a List of
Long from a result set. |
reactor.core.publisher.Flux<Map<String,Object>> |
selectManyMappedRows(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
Select any number of rows and return a List of Maps containing row values (one Map for each row returned).
|
reactor.core.publisher.Flux<String> |
selectManyStrings(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
Retrieve a List of
String from a result set. |
default <R> reactor.core.publisher.Mono<R> |
selectOne(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement,
Function<reactor.core.publisher.Mono<Map<String,Object>>,reactor.core.publisher.Mono<R>> rowMapper)
Select a single row of values and then convert the values to a custom type.
|
reactor.core.publisher.Mono<BigDecimal> |
selectOneBigDecimal(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
Retrieve a single
BigDecimal from a result set. |
reactor.core.publisher.Mono<Double> |
selectOneDouble(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
Retrieve a single
Double from a result set. |
reactor.core.publisher.Mono<Integer> |
selectOneInteger(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
Retrieve a single
Integer from a result set. |
reactor.core.publisher.Mono<Long> |
selectOneLong(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
Retrieve a single
Long from a result set. |
reactor.core.publisher.Mono<Map<String,Object>> |
selectOneMappedRow(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
Select a single row as a Map of values.
|
reactor.core.publisher.Mono<String> |
selectOneString(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
Retrieve a single
String from a result set. |
@SelectProvider(type=org.mybatis.dynamic.sql.util.SqlProviderAdapter.class,
method="select")
reactor.core.publisher.Mono<Map<String,Object>> selectOneMappedRow(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
selectStatement - the select statementdefault <R> reactor.core.publisher.Mono<R> selectOne(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement,
Function<reactor.core.publisher.Mono<Map<String,Object>>,reactor.core.publisher.Mono<R>> rowMapper)
See selectOneMappedRow(SelectStatementProvider) for details about
how MyBatis will construct the Map of values.
R - the datatype of the converted objectselectStatement - the select statementrowMapper - a function that will convert a Map of row values to the desired data type@SelectProvider(type=org.mybatis.dynamic.sql.util.SqlProviderAdapter.class,
method="select")
reactor.core.publisher.Flux<Map<String,Object>> selectManyMappedRows(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
selectStatement - the select statementdefault <R> reactor.core.publisher.Flux<R> selectMany(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement,
Function<Map<String,Object>,R> rowMapper)
R - the datatype of the converted objectselectStatement - the select statementrowMapper - a function that will convert a Map of row values to the desired data type@SelectProvider(type=org.mybatis.dynamic.sql.util.SqlProviderAdapter.class,
method="select")
reactor.core.publisher.Mono<BigDecimal> selectOneBigDecimal(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
BigDecimal from a result set. The result set must have
only one column and one or zero rows. The column must be retrievable from the result set
via the ResultSet.getBigDecimal() method.selectStatement - the select statement@SelectProvider(type=org.mybatis.dynamic.sql.util.SqlProviderAdapter.class,
method="select")
reactor.core.publisher.Flux<BigDecimal> selectManyBigDecimals(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
BigDecimal from a result set. The result set must have
only one column, but can have any number of rows. The column must be retrievable from the result set
via the ResultSet.getBigDecimal() method.selectStatement - the select statement@SelectProvider(type=org.mybatis.dynamic.sql.util.SqlProviderAdapter.class,
method="select")
reactor.core.publisher.Mono<Double> selectOneDouble(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
Double from a result set. The result set must have
only one column and one or zero rows. The column must be retrievable from the result set
via the ResultSet.getDouble() method.selectStatement - the select statement@SelectProvider(type=org.mybatis.dynamic.sql.util.SqlProviderAdapter.class,
method="select")
reactor.core.publisher.Flux<Double> selectManyDoubles(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
Double from a result set. The result set must have
only one column, but can have any number of rows. The column must be retrievable from the result set
via the ResultSet.getDouble() method.selectStatement - the select statement@SelectProvider(type=org.mybatis.dynamic.sql.util.SqlProviderAdapter.class,
method="select")
reactor.core.publisher.Mono<Integer> selectOneInteger(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
Integer from a result set. The result set must have
only one column and one or zero rows. The column must be retrievable from the result set
via the ResultSet.getInt() method.selectStatement - the select statement@SelectProvider(type=org.mybatis.dynamic.sql.util.SqlProviderAdapter.class,
method="select")
reactor.core.publisher.Flux<Integer> selectManyIntegers(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
Integer from a result set. The result set must have
only one column, but can have any number of rows. The column must be retrievable from the result set
via the ResultSet.getInt() method.selectStatement - the select statement@SelectProvider(type=org.mybatis.dynamic.sql.util.SqlProviderAdapter.class,
method="select")
reactor.core.publisher.Mono<Long> selectOneLong(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
Long from a result set. The result set must have
only one column and one or zero rows. The column must be retrievable from the result set
via the ResultSet.getLong() method.selectStatement - the select statement@SelectProvider(type=org.mybatis.dynamic.sql.util.SqlProviderAdapter.class,
method="select")
reactor.core.publisher.Flux<Long> selectManyLongs(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
Long from a result set. The result set must have
only one column, but can have any number of rows. The column must be retrievable from the result set
via the ResultSet.getLong() method.selectStatement - the select statement@SelectProvider(type=org.mybatis.dynamic.sql.util.SqlProviderAdapter.class,
method="select")
reactor.core.publisher.Mono<String> selectOneString(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
String from a result set. The result set must have
only one column and one or zero rows. The column must be retrievable from the result set
via the ResultSet.getString() method.selectStatement - the select statement@SelectProvider(type=org.mybatis.dynamic.sql.util.SqlProviderAdapter.class,
method="select")
reactor.core.publisher.Flux<String> selectManyStrings(org.mybatis.dynamic.sql.select.render.SelectStatementProvider selectStatement)
String from a result set. The result set must have
only one column, but can have any number of rows. The column must be retrievable from the result set
via the ResultSet.getString() method.selectStatement - the select statementCopyright © 2022. All rights reserved.