public interface ReactiveSqlSession
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
close()
close session
|
default reactor.core.publisher.Mono<Void> |
commit()
Perform commits database connection.
|
reactor.core.publisher.Mono<Void> |
commit(boolean force)
Perform commits database connection.
|
default reactor.core.publisher.Mono<Integer> |
delete(String statement)
Execute a delete statement.
|
reactor.core.publisher.Mono<Integer> |
delete(String statement,
Object parameter)
Execute a delete statement.
|
R2dbcMybatisConfiguration |
getConfiguration()
Retrieves current configuration.
|
<T> T |
getMapper(Class<T> type)
Retrieves a mapper.
|
default reactor.core.publisher.Mono<Integer> |
insert(String statement)
Execute an insert statement.
|
reactor.core.publisher.Mono<Integer> |
insert(String statement,
Object parameter)
Execute an insert statement with the given parameter object.
|
default reactor.core.publisher.Mono<Void> |
rollback()
Perform rollback database connection .
|
reactor.core.publisher.Mono<Void> |
rollback(boolean force)
Discards pending batch statements and rolls database connection back.
|
default <E> reactor.core.publisher.Flux<E> |
selectList(String statement)
Retrieve many mapped objects from the statement key.
|
default <E> reactor.core.publisher.Flux<E> |
selectList(String statement,
Object parameter)
Retrieve many mapped objects from the statement key and parameter.
|
<E> reactor.core.publisher.Flux<E> |
selectList(String statement,
Object parameter,
org.apache.ibatis.session.RowBounds rowBounds)
Retrieve many mapped objects from the statement key and parameter,
within the specified row bounds.
|
default <T> reactor.core.publisher.Mono<T> |
selectOne(String statement)
Retrieve a single row mapped from the statement key.
|
<T> reactor.core.publisher.Mono<T> |
selectOne(String statement,
Object parameter)
Retrieve a single row mapped from the statement key and parameter.
|
ReactiveSqlSession |
setAutoCommit(boolean autoCommit)
set auto commit
|
ReactiveSqlSession |
setIsolationLevel(io.r2dbc.spi.IsolationLevel isolationLevel)
set isolation level
|
default reactor.core.publisher.Mono<Integer> |
update(String statement)
Execute an update statement.
|
reactor.core.publisher.Mono<Integer> |
update(String statement,
Object parameter)
Execute an update statement.
|
ReactiveSqlSession |
usingTransaction(boolean usingTransactionSupport)
set transaction or not
|
ReactiveSqlSession setAutoCommit(boolean autoCommit)
autoCommit - the auto commitReactiveSqlSession setIsolationLevel(io.r2dbc.spi.IsolationLevel isolationLevel)
isolationLevel - the isolation levelReactiveSqlSession usingTransaction(boolean usingTransactionSupport)
usingTransactionSupport - the using transaction supportdefault <T> reactor.core.publisher.Mono<T> selectOne(String statement)
T - the returned object typestatement - the statement<T> reactor.core.publisher.Mono<T> selectOne(String statement, Object parameter)
T - the returned object typestatement - Unique identifier matching the statement to use.parameter - A parameter object to pass to the statement.default <E> reactor.core.publisher.Flux<E> selectList(String statement)
E - the returned list element typestatement - Unique identifier matching the statement to use.default <E> reactor.core.publisher.Flux<E> selectList(String statement, Object parameter)
E - the returned list element typestatement - Unique identifier matching the statement to use.parameter - A parameter object to pass to the statement.<E> reactor.core.publisher.Flux<E> selectList(String statement, Object parameter, org.apache.ibatis.session.RowBounds rowBounds)
E - the returned list element typestatement - Unique identifier matching the statement to use.parameter - A parameter object to pass to the statement.rowBounds - Bounds to limit object retrievaldefault reactor.core.publisher.Mono<Integer> insert(String statement)
statement - Unique identifier matching the statement to execute.reactor.core.publisher.Mono<Integer> insert(String statement, Object parameter)
statement - Unique identifier matching the statement to execute.parameter - A parameter object to pass to the statement.default reactor.core.publisher.Mono<Integer> update(String statement)
statement - Unique identifier matching the statement to execute.reactor.core.publisher.Mono<Integer> update(String statement, Object parameter)
statement - Unique identifier matching the statement to execute.parameter - A parameter object to pass to the statement.default reactor.core.publisher.Mono<Integer> delete(String statement)
statement - Unique identifier matching the statement to execute.reactor.core.publisher.Mono<Integer> delete(String statement, Object parameter)
statement - Unique identifier matching the statement to execute.parameter - A parameter object to pass to the statement.default reactor.core.publisher.Mono<Void> commit()
commit(boolean)reactor.core.publisher.Mono<Void> commit(boolean force)
force - forces connection commitdefault reactor.core.publisher.Mono<Void> rollback()
rollback(boolean)reactor.core.publisher.Mono<Void> rollback(boolean force)
force - forces connection rollbackreactor.core.publisher.Mono<Void> close()
R2dbcMybatisConfiguration getConfiguration()
<T> T getMapper(Class<T> type)
T - the mapper typetype - Mapper interface classCopyright © 2022. All rights reserved.