Class StatementMapper.UpdateSpec

java.lang.Object
org.springframework.data.r2dbc.core.StatementMapper.UpdateSpec
Enclosing interface:
StatementMapper

public static class StatementMapper.UpdateSpec extends Object
UPDATE specification.
Author:
Mark Paluch, Roman Chigvintsev, Mingyuan Wu, Diego Krupitza, Christoph Strobl
  • Constructor Details

    • UpdateSpec

      protected UpdateSpec(org.springframework.data.relational.core.sql.SqlIdentifier table, @Nullable org.springframework.data.relational.core.query.Update update, @Nullable org.springframework.data.relational.core.query.CriteriaDefinition criteria)
  • Method Details

    • create

      public static StatementMapper.UpdateSpec create(String table, org.springframework.data.relational.core.query.Update update)
      Create an INSERT specification for table.
      Parameters:
      table -
      Returns:
      the StatementMapper.InsertSpec.
    • create

      public static StatementMapper.UpdateSpec create(org.springframework.data.relational.core.sql.SqlIdentifier table, org.springframework.data.relational.core.query.Update update)
      Create an INSERT specification for table.
      Parameters:
      table -
      Returns:
      the StatementMapper.InsertSpec.
      Since:
      1.1
    • withCriteria

      public StatementMapper.UpdateSpec withCriteria(org.springframework.data.relational.core.query.CriteriaDefinition criteria)
      Associate a Criteria with the update and return a new StatementMapper.UpdateSpec.
      Parameters:
      criteria -
      Returns:
      the StatementMapper.UpdateSpec.
    • getTable

      public org.springframework.data.relational.core.sql.SqlIdentifier getTable()
    • getUpdate

      public @Nullable org.springframework.data.relational.core.query.Update getUpdate()
    • getCriteria

      public @Nullable org.springframework.data.relational.core.query.CriteriaDefinition getCriteria()