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 interfaceDeprecated.Interface to retrieve parameters for named parameter processing. -
Method Summary
Modifier and TypeMethodDescriptiongetAllColumns(Class<?> entityType) Deprecated.getBindValue(Parameter value) Deprecated.Return a potentially convertedParameterfor strategies that support type conversion.Deprecated.Returns theR2dbcConverter.default DialectDeprecated.getIdentifierColumns(Class<?> entityType) Deprecated.getOutboundRow(Object object) Deprecated.Returns aOutboundRowthat maps column names to aParametervalue.<T> BiFunction<Row, 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 StringrenderForGeneratedValues(SqlIdentifier identifier) Deprecated.Render aSqlIdentifierin a way suitable for registering it as a generated key with a statement throughStatement#returnGeneratedValues.toRowDocument(Class<?> type, Readable row, Iterable<? extends ReadableMetadata> metadata) Deprecated.Create a flatRowDocumentfrom a singleRow or Stored Procedure output.toSql(SqlIdentifier identifier) Deprecated.Render aSqlIdentifierfor 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 aOutboundRowthat maps column names to aParametervalue.- Parameters:
object- must not be null.- Returns:
-
getBindValue
-
getRowMapper
Deprecated.- Type Parameters:
T-- Parameters:
typeToRead-- Returns:
-
toRowDocument
RowDocument toRowDocument(Class<?> type, Readable row, Iterable<? extends ReadableMetadata> metadata) Deprecated.Create a flatRowDocumentfrom 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
RowDocumentcontaining 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.DatabaseClientencapsulates named parameter handling entirely.Expand named parameters and return aPreparedOperationwrapping the given bindings.- Parameters:
query- the query to expand.parameterProvider- indexed parameter bindings.- Returns:
- the
PreparedOperationencapsulating 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
-
toSql
Deprecated.Render aSqlIdentifierfor 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 aSqlIdentifierin 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
-
StatementMapper,UpdateMapperandR2dbcConverter.