Class StatementMapper.UpdateSpec
java.lang.Object
org.springframework.data.r2dbc.core.StatementMapper.UpdateSpec
- Enclosing interface:
StatementMapper
UPDATE specification.- Author:
- Mark Paluch, Roman Chigvintsev, Mingyuan Wu, Diego Krupitza, Christoph Strobl
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUpdateSpec(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 Summary
Modifier and TypeMethodDescriptionstatic StatementMapper.UpdateSpecCreate anINSERTspecification fortable.static StatementMapper.UpdateSpeccreate(org.springframework.data.relational.core.sql.SqlIdentifier table, org.springframework.data.relational.core.query.Update update) Create anINSERTspecification fortable.@Nullable org.springframework.data.relational.core.query.CriteriaDefinitionorg.springframework.data.relational.core.sql.SqlIdentifiergetTable()@Nullable org.springframework.data.relational.core.query.UpdatewithCriteria(org.springframework.data.relational.core.query.CriteriaDefinition criteria) Associate aCriteriawith the update and return a newStatementMapper.UpdateSpec.
-
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 anINSERTspecification fortable.- 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 anINSERTspecification fortable.- Parameters:
table-- Returns:
- the
StatementMapper.InsertSpec. - Since:
- 1.1
-
withCriteria
public StatementMapper.UpdateSpec withCriteria(org.springframework.data.relational.core.query.CriteriaDefinition criteria) Associate aCriteriawith the update and return a newStatementMapper.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()
-