Package org.hibernate.reactive.pool
Interface ReactiveConnection
- All Known Implementing Classes:
BatchingConnection
Abstracts over reactive database connections, defining
operations that allow queries to be executed asynchronously
via
CompletionStage
.
It is illegal to perform two non-blocking operations concurrently
with a single ReactiveConnection
. Instead, the second
operation must be chained on completion of the first operation.
This restriction might be relaxed in future, and is due to the
implementation of the ProxyConnection
.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionclose()
executeUnprepared
(String sql) Run sql as statement (instead of preparedStatement)io.vertx.sqlclient.spi.DatabaseMetadata
<T> CompletionStage<T>
insertAndSelectIdentifier
(String sql, Object[] paramValues, Class<T> idClass, String idColumnName) insertAndSelectIdentifierAsResultSet
(String sql, Object[] paramValues, Class<?> idClass, String idColumnName) <T> CompletionStage<T>
selectIdentifier
(String sql, Object[] paramValues, Class<T> idClass) selectJdbc
(String sql, Object[] paramValues) update
(String sql, Object[] paramValues, boolean allowBatching, ReactiveConnection.Expectation expectation) CompletionStage<int[]>
withBatchSize
(int batchSize)
-
Method Details
-
getDatabaseMetadata
io.vertx.sqlclient.spi.DatabaseMetadata getDatabaseMetadata() -
execute
-
executeOutsideTransaction
-
executeUnprepared
Run sql as statement (instead of preparedStatement) -
update
-
update
-
update
CompletionStage<Void> update(String sql, Object[] paramValues, boolean allowBatching, ReactiveConnection.Expectation expectation) -
update
-
select
-
select
-
selectJdbc
-
insertAndSelectIdentifier
<T> CompletionStage<T> insertAndSelectIdentifier(String sql, Object[] paramValues, Class<T> idClass, String idColumnName) -
insertAndSelectIdentifierAsResultSet
-
selectIdentifier
-
beginTransaction
CompletionStage<Void> beginTransaction() -
commitTransaction
CompletionStage<Void> commitTransaction() -
rollbackTransaction
CompletionStage<Void> rollbackTransaction() -
withBatchSize
-
executeBatch
CompletionStage<Void> executeBatch() -
close
CompletionStage<Void> close()
-