Class UpdateMapper

java.lang.Object
org.springframework.data.r2dbc.query.QueryMapper
org.springframework.data.r2dbc.query.UpdateMapper

public class UpdateMapper extends QueryMapper
A subclass of QueryMapper that maps Update to update assignments.
Author:
Mark Paluch
  • Constructor Details

  • 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)
      Map a Update object to BoundAssignments and consider value/NULL Bindings.
      Parameters:
      markers - bind markers object, must not be null.
      update - update definition to map, must not be null.
      table - must not be null.
      entity - related RelationalPersistentEntity, 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)
      Map a assignments object to BoundAssignments and consider value/NULL Bindings.
      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 - related RelationalPersistentEntity, can be null.
      Returns:
      the mapped BoundAssignments.