Class UpdateMapper
java.lang.Object
org.springframework.data.r2dbc.query.QueryMapper
org.springframework.data.r2dbc.query.UpdateMapper
A subclass of
QueryMapper
that maps Update
to update assignments.- Author:
- Mark Paluch
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.r2dbc.query.QueryMapper
QueryMapper.Field, QueryMapper.MetadataBackedField
-
Constructor Summary
ConstructorDescriptionUpdateMapper
(R2dbcDialect dialect, R2dbcConverter converter) Creates a newQueryMapper
with the givenR2dbcConverter
. -
Method Summary
Modifier and TypeMethodDescriptiongetMappedObject
(org.springframework.r2dbc.core.binding.BindMarkers markers, Map<SqlIdentifier, ? extends Object> assignments, Table table, RelationalPersistentEntity<?> entity) getMappedObject
(org.springframework.r2dbc.core.binding.BindMarkers markers, Update update, Table table, RelationalPersistentEntity<?> entity) Methods inherited from class org.springframework.data.r2dbc.query.QueryMapper
convertValue, getBindValue, getMappedObject, getMappedObject, getMappedObject, getMappedObject, getMappedSort, getMappingContext, toSql
-
Constructor Details
-
UpdateMapper
Creates a newQueryMapper
with the givenR2dbcConverter
.- Parameters:
dialect
- must not be null.converter
- must not be null.
-
-
Method Details
-
getMappedObject
public BoundAssignments getMappedObject(org.springframework.r2dbc.core.binding.BindMarkers markers, Update update, Table table, @Nullable RelationalPersistentEntity<?> entity) - Parameters:
markers
- bind markers object, must not be null.update
- update definition to map, must not be null.table
- must not be null.entity
- relatedRelationalPersistentEntity
, can be null.- Returns:
- the mapped
BoundAssignments
. - Since:
- 1.1
-
getMappedObject
public BoundAssignments getMappedObject(org.springframework.r2dbc.core.binding.BindMarkers markers, Map<SqlIdentifier, ? extends Object> assignments, Table table, @Nullable RelationalPersistentEntity<?> entity) - Parameters:
markers
- bind markers object, must not be null.assignments
- update/insert definition to map, must not be null.table
- must not be null.entity
- relatedRelationalPersistentEntity
, can be null.- Returns:
- the mapped
BoundAssignments
.
-