Interface ReactiveDataAccessStrategy
- All Known Implementing Classes:
DefaultReactiveDataAccessStrategy
Deprecated.
Data access strategy that generalizes convenience operations using mapped entities. Typically used internally by
R2dbcEntityOperations
and repository support. SQL creation is limited to single-table operations and
single-column primary keys.- Author:
- Mark Paluch, Jens Schauder
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Deprecated.Interface to retrieve parameters for named parameter processing. -
Method Summary
Modifier and TypeMethodDescriptiongetAllColumns
(Class<?> entityType) Deprecated.getBindValue
(Parameter value) Deprecated.Return a potentially convertedParameter
for strategies that support type conversion.Deprecated.Returns theR2dbcConverter
.getIdentifierColumns
(Class<?> entityType) Deprecated.getOutboundRow
(Object object) Deprecated.Returns aOutboundRow
that maps column names to aParameter
value.<T> BiFunction<io.r2dbc.spi.Row,
io.r2dbc.spi.RowMetadata, T> getRowMapper
(Class<T> typeToRead) Deprecated.Deprecated.Returns theR2dbcDialect
-specificStatementMapper
.getTableName
(Class<?> type) Deprecated.processNamedParameters
(String query, ReactiveDataAccessStrategy.NamedParameterProvider parameterProvider) Deprecated.since 1.2.default String
renderForGeneratedValues
(SqlIdentifier identifier) Deprecated.Render aSqlIdentifier
in a way suitable for registering it as a generated key with a statement throughStatement#returnGeneratedValues
.toRowDocument
(Class<?> type, io.r2dbc.spi.Readable row, Iterable<? extends io.r2dbc.spi.ReadableMetadata> metadata) Deprecated.Create a flatRowDocument
from a singleRow or Stored Procedure output
.toSql
(SqlIdentifier identifier) Deprecated.Render aSqlIdentifier
for SQL usage.
-
Method Details
-
getAllColumns
Deprecated.- Parameters:
entityType
-- Returns:
- all column names for a specific type.
-
getIdentifierColumns
Deprecated.- Parameters:
entityType
-- Returns:
- all Id column names for a specific type.
-
getOutboundRow
Deprecated.Returns aOutboundRow
that maps column names to aParameter
value.- Parameters:
object
- must not be null.- Returns:
-
getBindValue
Deprecated.Return a potentially convertedParameter
for strategies that support type conversion.- Parameters:
value
- must not be null.- Returns:
- Since:
- 1.2
-
getRowMapper
Deprecated.- Type Parameters:
T
-- Parameters:
typeToRead
-- Returns:
-
toRowDocument
RowDocument toRowDocument(Class<?> type, io.r2dbc.spi.Readable row, Iterable<? extends io.r2dbc.spi.ReadableMetadata> metadata) Deprecated.Create a flatRowDocument
from a singleRow or Stored Procedure output
.- Parameters:
type
- the underlying entity type.row
- the row or stored procedure output to retrieve data from.metadata
- readable metadata.- Returns:
- the
RowDocument
containing the data. - Since:
- 3.2
-
getTableName
Deprecated.- Parameters:
type
-- Returns:
- the table name for the
entity type
.
-
processNamedParameters
@Deprecated PreparedOperation<?> processNamedParameters(String query, ReactiveDataAccessStrategy.NamedParameterProvider parameterProvider) Deprecated.since 1.2.DatabaseClient
encapsulates named parameter handling entirely.Expand named parameters and return aPreparedOperation
wrapping the given bindings.- Parameters:
query
- the query to expand.parameterProvider
- indexed parameter bindings.- Returns:
- the
PreparedOperation
encapsulating expanded SQL and namedBindings. - Throws:
InvalidDataAccessApiUsageException
- if a named parameter value cannot be resolved.
-
getStatementMapper
StatementMapper getStatementMapper()Deprecated.Returns theR2dbcDialect
-specificStatementMapper
.- Returns:
- the
R2dbcDialect
-specificStatementMapper
.
-
getConverter
R2dbcConverter getConverter()Deprecated.Returns theR2dbcConverter
.- Returns:
- the
R2dbcConverter
.
-
toSql
Deprecated.Render aSqlIdentifier
for SQL usage.- Parameters:
identifier
- the identifier to be rendered.- Returns:
- the SQL representation of the identifier with applied, potentially dialect-specific, processing rules.
- Since:
- 1.1
- See Also:
-
renderForGeneratedValues
Deprecated.Render aSqlIdentifier
in a way suitable for registering it as a generated key with a statement throughStatement#returnGeneratedValues
.- Parameters:
identifier
- to render. Must not be null.- Returns:
- rendered identifier. Guaranteed to be not null.
- Since:
- 1.3.2
-
StatementMapper
,UpdateMapper
andR2dbcConverter
.