public interface ReactiveDataAccessStrategy
DatabaseClient
and repository support. SQL creation is limited to single-table operations and single-column
primary keys.PreparedOperation
Modifier and Type | Interface and Description |
---|---|
static interface |
ReactiveDataAccessStrategy.NamedParameterProvider
Interface to retrieve parameters for named parameter processing.
|
Modifier and Type | Method and Description |
---|---|
List<org.springframework.data.relational.core.sql.SqlIdentifier> |
getAllColumns(Class<?> entityType) |
SettableValue |
getBindValue(SettableValue value)
Return a potentially converted
SettableValue for strategies that support type conversion. |
R2dbcConverter |
getConverter()
Returns the
R2dbcConverter . |
List<org.springframework.data.relational.core.sql.SqlIdentifier> |
getIdentifierColumns(Class<?> entityType) |
OutboundRow |
getOutboundRow(Object object)
Returns a
OutboundRow that maps column names to a SettableValue value. |
<T> BiFunction<Row,RowMetadata,T> |
getRowMapper(Class<T> typeToRead)
|
StatementMapper |
getStatementMapper()
Returns the
R2dbcDialect -specific StatementMapper . |
org.springframework.data.relational.core.sql.SqlIdentifier |
getTableName(Class<?> type) |
PreparedOperation<?> |
processNamedParameters(String query,
ReactiveDataAccessStrategy.NamedParameterProvider parameterProvider)
Expand named parameters and return a
PreparedOperation wrapping the given bindings. |
String |
toSql(org.springframework.data.relational.core.sql.SqlIdentifier identifier)
Render a
SqlIdentifier for SQL usage. |
List<org.springframework.data.relational.core.sql.SqlIdentifier> getAllColumns(Class<?> entityType)
entityType
- List<org.springframework.data.relational.core.sql.SqlIdentifier> getIdentifierColumns(Class<?> entityType)
entityType
- OutboundRow getOutboundRow(Object object)
OutboundRow
that maps column names to a SettableValue
value.object
- must not be null.SettableValue getBindValue(SettableValue value)
SettableValue
for strategies that support type conversion.value
- must not be null.<T> BiFunction<Row,RowMetadata,T> getRowMapper(Class<T> typeToRead)
T
- typeToRead
- org.springframework.data.relational.core.sql.SqlIdentifier getTableName(Class<?> type)
type
- entity type
.PreparedOperation<?> processNamedParameters(String query, ReactiveDataAccessStrategy.NamedParameterProvider parameterProvider)
PreparedOperation
wrapping the given bindings.query
- the query to expand.parameterProvider
- indexed parameter bindings.PreparedOperation
encapsulating expanded SQL and namedBindings.InvalidDataAccessApiUsageException
- if a named parameter value cannot be resolved.StatementMapper getStatementMapper()
R2dbcDialect
-specific StatementMapper
.R2dbcDialect
-specific StatementMapper
.R2dbcConverter getConverter()
R2dbcConverter
.R2dbcConverter
.String toSql(org.springframework.data.relational.core.sql.SqlIdentifier identifier)
SqlIdentifier
for SQL usage.identifier
- the identifier to be rendered.SqlIdentifier.toSql(IdentifierProcessing)
Copyright © 2018–2020 Pivotal Software, Inc.. All rights reserved.