Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractRoutingConnectionFactory - Class in org.springframework.r2dbc.connection.lookup
-
Abstract
ConnectionFactory
implementation that routesAbstractRoutingConnectionFactory.create()
calls to one of various targetfactories
based on a lookup key. - AbstractRoutingConnectionFactory() - Constructor for class org.springframework.r2dbc.connection.lookup.AbstractRoutingConnectionFactory
- addConnectionFactory(String, ConnectionFactory) - Method in class org.springframework.r2dbc.connection.lookup.MapConnectionFactoryLookup
-
Add the supplied
ConnectionFactory
to the map ofConnectionFactory
instances maintained by this object. - addPopulators(DatabasePopulator...) - Method in class org.springframework.r2dbc.connection.init.CompositeDatabasePopulator
-
Add one or more populators to the list of delegates.
- addScript(Resource) - Method in class org.springframework.r2dbc.connection.init.ResourceDatabasePopulator
-
Add a script to execute to initialize or clean up the database.
- addScripts(Resource...) - Method in class org.springframework.r2dbc.connection.init.ResourceDatabasePopulator
-
Add multiple scripts to execute to initialize or clean up the database.
- afterPropertiesSet() - Method in class org.springframework.r2dbc.connection.init.ConnectionFactoryInitializer
-
Use the database populator to set up the database.
- afterPropertiesSet() - Method in class org.springframework.r2dbc.connection.lookup.AbstractRoutingConnectionFactory
- afterPropertiesSet() - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
- all() - Method in interface org.springframework.r2dbc.core.RowsFetchSpec
-
Get all matching elements.
- and(Bindings) - Method in class org.springframework.r2dbc.core.binding.Bindings
- andThen(StatementFilterFunction) - Method in interface org.springframework.r2dbc.core.StatementFilterFunction
-
Return a composed filter function that first applies this filter, and then applies the given
"after"
filter. - anonymous(String) - Static method in interface org.springframework.r2dbc.core.binding.BindMarkersFactory
-
Create anonymous, index-based bind marker using a static placeholder.
- apply(Row, RowMetadata) - Method in class org.springframework.r2dbc.core.ColumnMapRowMapper
- apply(Consumer<DatabaseClient.Builder>) - Method in interface org.springframework.r2dbc.core.DatabaseClient.Builder
-
Apply a
Consumer
to configure this builder. - apply(BindTarget) - Method in class org.springframework.r2dbc.core.binding.Bindings
-
Apply the bindings to a
BindTarget
. - apply(BindTarget) - Method in class org.springframework.r2dbc.core.binding.Bindings.Binding
-
Apply the binding to a
BindTarget
.
B
- BadSqlGrammarException - Exception in org.springframework.r2dbc
-
Exception thrown when SQL specified is invalid.
- BadSqlGrammarException(String, String, R2dbcException) - Constructor for exception org.springframework.r2dbc.BadSqlGrammarException
-
Constructor for BadSqlGrammarException.
- BeanFactoryConnectionFactoryLookup - Class in org.springframework.r2dbc.connection.lookup
-
ConnectionFactoryLookup
implementation based on a SpringBeanFactory
. - BeanFactoryConnectionFactoryLookup() - Constructor for class org.springframework.r2dbc.connection.lookup.BeanFactoryConnectionFactoryLookup
-
Create a new instance of the
BeanFactoryConnectionFactoryLookup
class. - BeanFactoryConnectionFactoryLookup(BeanFactory) - Constructor for class org.springframework.r2dbc.connection.lookup.BeanFactoryConnectionFactoryLookup
-
Create a new instance of the
BeanFactoryConnectionFactoryLookup
class. - bind(int, Object) - Method in interface org.springframework.r2dbc.core.binding.BindTarget
-
Bind a value to an index.
- bind(int, Object) - Method in interface org.springframework.r2dbc.core.DatabaseClient.GenericExecuteSpec
-
Bind a non-
null
value to a parameter identified by itsindex
. - bind(Object) - Method in class org.springframework.r2dbc.core.binding.MutableBindings
-
Bind a value and return the related
BindMarker
. - bind(String, Object) - Method in interface org.springframework.r2dbc.core.binding.BindTarget
-
Bind a value.
- bind(String, Object) - Method in interface org.springframework.r2dbc.core.DatabaseClient.GenericExecuteSpec
-
Bind a non-
null
value to a parameter identified by itsname
. - bind(BindMarker, Object) - Method in class org.springframework.r2dbc.core.binding.MutableBindings
-
Bind a value to
BindMarker
. - bind(BindTarget, Object) - Method in interface org.springframework.r2dbc.core.binding.BindMarker
-
Bind the given
value
to theStatement
using the underlying binding strategy. - Binding(BindMarker) - Constructor for class org.springframework.r2dbc.core.binding.Bindings.Binding
- Bindings - Class in org.springframework.r2dbc.core.binding
- Bindings() - Constructor for class org.springframework.r2dbc.core.binding.Bindings
-
Create empty
Bindings
. - Bindings(Collection<Bindings.Binding>) - Constructor for class org.springframework.r2dbc.core.binding.Bindings
-
Create
Bindings
from the given collection. - Bindings.Binding - Class in org.springframework.r2dbc.core.binding
-
Base class for value objects representing a value or a
NULL
binding. - BindMarker - Interface in org.springframework.r2dbc.core.binding
-
A bind marker represents a single bindable parameter within a query.
- bindMarkers(BindMarkersFactory) - Method in interface org.springframework.r2dbc.core.DatabaseClient.Builder
-
Configure the
BindMarkers
to be used. - BindMarkers - Interface in org.springframework.r2dbc.core.binding
-
Bind markers represent placeholders in SQL queries for substitution for an actual parameter.
- BindMarkersFactory - Interface in org.springframework.r2dbc.core.binding
-
This class creates new
BindMarkers
instances to bind parameter to a specificStatement
. - BindMarkersFactoryResolver - Class in org.springframework.r2dbc.core.binding
-
Resolves a
BindMarkersFactory
from aConnectionFactory
usingBindMarkersFactoryResolver.BindMarkerFactoryProvider
. - BindMarkersFactoryResolver.BindMarkerFactoryProvider - Interface in org.springframework.r2dbc.core.binding
-
SPI to extend Spring's default R2DBC BindMarkersFactory discovery mechanism.
- BindMarkersFactoryResolver.NoBindMarkersFactoryException - Exception in org.springframework.r2dbc.core.binding
-
Exception thrown when
BindMarkersFactoryResolver
cannot resolve aBindMarkersFactory
. - bindNull(int, Class<?>) - Method in interface org.springframework.r2dbc.core.binding.BindTarget
-
Bind a
null
value. - bindNull(int, Class<?>) - Method in interface org.springframework.r2dbc.core.DatabaseClient.GenericExecuteSpec
-
Bind a
null
value to a parameter identified by itsindex
. - bindNull(Class<?>) - Method in class org.springframework.r2dbc.core.binding.MutableBindings
-
Bind a
NULL
value and return the relatedBindMarker
. - bindNull(String, Class<?>) - Method in interface org.springframework.r2dbc.core.binding.BindTarget
-
Bind a
null
value. - bindNull(String, Class<?>) - Method in interface org.springframework.r2dbc.core.DatabaseClient.GenericExecuteSpec
-
Bind a
null
value to a parameter identified by itsname
. - bindNull(BindMarker, Class<?>) - Method in class org.springframework.r2dbc.core.binding.MutableBindings
-
Bind a
NULL
value toBindMarker
. - bindNull(BindTarget, Class<?>) - Method in interface org.springframework.r2dbc.core.binding.BindMarker
-
Bind a
null
value to theStatement
using the underlying binding strategy. - BindTarget - Interface in org.springframework.r2dbc.core.binding
-
Target to apply bindings to.
- bindTo(BindTarget) - Method in interface org.springframework.r2dbc.core.PreparedOperation
-
Apply bindings to the supplied
BindTarget
. - build() - Method in interface org.springframework.r2dbc.core.DatabaseClient.Builder
-
Build the
DatabaseClient
instance. - builder() - Static method in interface org.springframework.r2dbc.core.DatabaseClient
-
Obtain a
DatabaseClient
builder. - buildErrorMessage(String, int, EncodedResource) - Static method in exception org.springframework.r2dbc.connection.init.ScriptStatementFailedException
-
Build an error message for an SQL script execution failure, based on the supplied arguments.
C
- CannotReadScriptException - Exception in org.springframework.r2dbc.connection.init
-
Thrown by
ScriptUtils
if an SQL script cannot be read. - CannotReadScriptException(EncodedResource, Throwable) - Constructor for exception org.springframework.r2dbc.connection.init.CannotReadScriptException
-
Create a new
CannotReadScriptException
. - clear() - Method in class org.springframework.r2dbc.connection.ConnectionHolder
- ColumnMapRowMapper - Class in org.springframework.r2dbc.core
-
Mapping function
implementation that creates ajava.util.Map
for each row, representing all columns as key-value pairs: one entry for each column, with the column name as key. - ColumnMapRowMapper() - Constructor for class org.springframework.r2dbc.core.ColumnMapRowMapper
- CompositeDatabasePopulator - Class in org.springframework.r2dbc.connection.init
-
Composite
DatabasePopulator
that delegates to a list of givenDatabasePopulator
implementations, executing all scripts. - CompositeDatabasePopulator() - Constructor for class org.springframework.r2dbc.connection.init.CompositeDatabasePopulator
-
Create an empty
CompositeDatabasePopulator
. - CompositeDatabasePopulator(Collection<DatabasePopulator>) - Constructor for class org.springframework.r2dbc.connection.init.CompositeDatabasePopulator
-
Create a
CompositeDatabasePopulator
. - CompositeDatabasePopulator(DatabasePopulator...) - Constructor for class org.springframework.r2dbc.connection.init.CompositeDatabasePopulator
-
Create a
CompositeDatabasePopulator
with the given populators. - CONNECTION_SYNCHRONIZATION_ORDER - Static variable in class org.springframework.r2dbc.connection.ConnectionFactoryUtils
-
Order value for ReactiveTransactionSynchronization objects that clean up R2DBC Connections.
- ConnectionAccessor - Interface in org.springframework.r2dbc.core
-
Interface declaring methods that accept callback
Function
to operate within the scope of aConnection
. - connectionFactory(ConnectionFactory) - Method in interface org.springframework.r2dbc.core.DatabaseClient.Builder
-
Configure the
R2DBC connector
. - ConnectionFactoryInitializer - Class in org.springframework.r2dbc.connection.init
- ConnectionFactoryInitializer() - Constructor for class org.springframework.r2dbc.connection.init.ConnectionFactoryInitializer
- ConnectionFactoryLookup - Interface in org.springframework.r2dbc.connection.lookup
-
Strategy interface for looking up
ConnectionFactory
by name. - ConnectionFactoryLookupFailureException - Exception in org.springframework.r2dbc.connection.lookup
-
Exception to be thrown by a
ConnectionFactoryLookup
implementation, indicating that the specifiedConnectionFactory
could not be obtained. - ConnectionFactoryLookupFailureException(String) - Constructor for exception org.springframework.r2dbc.connection.lookup.ConnectionFactoryLookupFailureException
-
Create a new
ConnectionFactoryLookupFailureException
. - ConnectionFactoryLookupFailureException(String, Throwable) - Constructor for exception org.springframework.r2dbc.connection.lookup.ConnectionFactoryLookupFailureException
-
Create a new
ConnectionFactoryLookupFailureException
. - ConnectionFactoryUtils - Class in org.springframework.r2dbc.connection
-
Helper class that provides static methods for obtaining R2DBC Connections from a
ConnectionFactory
. - ConnectionFactoryUtils() - Constructor for class org.springframework.r2dbc.connection.ConnectionFactoryUtils
- ConnectionHolder - Class in org.springframework.r2dbc.connection
-
Resource holder wrapping a R2DBC
Connection
. - ConnectionHolder(Connection) - Constructor for class org.springframework.r2dbc.connection.ConnectionHolder
-
Create a new ConnectionHolder for the given R2DBC
Connection
, assuming that there is no ongoing transaction. - ConnectionHolder(Connection, boolean) - Constructor for class org.springframework.r2dbc.connection.ConnectionHolder
-
Create a new ConnectionHolder for the given R2DBC
Connection
. - convertR2dbcException(String, String, R2dbcException) - Static method in class org.springframework.r2dbc.connection.ConnectionFactoryUtils
-
Translate the given
R2dbcException
into a genericDataAccessException
. - create() - Method in class org.springframework.r2dbc.connection.DelegatingConnectionFactory
- create() - Method in class org.springframework.r2dbc.connection.lookup.AbstractRoutingConnectionFactory
- create() - Method in class org.springframework.r2dbc.connection.SingleConnectionFactory
- create() - Method in class org.springframework.r2dbc.connection.TransactionAwareConnectionFactoryProxy
-
Delegates to
ConnectionFactoryUtils
for automatically participating in Spring-managed transactions. - create() - Method in interface org.springframework.r2dbc.core.binding.BindMarkersFactory
-
Create a new
BindMarkers
instance. - create(ConnectionFactory) - Static method in interface org.springframework.r2dbc.core.DatabaseClient
-
Create a
DatabaseClient
that will use the providedConnectionFactory
. - createColumnMap(int) - Method in class org.springframework.r2dbc.core.ColumnMapRowMapper
-
Create a
Map
instance to be used as column map. - createTransactionDefinition(TransactionDefinition) - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
-
Determine the transaction definition from our
TransactionDefinition
. - currentConnectionFactory(ConnectionFactory) - Static method in class org.springframework.r2dbc.connection.ConnectionFactoryUtils
-
Obtain the
ConnectionFactory
from the currentTransactionSynchronizationManager
.
D
- DatabaseClient - Interface in org.springframework.r2dbc.core
-
A non-blocking, reactive client for performing database calls with Reactive Streams back pressure.
- DatabaseClient.Builder - Interface in org.springframework.r2dbc.core
-
A mutable builder for creating a
DatabaseClient
. - DatabaseClient.GenericExecuteSpec - Interface in org.springframework.r2dbc.core
-
Contract for specifying an SQL call along with options leading to the execution.
- DatabasePopulator - Interface in org.springframework.r2dbc.connection.init
-
Strategy used to populate, initialize, or clean up a database.
- DEFAULT_BLOCK_COMMENT_END_DELIMITER - Static variable in class org.springframework.r2dbc.connection.init.ScriptUtils
-
Default end delimiter for block comments within SQL scripts:
"*/"
. - DEFAULT_BLOCK_COMMENT_START_DELIMITER - Static variable in class org.springframework.r2dbc.connection.init.ScriptUtils
-
Default start delimiter for block comments within SQL scripts:
"/*"
. - DEFAULT_COMMENT_PREFIXES - Static variable in class org.springframework.r2dbc.connection.init.ScriptUtils
-
Default prefixes for single-line comments within SQL scripts:
["--"]
. - DEFAULT_STATEMENT_SEPARATOR - Static variable in class org.springframework.r2dbc.connection.init.ScriptUtils
-
Default statement separator within SQL scripts:
";"
. - DelegatingConnectionFactory - Class in org.springframework.r2dbc.connection
-
R2DBC
ConnectionFactory
implementation that delegates all calls to a given targetConnectionFactory
. - DelegatingConnectionFactory(ConnectionFactory) - Constructor for class org.springframework.r2dbc.connection.DelegatingConnectionFactory
-
Create a new DelegatingConnectionFactory.
- destroy() - Method in class org.springframework.r2dbc.connection.init.ConnectionFactoryInitializer
-
Use the database cleaner to clean up the database.
- destroy() - Method in class org.springframework.r2dbc.connection.SingleConnectionFactory
-
Close the underlying
Connection
. - determineCurrentLookupKey() - Method in class org.springframework.r2dbc.connection.lookup.AbstractRoutingConnectionFactory
-
Determine the current lookup key.
- determineTargetConnectionFactory() - Method in class org.springframework.r2dbc.connection.lookup.AbstractRoutingConnectionFactory
-
Retrieve the current target
ConnectionFactory
. - determineTimeout(TransactionDefinition) - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
-
Determine the actual timeout to use for the given definition.
- doBegin(TransactionSynchronizationManager, Object, TransactionDefinition) - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
- doCleanupAfterCompletion(TransactionSynchronizationManager, Object) - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
- doCommit(TransactionSynchronizationManager, GenericReactiveTransaction) - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
- doGetConnection(ConnectionFactory) - Static method in class org.springframework.r2dbc.connection.ConnectionFactoryUtils
-
Actually obtain a R2DBC Connection from the given
ConnectionFactory
. - doGetTransaction(TransactionSynchronizationManager) - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
- doReleaseConnection(Connection, ConnectionFactory) - Static method in class org.springframework.r2dbc.connection.ConnectionFactoryUtils
-
Actually close the given
Connection
, obtained from the givenConnectionFactory
. - doResume(TransactionSynchronizationManager, Object, Object) - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
- doRollback(TransactionSynchronizationManager, GenericReactiveTransaction) - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
- doSetRollbackOnly(TransactionSynchronizationManager, GenericReactiveTransaction) - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
- doSuspend(TransactionSynchronizationManager, Object) - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
E
- empty() - Static method in class org.springframework.r2dbc.core.binding.Bindings
-
Return an empty
Bindings
object. - empty(Class<?>) - Static method in class org.springframework.r2dbc.core.Parameter
-
Deprecated.Create a new empty
Parameter
fortype
. - EMPTY_FILTER - Static variable in interface org.springframework.r2dbc.core.StatementFilterFunction
-
An empty
StatementFilterFunction
that delegates toExecuteFunction
. - EOF_STATEMENT_SEPARATOR - Static variable in class org.springframework.r2dbc.connection.init.ScriptUtils
-
End of file (EOF) SQL statement separator:
"^^^ END OF SCRIPT ^^^"
. - equals(Object) - Method in class org.springframework.r2dbc.core.Parameter
-
Deprecated.
- execute(Statement) - Method in interface org.springframework.r2dbc.core.ExecuteFunction
- executeFunction(ExecuteFunction) - Method in interface org.springframework.r2dbc.core.DatabaseClient.Builder
-
Configure an
ExecuteFunction
to executeStatement
objects. - ExecuteFunction - Interface in org.springframework.r2dbc.core
- executeSqlScript(Connection, Resource) - Static method in class org.springframework.r2dbc.connection.init.ScriptUtils
-
Execute the given SQL script using default settings for statement separators, comment delimiters, and exception handling flags.
- executeSqlScript(Connection, EncodedResource) - Static method in class org.springframework.r2dbc.connection.init.ScriptUtils
-
Execute the given SQL script using default settings for statement separators, comment delimiters, and exception handling flags.
- executeSqlScript(Connection, EncodedResource, DataBufferFactory, boolean, boolean, String[], String, String, String) - Static method in class org.springframework.r2dbc.connection.init.ScriptUtils
-
Execute the given SQL script.
- executeSqlScript(Connection, EncodedResource, DataBufferFactory, boolean, boolean, String, String, String, String) - Static method in class org.springframework.r2dbc.connection.init.ScriptUtils
-
Execute the given SQL script.
F
- FALLBACK_STATEMENT_SEPARATOR - Static variable in class org.springframework.r2dbc.connection.init.ScriptUtils
-
Fallback statement separator within SQL scripts:
"\n"
. - fetch() - Method in interface org.springframework.r2dbc.core.DatabaseClient.GenericExecuteSpec
-
Perform the SQL call and retrieve the result by entering the execution stage.
- FetchSpec<T> - Interface in org.springframework.r2dbc.core
-
Union type for fetching results.
- filter(Statement, ExecuteFunction) - Method in interface org.springframework.r2dbc.core.StatementFilterFunction
-
Apply this filter to the given
Statement
andExecuteFunction
. - filter(Function<? super Statement, ? extends Statement>) - Method in interface org.springframework.r2dbc.core.DatabaseClient.GenericExecuteSpec
-
Add the given filter to the end of the filter chain.
- filter(StatementFilterFunction) - Method in interface org.springframework.r2dbc.core.DatabaseClient.GenericExecuteSpec
-
Add the given filter to the end of the filter chain.
- first() - Method in interface org.springframework.r2dbc.core.RowsFetchSpec
-
Get the first or no result.
- flatMap(Function<Result, Publisher<R>>) - Method in interface org.springframework.r2dbc.core.DatabaseClient.GenericExecuteSpec
- forEach(Consumer<? super Bindings.Binding>) - Method in class org.springframework.r2dbc.core.binding.Bindings
-
Perform the given action for each binding of this
Bindings
until all bindings have been processed or the action throws an exception. - from(Object) - Static method in class org.springframework.r2dbc.core.Parameter
-
Deprecated.Create a new
Parameter
fromvalue
. - fromOrEmpty(Object, Class<?>) - Static method in class org.springframework.r2dbc.core.Parameter
-
Deprecated.
G
- get() - Method in interface org.springframework.r2dbc.core.QueryOperation
- getAutoCommitValue() - Method in class org.springframework.r2dbc.connection.SingleConnectionFactory
-
Return whether the returned
Connection
's "autoCommit" setting should be overridden. - getBindings() - Method in class org.springframework.r2dbc.core.binding.Bindings
- getBindMarker() - Method in class org.springframework.r2dbc.core.binding.Bindings.Binding
-
Return the associated
BindMarker
. - getBindMarkers(ConnectionFactory) - Method in interface org.springframework.r2dbc.core.binding.BindMarkersFactoryResolver.BindMarkerFactoryProvider
-
Return a
BindMarkersFactory
for aConnectionFactory
. - getCloseSuppressingConnectionProxy(Connection) - Method in class org.springframework.r2dbc.connection.SingleConnectionFactory
-
Wrap the given
Connection
with a proxy that delegates every method call to it but suppresses close calls. - getColumnKey(String) - Method in class org.springframework.r2dbc.core.ColumnMapRowMapper
-
Determine the key to use for the given column in the column
Map
. - getColumnValue(Row, int) - Method in class org.springframework.r2dbc.core.ColumnMapRowMapper
-
Retrieve a R2DBC object value for the specified column.
- getConnection() - Method in class org.springframework.r2dbc.connection.ConnectionHolder
-
Return the current
Connection
held by thisConnectionHolder
. - getConnection(ConnectionFactory) - Static method in class org.springframework.r2dbc.connection.ConnectionFactoryUtils
-
Obtain a
Connection
from the givenConnectionFactory
. - getConnectionFactories() - Method in class org.springframework.r2dbc.connection.lookup.MapConnectionFactoryLookup
-
Get the
Map
ofConnectionFactories
maintained by this object. - getConnectionFactory() - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
-
Return the R2DBC
ConnectionFactory
that this instance manages transactions for. - getConnectionFactory() - Method in interface org.springframework.r2dbc.core.DatabaseClient
-
Get the
ConnectionFactory
that this client uses. - getConnectionFactory(String) - Method in class org.springframework.r2dbc.connection.lookup.BeanFactoryConnectionFactoryLookup
- getConnectionFactory(String) - Method in interface org.springframework.r2dbc.connection.lookup.ConnectionFactoryLookup
-
Retrieve the
ConnectionFactory
identified by the given name. - getConnectionFactory(String) - Method in class org.springframework.r2dbc.connection.lookup.MapConnectionFactoryLookup
- getConnectionFactory(String) - Method in class org.springframework.r2dbc.connection.lookup.SingleConnectionFactoryLookup
- getMetadata() - Method in class org.springframework.r2dbc.connection.DelegatingConnectionFactory
- getMetadata() - Method in class org.springframework.r2dbc.connection.lookup.AbstractRoutingConnectionFactory
- getPlaceholder() - Method in interface org.springframework.r2dbc.core.binding.BindMarker
-
Return the database-specific placeholder for a given substitution.
- getR2dbcException() - Method in exception org.springframework.r2dbc.BadSqlGrammarException
-
Return the wrapped
R2dbcException
. - getR2dbcException() - Method in exception org.springframework.r2dbc.UncategorizedR2dbcException
-
Return the wrapped
R2dbcException
. - getSource() - Method in interface org.springframework.r2dbc.core.PreparedOperation
-
Get the underlying query source.
- getSql() - Method in exception org.springframework.r2dbc.BadSqlGrammarException
-
Return the SQL that caused the problem.
- getSql() - Method in interface org.springframework.r2dbc.core.SqlProvider
-
Return the SQL string for this object, i.e.
- getSql() - Method in exception org.springframework.r2dbc.UncategorizedR2dbcException
-
Return the SQL that led to the problem (if known).
- getTargetConnection(Connection) - Static method in class org.springframework.r2dbc.connection.ConnectionFactoryUtils
-
Return the innermost target
Connection
of the givenConnection
. - getTargetConnectionFactory() - Method in class org.springframework.r2dbc.connection.DelegatingConnectionFactory
-
Return the target ConnectionFactory that this ConnectionFactory delegates to.
- getTransactionAwareConnectionProxy(ConnectionFactory) - Method in class org.springframework.r2dbc.connection.TransactionAwareConnectionFactoryProxy
-
Wraps the given
Connection
with a proxy that delegates every method call to it but delegatesclose()
calls toConnectionFactoryUtils
. - getType() - Method in class org.springframework.r2dbc.core.Parameter
-
Deprecated.Return the column value type.
- getValue() - Method in class org.springframework.r2dbc.core.binding.Bindings.Binding
-
Return the binding value.
- getValue() - Method in class org.springframework.r2dbc.core.Parameter
-
Deprecated.Return the column value (can be
null
).
H
- hasConnection() - Method in class org.springframework.r2dbc.connection.ConnectionHolder
-
Return whether this holder currently has a
Connection
. - hashCode() - Method in class org.springframework.r2dbc.core.Parameter
-
Deprecated.
- hasValue() - Method in class org.springframework.r2dbc.core.binding.Bindings.Binding
-
Return whether the binding has a value associated with it.
- hasValue() - Method in class org.springframework.r2dbc.core.Parameter
-
Deprecated.Return whether this
Parameter
has a value.
I
- identifiablePlaceholders() - Method in interface org.springframework.r2dbc.core.binding.BindMarkersFactory
-
Return whether the
BindMarkersFactory
uses identifiable placeholders:false
if multiple placeholders cannot be distinguished by just theplaceholder
identifier. - inConnection(Function<Connection, Mono<T>>) - Method in interface org.springframework.r2dbc.core.ConnectionAccessor
-
Execute a callback
Function
within aConnection
scope. - inConnectionMany(Function<Connection, Flux<T>>) - Method in interface org.springframework.r2dbc.core.ConnectionAccessor
-
Execute a callback
Function
within aConnection
scope. - indexed(String, int) - Static method in interface org.springframework.r2dbc.core.binding.BindMarkersFactory
-
Create index-based
BindMarkers
using indexes to bind parameters. - INSTANCE - Static variable in class org.springframework.r2dbc.core.ColumnMapRowMapper
-
A default
ColumnMapRowMapper
instance. - isEmpty() - Method in class org.springframework.r2dbc.core.Parameter
-
Deprecated.Return whether this
Parameter
has an empty value. - isEnforceReadOnly() - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
-
Return whether to enforce the read-only nature of a transaction through an explicit statement on the transactional connection.
- isExistingTransaction(Object) - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
- isNull() - Method in class org.springframework.r2dbc.core.binding.Bindings.Binding
-
Return whether the binding is empty.
- isSuppressClose() - Method in class org.springframework.r2dbc.connection.SingleConnectionFactory
-
Return whether the returned
Connection
will be a close-suppressing proxy or the physicalConnection
. - isTransactionActive() - Method in class org.springframework.r2dbc.connection.ConnectionHolder
-
Return whether this holder represents an active, R2DBC-managed transaction.
- iterator() - Method in class org.springframework.r2dbc.core.binding.Bindings
M
- map(BiFunction<Row, RowMetadata, R>) - Method in interface org.springframework.r2dbc.core.DatabaseClient.GenericExecuteSpec
-
Configure a result mapping
function
and enter the execution stage. - map(Function<? super Readable, R>) - Method in interface org.springframework.r2dbc.core.DatabaseClient.GenericExecuteSpec
-
Configure a result mapping
function
and enter the execution stage. - MapConnectionFactoryLookup - Class in org.springframework.r2dbc.connection.lookup
-
Simple
ConnectionFactoryLookup
implementation that relies on a map for doing lookups. - MapConnectionFactoryLookup() - Constructor for class org.springframework.r2dbc.connection.lookup.MapConnectionFactoryLookup
-
Create a new instance of the
MapConnectionFactoryLookup
class. - MapConnectionFactoryLookup(String, ConnectionFactory) - Constructor for class org.springframework.r2dbc.connection.lookup.MapConnectionFactoryLookup
-
Create a new instance of the
MapConnectionFactoryLookup
class. - MapConnectionFactoryLookup(Map<String, ConnectionFactory>) - Constructor for class org.springframework.r2dbc.connection.lookup.MapConnectionFactoryLookup
-
Create a new instance of the
MapConnectionFactoryLookup
class. - merge(Bindings, Bindings) - Static method in class org.springframework.r2dbc.core.binding.Bindings
- MutableBindings - Class in org.springframework.r2dbc.core.binding
- MutableBindings(BindMarkers) - Constructor for class org.springframework.r2dbc.core.binding.MutableBindings
-
Create new
MutableBindings
.
N
- named(String, String, int) - Static method in interface org.springframework.r2dbc.core.binding.BindMarkersFactory
-
Create named
BindMarkers
using identifiers to bind parameters. - named(String, String, int, Function<String, String>) - Static method in interface org.springframework.r2dbc.core.binding.BindMarkersFactory
-
Create named
BindMarkers
using identifiers to bind parameters. - namedParameters(boolean) - Method in interface org.springframework.r2dbc.core.DatabaseClient.Builder
-
Configure whether to use named parameter expansion.
- next() - Method in interface org.springframework.r2dbc.core.binding.BindMarkers
-
Create a new
BindMarker
. - next(String) - Method in interface org.springframework.r2dbc.core.binding.BindMarkers
-
Create a new
BindMarker
that accepts ahint
. - nextMarker() - Method in class org.springframework.r2dbc.core.binding.MutableBindings
-
Obtain the next
BindMarker
. - nextMarker(String) - Method in class org.springframework.r2dbc.core.binding.MutableBindings
-
Obtain the next
BindMarker
with a namehint
. - NoBindMarkersFactoryException(String) - Constructor for exception org.springframework.r2dbc.core.binding.BindMarkersFactoryResolver.NoBindMarkersFactoryException
-
Constructor for NoBindMarkersFactoryException.
O
- obtainConnectionFactory() - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
-
Obtain the
ConnectionFactory
for actual use. - one() - Method in interface org.springframework.r2dbc.core.RowsFetchSpec
-
Get exactly zero or one result.
- org.springframework.r2dbc - package org.springframework.r2dbc
-
The classes in this package make R2DBC easier to use and reduce the likelihood of common errors.
- org.springframework.r2dbc.connection - package org.springframework.r2dbc.connection
-
Provides a utility class for easy ConnectionFactory access, a ReactiveTransactionManager for a single ConnectionFactory, and various simple ConnectionFactory implementations.
- org.springframework.r2dbc.connection.init - package org.springframework.r2dbc.connection.init
-
Provides extensible support for initializing databases through scripts.
- org.springframework.r2dbc.connection.lookup - package org.springframework.r2dbc.connection.lookup
-
Provides a strategy for looking up R2DBC ConnectionFactories by name.
- org.springframework.r2dbc.core - package org.springframework.r2dbc.core
-
Core domain types around DatabaseClient.
- org.springframework.r2dbc.core.binding - package org.springframework.r2dbc.core.binding
-
Classes providing an abstraction over SQL bind markers.
P
- Parameter - Class in org.springframework.r2dbc.core
-
Deprecated.
- populate(Connection) - Method in class org.springframework.r2dbc.connection.init.CompositeDatabasePopulator
- populate(Connection) - Method in interface org.springframework.r2dbc.connection.init.DatabasePopulator
-
Populate, initialize, or clean up the database using the provided R2DBC
Connection
. - populate(Connection) - Method in class org.springframework.r2dbc.connection.init.ResourceDatabasePopulator
- populate(ConnectionFactory) - Method in interface org.springframework.r2dbc.connection.init.DatabasePopulator
-
Execute the given
DatabasePopulator
against the givenConnectionFactory
. - prepareConnection(Connection) - Method in class org.springframework.r2dbc.connection.SingleConnectionFactory
-
Prepare the
Connection
before using it. - PreparedOperation<T> - Interface in org.springframework.r2dbc.core
-
Extension to
QueryOperation
for a prepared SQL querySupplier
with bound parameters. - prepareTransactionalConnection(Connection, TransactionDefinition) - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
-
Prepare the transactional
Connection
right after transaction begin.
Q
- QueryOperation - Interface in org.springframework.r2dbc.core
-
Interface declaring a query operation that can be represented with a query string.
R
- R2dbcTransactionManager - Class in org.springframework.r2dbc.connection
-
ReactiveTransactionManager
implementation for a single R2DBCConnectionFactory
. - R2dbcTransactionManager() - Constructor for class org.springframework.r2dbc.connection.R2dbcTransactionManager
-
Create a new
R2dbcTransactionManager
instance. - R2dbcTransactionManager(ConnectionFactory) - Constructor for class org.springframework.r2dbc.connection.R2dbcTransactionManager
-
Create a new
R2dbcTransactionManager
instance. - releaseConnection(Connection, ConnectionFactory) - Static method in class org.springframework.r2dbc.connection.ConnectionFactoryUtils
-
Close the given
Connection
, obtained from the givenConnectionFactory
, if it is not managed externally (that is, not bound to the subscription). - released() - Method in class org.springframework.r2dbc.connection.ConnectionHolder
-
Releases the current
Connection
. - resetConnection() - Method in class org.springframework.r2dbc.connection.SingleConnectionFactory
-
Reset the underlying shared Connection, to be reinitialized on next access.
- resolve(ConnectionFactory) - Static method in class org.springframework.r2dbc.core.binding.BindMarkersFactoryResolver
-
Retrieve a
BindMarkersFactory
by inspectingConnectionFactory
and its metadata. - resolveIsolationLevel(int) - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
-
Resolve the isolation level constant to a R2DBC
IsolationLevel
. - resolveSpecifiedConnectionFactory(Object) - Method in class org.springframework.r2dbc.connection.lookup.AbstractRoutingConnectionFactory
-
Resolve the specified connection factory object into a
ConnectionFactory
instance. - resolveSpecifiedLookupKey(Object) - Method in class org.springframework.r2dbc.connection.lookup.AbstractRoutingConnectionFactory
-
Resolve the given lookup key object, as specified in the
targetConnectionFactories
map, into the actual lookup key to be used for matching with thecurrent lookup key
. - ResourceDatabasePopulator - Class in org.springframework.r2dbc.connection.init
-
Populates, initializes, or cleans up a database using SQL scripts defined in external resources.
- ResourceDatabasePopulator() - Constructor for class org.springframework.r2dbc.connection.init.ResourceDatabasePopulator
-
Create a new
ResourceDatabasePopulator
with default settings. - ResourceDatabasePopulator(boolean, boolean, String, Resource...) - Constructor for class org.springframework.r2dbc.connection.init.ResourceDatabasePopulator
-
Construct a new
ResourceDatabasePopulator
with the supplied values. - ResourceDatabasePopulator(Resource...) - Constructor for class org.springframework.r2dbc.connection.init.ResourceDatabasePopulator
-
Create a new
ResourceDatabasePopulator
with default settings for the supplied scripts. - RowsFetchSpec<T> - Interface in org.springframework.r2dbc.core
-
Contract for fetching tabular results.
- rowsUpdated() - Method in interface org.springframework.r2dbc.core.UpdatedRowsFetchSpec
-
Get the number of updated rows.
S
- ScriptException - Exception in org.springframework.r2dbc.connection.init
-
Root of the hierarchy of data access exceptions that are related to processing of SQL scripts.
- ScriptException(String) - Constructor for exception org.springframework.r2dbc.connection.init.ScriptException
-
Create a new
ScriptException
. - ScriptException(String, Throwable) - Constructor for exception org.springframework.r2dbc.connection.init.ScriptException
-
Create a new
ScriptException
. - ScriptParseException - Exception in org.springframework.r2dbc.connection.init
-
Thrown by
ScriptUtils
if an SQL script cannot be properly parsed. - ScriptParseException(String, EncodedResource) - Constructor for exception org.springframework.r2dbc.connection.init.ScriptParseException
-
Create a new
ScriptParseException
. - ScriptParseException(String, EncodedResource, Throwable) - Constructor for exception org.springframework.r2dbc.connection.init.ScriptParseException
-
Create a new
ScriptParseException
. - ScriptStatementFailedException - Exception in org.springframework.r2dbc.connection.init
-
Thrown by
ScriptUtils
if a statement in an SQL script failed when executing it against the target database. - ScriptStatementFailedException(String, int, EncodedResource, Throwable) - Constructor for exception org.springframework.r2dbc.connection.init.ScriptStatementFailedException
-
Create a new
ScriptStatementFailedException
. - ScriptUtils - Class in org.springframework.r2dbc.connection.init
-
Generic utility methods for working with SQL scripts in conjunction with R2DBC.
- ScriptUtils() - Constructor for class org.springframework.r2dbc.connection.init.ScriptUtils
- setAutoCommit(boolean) - Method in class org.springframework.r2dbc.connection.SingleConnectionFactory
-
Set whether the returned
Connection
's "autoCommit" setting should be overridden. - setBeanFactory(BeanFactory) - Method in class org.springframework.r2dbc.connection.lookup.BeanFactoryConnectionFactoryLookup
- setBlockCommentEndDelimiter(String) - Method in class org.springframework.r2dbc.connection.init.ResourceDatabasePopulator
-
Set the end delimiter that identifies block comments within the SQL scripts.
- setBlockCommentStartDelimiter(String) - Method in class org.springframework.r2dbc.connection.init.ResourceDatabasePopulator
-
Set the start delimiter that identifies block comments within the SQL scripts.
- setCommentPrefix(String) - Method in class org.springframework.r2dbc.connection.init.ResourceDatabasePopulator
-
Set the prefix that identifies single-line comments within the SQL scripts.
- setCommentPrefixes(String...) - Method in class org.springframework.r2dbc.connection.init.ResourceDatabasePopulator
-
Set the prefixes that identify single-line comments within the SQL scripts.
- setConnection(Connection) - Method in class org.springframework.r2dbc.connection.ConnectionHolder
-
Override the existing Connection with the given
Connection
. - setConnectionFactories(Map<String, ConnectionFactory>) - Method in class org.springframework.r2dbc.connection.lookup.MapConnectionFactoryLookup
-
Set the
Map
ofConnectionFactories
. - setConnectionFactory(ConnectionFactory) - Method in class org.springframework.r2dbc.connection.init.ConnectionFactoryInitializer
-
The
ConnectionFactory
for the database to populate when this component is initialized and to clean up when this component is shut down. - setConnectionFactory(ConnectionFactory) - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
-
Set the R2DBC
ConnectionFactory
that this instance should manage transactions for. - setConnectionFactoryLookup(ConnectionFactoryLookup) - Method in class org.springframework.r2dbc.connection.lookup.AbstractRoutingConnectionFactory
-
Set the
ConnectionFactoryLookup
implementation to use for resolving connection factory name Strings in thetargetConnectionFactories
map. - setContinueOnError(boolean) - Method in class org.springframework.r2dbc.connection.init.ResourceDatabasePopulator
-
Flag to indicate that all failures in SQL should be logged but not cause a failure.
- setDatabaseCleaner(DatabasePopulator) - Method in class org.springframework.r2dbc.connection.init.ConnectionFactoryInitializer
-
Set the
DatabasePopulator
to execute during the bean destruction phase, cleaning up the database and leaving it in a known state for others. - setDatabasePopulator(DatabasePopulator) - Method in class org.springframework.r2dbc.connection.init.ConnectionFactoryInitializer
-
Set the
DatabasePopulator
to execute during the bean initialization phase. - setDataBufferFactory(DataBufferFactory) - Method in class org.springframework.r2dbc.connection.init.ResourceDatabasePopulator
-
Set the
DataBufferFactory
to use forResource
loading. - setDefaultTargetConnectionFactory(Object) - Method in class org.springframework.r2dbc.connection.lookup.AbstractRoutingConnectionFactory
-
Specify the default target
ConnectionFactory
, if any. - setEnabled(boolean) - Method in class org.springframework.r2dbc.connection.init.ConnectionFactoryInitializer
-
Flag to explicitly enable or disable the database populator and database cleaner.
- setEnforceReadOnly(boolean) - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
-
Specify whether to enforce the read-only nature of a transaction (as indicated by
TransactionDefinition.isReadOnly()
) through an explicit statement on the transactional connection: "SET TRANSACTION READ ONLY" as understood by Oracle, MySQL and Postgres. - setIgnoreFailedDrops(boolean) - Method in class org.springframework.r2dbc.connection.init.ResourceDatabasePopulator
-
Flag to indicate that a failed SQL
DROP
statement can be ignored. - setLenientFallback(boolean) - Method in class org.springframework.r2dbc.connection.lookup.AbstractRoutingConnectionFactory
-
Specify whether to apply a lenient fallback to the default
ConnectionFactory
if no specificConnectionFactory
could be found for the current lookup key. - setPopulators(DatabasePopulator...) - Method in class org.springframework.r2dbc.connection.init.CompositeDatabasePopulator
-
Specify one or more populators to delegate to.
- setScripts(Resource...) - Method in class org.springframework.r2dbc.connection.init.ResourceDatabasePopulator
-
Set the scripts to execute to initialize or clean up the database, replacing any previously added scripts.
- setSeparator(String) - Method in class org.springframework.r2dbc.connection.init.ResourceDatabasePopulator
-
Specify the statement separator, if a custom one.
- setSqlScriptEncoding(String) - Method in class org.springframework.r2dbc.connection.init.ResourceDatabasePopulator
-
Specify the encoding for the configured SQL scripts, if different from the platform encoding.
- setSqlScriptEncoding(Charset) - Method in class org.springframework.r2dbc.connection.init.ResourceDatabasePopulator
-
Specify the encoding for the configured SQL scripts, if different from the platform encoding.
- setSuppressClose(boolean) - Method in class org.springframework.r2dbc.connection.SingleConnectionFactory
-
Set whether the returned
Connection
should be a close-suppressing proxy or the physicalConnection
. - setTargetConnectionFactories(Map<?, ?>) - Method in class org.springframework.r2dbc.connection.lookup.AbstractRoutingConnectionFactory
-
Specify the map of target
ConnectionFactories
, with the lookup key as key. - setTransactionActive(boolean) - Method in class org.springframework.r2dbc.connection.ConnectionHolder
-
Set whether this holder represents an active, R2DBC-managed transaction.
- SingleConnectionFactory - Class in org.springframework.r2dbc.connection
-
Implementation of
DelegatingConnectionFactory
that wraps a single R2DBCConnection
which is not closed after use. - SingleConnectionFactory(ConnectionFactory) - Constructor for class org.springframework.r2dbc.connection.SingleConnectionFactory
-
Constructor for bean-style configuration.
- SingleConnectionFactory(Connection, ConnectionFactoryMetadata, boolean) - Constructor for class org.springframework.r2dbc.connection.SingleConnectionFactory
- SingleConnectionFactory(String, boolean) - Constructor for class org.springframework.r2dbc.connection.SingleConnectionFactory
-
Create a new
SingleConnectionFactory
using an R2DBC connection URL. - SingleConnectionFactoryLookup - Class in org.springframework.r2dbc.connection.lookup
-
An implementation of
ConnectionFactoryLookup
that simply wraps a single givenConnectionFactory
returned for any connection factory name. - SingleConnectionFactoryLookup(ConnectionFactory) - Constructor for class org.springframework.r2dbc.connection.lookup.SingleConnectionFactoryLookup
-
Create a new instance of the
SingleConnectionFactoryLookup
class. - spliterator() - Method in class org.springframework.r2dbc.core.binding.Bindings
- sql(String) - Method in interface org.springframework.r2dbc.core.DatabaseClient
-
Specify a static
sql
statement to run. - sql(Supplier<String>) - Method in interface org.springframework.r2dbc.core.DatabaseClient
-
Specify an SQL supplier that provides SQL to run.
- SqlProvider - Interface in org.springframework.r2dbc.core
-
Interface to be implemented by objects that can provide SQL strings.
- StatementFilterFunction - Interface in org.springframework.r2dbc.core
-
Represents a function that filters an
execute function
.
T
- then() - Method in interface org.springframework.r2dbc.core.DatabaseClient.GenericExecuteSpec
-
Perform the SQL call and return a
Mono
that completes without result on statement completion. - toQuery() - Method in interface org.springframework.r2dbc.core.QueryOperation
-
Return the string-representation of this operation to be used with
Statement
creation. - toString() - Method in class org.springframework.r2dbc.core.Parameter
-
Deprecated.
- TransactionAwareConnectionFactoryProxy - Class in org.springframework.r2dbc.connection
-
Proxy for a target R2DBC
ConnectionFactory
, adding awareness of Spring-managed transactions. - TransactionAwareConnectionFactoryProxy(ConnectionFactory) - Constructor for class org.springframework.r2dbc.connection.TransactionAwareConnectionFactoryProxy
-
Create a new
TransactionAwareConnectionFactoryProxy
. - translateException(String, R2dbcException) - Method in class org.springframework.r2dbc.connection.R2dbcTransactionManager
-
Translate the given R2DBC commit/rollback exception to a common Spring exception to propagate from the
AbstractReactiveTransactionManager.commit(org.springframework.transaction.ReactiveTransaction)
/AbstractReactiveTransactionManager.rollback(org.springframework.transaction.ReactiveTransaction)
call.
U
- UncategorizedR2dbcException - Exception in org.springframework.r2dbc
-
Exception thrown when we can't classify a
R2dbcException
into one of our generic data access exceptions. - UncategorizedR2dbcException(String, String, R2dbcException) - Constructor for exception org.springframework.r2dbc.UncategorizedR2dbcException
-
Constructor for
UncategorizedSQLException
. - UncategorizedScriptException - Exception in org.springframework.r2dbc.connection.init
-
Thrown when we cannot determine anything more specific than "something went wrong while processing an SQL script": for example, an
R2dbcException
from R2DBC that we cannot pinpoint more precisely. - UncategorizedScriptException(String) - Constructor for exception org.springframework.r2dbc.connection.init.UncategorizedScriptException
-
Create a new
UncategorizedScriptException
. - UncategorizedScriptException(String, Throwable) - Constructor for exception org.springframework.r2dbc.connection.init.UncategorizedScriptException
-
Create a new
UncategorizedScriptException
. - unwrap() - Method in class org.springframework.r2dbc.connection.DelegatingConnectionFactory
- UpdatedRowsFetchSpec - Interface in org.springframework.r2dbc.core
-
Contract for fetching the number of affected rows.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
io.r2dbc.spi.Parameter
instead.