Interface ReactiveDataAccessStrategy

All Known Implementing Classes:
DefaultReactiveDataAccessStrategy

@Deprecated public interface ReactiveDataAccessStrategy
Deprecated.
since 1.2 in favor of using direct usage of StatementMapper, UpdateMapper and R2dbcConverter.
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:
  • Method Details

    • getAllColumns

      List<org.springframework.data.relational.core.sql.SqlIdentifier> getAllColumns(Class<?> entityType)
      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

      OutboundRow getOutboundRow(Object object)
      Deprecated.
      Returns a OutboundRow that maps column names to a Parameter value.
      Parameters:
      object - must not be null.
      Returns:
    • getBindValue

      Parameter getBindValue(Parameter value)
      Deprecated.
      Return a potentially converted Parameter for strategies that support type conversion.
      Parameters:
      value - must not be null.
      Returns:
      Since:
      1.2
    • getRowMapper

      <T> BiFunction<Row,RowMetadata,T> getRowMapper(Class<T> typeToRead)
      Deprecated.
      Returns a row mapping function to map rows to T.
      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 flat RowDocument from a single Row 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

      org.springframework.data.relational.core.sql.SqlIdentifier getTableName(Class<?> type)
      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 a PreparedOperation 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 the R2dbcDialect-specific StatementMapper.
      Returns:
      the R2dbcDialect-specific StatementMapper.
    • getConverter

      R2dbcConverter getConverter()
      Deprecated.
      Returns the R2dbcConverter.
      Returns:
      the R2dbcConverter.
    • toSql

      String toSql(org.springframework.data.relational.core.sql.SqlIdentifier identifier)
      Deprecated.
      Render a SqlIdentifier 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 a SqlIdentifier in a way suitable for registering it as a generated key with a statement through Statement#returnGeneratedValues.
      Parameters:
      identifier - to render. Must not be null.
      Returns:
      rendered identifier. Guaranteed to be not null.
      Since:
      1.3.2