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 TypeMethodDescriptionList<org.springframework.data.relational.core.sql.SqlIdentifier>
getAllColumns
(Class<?> entityType) Deprecated.getBindValue
(Parameter value) Deprecated.Return a potentially convertedParameter
for strategies that support type conversion.Deprecated.Returns theR2dbcConverter
.default org.springframework.data.relational.core.dialect.Dialect
Deprecated.List<org.springframework.data.relational.core.sql.SqlIdentifier>
getIdentifierColumns
(Class<?> entityType) Deprecated.getOutboundRow
(Object object) Deprecated.Returns aOutboundRow
that maps column names to aParameter
value.<T> BiFunction<Row,
RowMetadata, T> getRowMapper
(Class<T> typeToRead) Deprecated.Deprecated.Returns theR2dbcDialect
-specificStatementMapper
.org.springframework.data.relational.core.sql.SqlIdentifier
getTableName
(Class<?> type) Deprecated.processNamedParameters
(String query, ReactiveDataAccessStrategy.NamedParameterProvider parameterProvider) Deprecated.since 1.2.default String
renderForGeneratedValues
(org.springframework.data.relational.core.sql.SqlIdentifier identifier) Deprecated.Render aSqlIdentifier
in a way suitable for registering it as a generated key with a statement throughStatement#returnGeneratedValues
.org.springframework.data.relational.domain.RowDocument
toRowDocument
(Class<?> type, Readable row, Iterable<? extends ReadableMetadata> metadata) Deprecated.Create a flatRowDocument
from a singleRow or Stored Procedure output
.toSql
(org.springframework.data.relational.core.sql.SqlIdentifier identifier) Deprecated.Render aSqlIdentifier
for SQL usage.
-
Method Details
-
getAllColumns
Deprecated.- Parameters:
entityType
-- Returns:
- all column names for a specific type.
-
getIdentifierColumns
List<org.springframework.data.relational.core.sql.SqlIdentifier> getIdentifierColumns(Class<?> entityType) 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
org.springframework.data.relational.domain.RowDocument toRowDocument(Class<?> type, Readable row, Iterable<? extends 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:
-
SqlIdentifier.toSql(IdentifierProcessing)
-
renderForGeneratedValues
default String renderForGeneratedValues(org.springframework.data.relational.core.sql.SqlIdentifier identifier) 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
-
getDialect
default org.springframework.data.relational.core.dialect.Dialect getDialect()Deprecated.- Returns:
- the
Dialect
used by this strategy. - Since:
- 3.4
-
StatementMapper
,UpdateMapper
andR2dbcConverter
.