public interface Connection
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<Void> |
beginTransaction()
Begins a new transaction.
|
org.reactivestreams.Publisher<Void> |
close()
Release any resources held by the
Connection . |
org.reactivestreams.Publisher<Void> |
commitTransaction()
Commits the current transaction.
|
Batch |
createBatch()
Creates a new
Batch instance for building a batched request. |
org.reactivestreams.Publisher<Void> |
createSavepoint(String name)
Creates a savepoint in the current transaction.
|
Statement |
createStatement(String sql)
Creates a new statement for building a statement-based request.
|
org.reactivestreams.Publisher<Void> |
releaseSavepoint(String name)
Releases a savepoint in the current transaction.
|
org.reactivestreams.Publisher<Void> |
rollbackTransaction()
Rolls back the current transaction.
|
org.reactivestreams.Publisher<Void> |
rollbackTransactionToSavepoint(String name)
Rolls back to a savepoint in the current transaction.
|
org.reactivestreams.Publisher<Void> |
setTransactionIsolationLevel(IsolationLevel isolationLevel)
Configures the isolation level for the current transaction.
|
org.reactivestreams.Publisher<Void> beginTransaction()
Publisher
that indicates that the transaction is openorg.reactivestreams.Publisher<Void> close()
Connection
.Publisher
that termination is completeorg.reactivestreams.Publisher<Void> commitTransaction()
Publisher
that indicates that a transaction has been committedBatch createBatch()
Batch
instance for building a batched request.Batch
instanceorg.reactivestreams.Publisher<Void> createSavepoint(String name)
name
- the name of the savepoint to createPublisher
that indicates that a savepoint has been createdIllegalArgumentException
- if name
is null
Statement createStatement(String sql)
sql
- the SQL of the statementStatement
instanceIllegalArgumentException
- if sql
is null
org.reactivestreams.Publisher<Void> releaseSavepoint(String name)
name
- the name of the savepoint to releasePublisher
that indicates that a savepoint has been releasedIllegalArgumentException
- if name
is null
org.reactivestreams.Publisher<Void> rollbackTransaction()
Publisher
that indicates that a transaction has been rolled backorg.reactivestreams.Publisher<Void> rollbackTransactionToSavepoint(String name)
name
- the name of the savepoint to rollback toPublisher
that indicates that a savepoint has been rolled back toIllegalArgumentException
- if name
is null
org.reactivestreams.Publisher<Void> setTransactionIsolationLevel(IsolationLevel isolationLevel)
isolationLevel
- the isolation level for this transactionPublisher
that indicates that a transaction level has been configuredIllegalArgumentException
- if isolationLevel
is null
Copyright © 2019. All rights reserved.