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
(BindMarkers markers, Map<org.springframework.data.relational.core.sql.SqlIdentifier, ? extends Object> assignments, org.springframework.data.relational.core.sql.Table table, org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?> entity) getMappedObject
(BindMarkers markers, org.springframework.data.relational.core.query.Update update, org.springframework.data.relational.core.sql.Table table, org.springframework.data.relational.core.mapping.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(BindMarkers markers, org.springframework.data.relational.core.query.Update update, org.springframework.data.relational.core.sql.Table table, @Nullable org.springframework.data.relational.core.mapping.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(BindMarkers markers, Map<org.springframework.data.relational.core.sql.SqlIdentifier, ? extends Object> assignments, org.springframework.data.relational.core.sql.Table table, @Nullable org.springframework.data.relational.core.mapping.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
.
-