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.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    UpdateSpec(org.springframework.data.relational.core.sql.SqlIdentifier table, org.springframework.data.relational.core.query.Update update, org.springframework.data.relational.core.query.CriteriaDefinition criteria)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(String table, org.springframework.data.relational.core.query.Update update)
    Create an INSERT specification for table.
    create(org.springframework.data.relational.core.sql.SqlIdentifier table, org.springframework.data.relational.core.query.Update update)
    Create an INSERT specification for table.
    org.springframework.data.relational.core.query.CriteriaDefinition
     
    org.springframework.data.relational.core.sql.SqlIdentifier
     
    org.springframework.data.relational.core.query.Update
     
    withCriteria(org.springframework.data.relational.core.query.CriteriaDefinition criteria)
    Associate a Criteria with the update and return a new StatementMapper.UpdateSpec.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

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

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