public class DefaultReactiveDataAccessStrategy extends Object implements ReactiveDataAccessStrategy
ReactiveDataAccessStrategy
implementation.Constructor and Description |
---|
DefaultReactiveDataAccessStrategy(Dialect dialect)
Creates a new
DefaultReactiveDataAccessStrategy given Dialect . |
DefaultReactiveDataAccessStrategy(Dialect dialect,
R2dbcConverter converter)
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getAllColumns(Class<?> entityType) |
BindMarkersFactory |
getBindMarkersFactory()
Returns the configured
BindMarkersFactory to create native parameter placeholder markers. |
R2dbcConverter |
getConverter()
Returns the
R2dbcConverter . |
List<String> |
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<io.r2dbc.spi.Row,io.r2dbc.spi.RowMetadata,T> |
getRowMapper(Class<T> typeToRead) |
StatementMapper |
getStatementMapper()
Returns the
Dialect -specific StatementMapper . |
String |
getTableName(Class<?> type) |
public DefaultReactiveDataAccessStrategy(Dialect dialect)
DefaultReactiveDataAccessStrategy
given Dialect
.dialect
- the Dialect
to use.public DefaultReactiveDataAccessStrategy(Dialect dialect, R2dbcConverter converter)
dialect
- the Dialect
to use.converter
- must not be null.public List<String> getAllColumns(Class<?> entityType)
getAllColumns
in interface ReactiveDataAccessStrategy
public List<String> getIdentifierColumns(Class<?> entityType)
getIdentifierColumns
in interface ReactiveDataAccessStrategy
public OutboundRow getOutboundRow(Object object)
ReactiveDataAccessStrategy
OutboundRow
that maps column names to a SettableValue
value.getOutboundRow
in interface ReactiveDataAccessStrategy
object
- must not be null.public <T> BiFunction<io.r2dbc.spi.Row,io.r2dbc.spi.RowMetadata,T> getRowMapper(Class<T> typeToRead)
getRowMapper
in interface ReactiveDataAccessStrategy
public String getTableName(Class<?> type)
getTableName
in interface ReactiveDataAccessStrategy
entity type
.public StatementMapper getStatementMapper()
ReactiveDataAccessStrategy
Dialect
-specific StatementMapper
.getStatementMapper
in interface ReactiveDataAccessStrategy
Dialect
-specific StatementMapper
.public BindMarkersFactory getBindMarkersFactory()
ReactiveDataAccessStrategy
BindMarkersFactory
to create native parameter placeholder markers.getBindMarkersFactory
in interface ReactiveDataAccessStrategy
BindMarkersFactory
.public R2dbcConverter getConverter()
ReactiveDataAccessStrategy
R2dbcConverter
.getConverter
in interface ReactiveDataAccessStrategy
R2dbcConverter
.public MappingContext<org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>,? extends org.springframework.data.relational.core.mapping.RelationalPersistentProperty> getMappingContext()
Copyright © 2018–2019 Pivotal Software, Inc.. All rights reserved.