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
ConstructorsConstructorDescriptionUpdateMapper(R2dbcDialect dialect, R2dbcConverter converter) Creates a newQueryMapperwith the givenR2dbcConverter. -
Method Summary
Modifier and TypeMethodDescriptiongetMappedObject(BindMarkers markers, Map<SqlIdentifier, ? extends Object> assignments, Table table, RelationalPersistentEntity<?> entity) getMappedObject(BindMarkers markers, Update update, Table table, RelationalPersistentEntity<?> entity) Methods inherited from class org.springframework.data.r2dbc.query.QueryMapper
convertValue, getBindValue, getMappedObject, getMappedObject, getMappedSort, getMappingContext, toSql
-
Constructor Details
-
UpdateMapper
Creates a newQueryMapperwith the givenR2dbcConverter.- Parameters:
dialect- must not be null.converter- must not be null.
-
-
Method Details
-
getMappedObject
public BoundAssignments getMappedObject(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(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.
-