public class DefaultReactiveDataAccessStrategy extends Object implements ReactiveDataAccessStrategy
ReactiveDataAccessStrategy implementation.ReactiveDataAccessStrategy.NamedParameterProvider| Constructor and Description |
|---|
DefaultReactiveDataAccessStrategy(R2dbcDialect dialect)
|
DefaultReactiveDataAccessStrategy(R2dbcDialect dialect,
Collection<?> converters)
|
DefaultReactiveDataAccessStrategy(R2dbcDialect dialect,
R2dbcConverter converter)
|
DefaultReactiveDataAccessStrategy(R2dbcDialect dialect,
R2dbcConverter converter,
NamedParameterExpander expander)
|
| Modifier and Type | Method and Description |
|---|---|
static R2dbcConverter |
createConverter(R2dbcDialect dialect,
Collection<?> converters)
|
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) |
MappingContext<org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>,? extends org.springframework.data.relational.core.mapping.RelationalPersistentProperty> |
getMappingContext() |
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. |
public DefaultReactiveDataAccessStrategy(R2dbcDialect dialect)
dialect - the R2dbcDialect to use.public DefaultReactiveDataAccessStrategy(R2dbcDialect dialect, Collection<?> converters)
dialect - the R2dbcDialect to use.converters - custom converters to register, must not be null.R2dbcCustomConversions,
Converterpublic DefaultReactiveDataAccessStrategy(R2dbcDialect dialect, R2dbcConverter converter)
dialect - the R2dbcDialect to use.converter - must not be null.public DefaultReactiveDataAccessStrategy(R2dbcDialect dialect, R2dbcConverter converter, NamedParameterExpander expander)
dialect - the R2dbcDialect to use.converter - must not be null.expander - must not be null.public static R2dbcConverter createConverter(R2dbcDialect dialect, Collection<?> converters)
dialect - must not be null.converters - must not be null.R2dbcConverter.public List<org.springframework.data.relational.core.sql.SqlIdentifier> getAllColumns(Class<?> entityType)
getAllColumns in interface ReactiveDataAccessStrategypublic List<org.springframework.data.relational.core.sql.SqlIdentifier> getIdentifierColumns(Class<?> entityType)
getIdentifierColumns in interface ReactiveDataAccessStrategypublic OutboundRow getOutboundRow(Object object)
ReactiveDataAccessStrategyOutboundRow that maps column names to a SettableValue value.getOutboundRow in interface ReactiveDataAccessStrategyobject - must not be null.public SettableValue getBindValue(SettableValue value)
ReactiveDataAccessStrategySettableValue for strategies that support type conversion.getBindValue in interface ReactiveDataAccessStrategyvalue - must not be null.public <T> BiFunction<Row,RowMetadata,T> getRowMapper(Class<T> typeToRead)
ReactiveDataAccessStrategygetRowMapper in interface ReactiveDataAccessStrategypublic PreparedOperation<?> processNamedParameters(String query, ReactiveDataAccessStrategy.NamedParameterProvider parameterProvider)
ReactiveDataAccessStrategyPreparedOperation wrapping the given bindings.processNamedParameters in interface ReactiveDataAccessStrategyquery - the query to expand.parameterProvider - indexed parameter bindings.PreparedOperation encapsulating expanded SQL and namedBindings.public org.springframework.data.relational.core.sql.SqlIdentifier getTableName(Class<?> type)
getTableName in interface ReactiveDataAccessStrategyentity type.public String toSql(org.springframework.data.relational.core.sql.SqlIdentifier identifier)
ReactiveDataAccessStrategySqlIdentifier for SQL usage.toSql in interface ReactiveDataAccessStrategyidentifier - the identifier to be rendered.SqlIdentifier.toSql(IdentifierProcessing)public StatementMapper getStatementMapper()
ReactiveDataAccessStrategyR2dbcDialect-specific StatementMapper.getStatementMapper in interface ReactiveDataAccessStrategyR2dbcDialect-specific StatementMapper.public R2dbcConverter getConverter()
ReactiveDataAccessStrategyR2dbcConverter.getConverter in interface ReactiveDataAccessStrategyR2dbcConverter.public MappingContext<org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>,? extends org.springframework.data.relational.core.mapping.RelationalPersistentProperty> getMappingContext()
Copyright © 2018–2020 Pivotal Software, Inc.. All rights reserved.