Class StatementMapper.UpdateSpec
java.lang.Object
org.springframework.data.r2dbc.core.StatementMapper.UpdateSpec
- Enclosing interface:
- StatementMapper
UPDATE
specification.-
Constructor Summary
ModifierConstructorDescriptionprotected
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 TypeMethodDescriptionstatic StatementMapper.UpdateSpec
Create anINSERT
specification fortable
.static StatementMapper.UpdateSpec
create
(org.springframework.data.relational.core.sql.SqlIdentifier table, org.springframework.data.relational.core.query.Update update) Create anINSERT
specification fortable
.org.springframework.data.relational.core.query.CriteriaDefinition
org.springframework.data.relational.core.sql.SqlIdentifier
getTable()
org.springframework.data.relational.core.query.Update
withCriteria
(org.springframework.data.relational.core.query.CriteriaDefinition criteria) Associate aCriteria
with the update and return a newStatementMapper.UpdateSpec
.
-
Constructor Details
-
UpdateSpec
-
-
Method Details
-
create
public static StatementMapper.UpdateSpec create(String table, org.springframework.data.relational.core.query.Update update) Create anINSERT
specification 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 anINSERT
specification fortable
.- Parameters:
table
-- Returns:
- the
StatementMapper.InsertSpec
. - Since:
- 1.1
-
withCriteria
public StatementMapper.UpdateSpec withCriteria(org.springframework.data.relational.core.query.CriteriaDefinition criteria) Associate aCriteria
with the update and return a newStatementMapper.UpdateSpec
.- Parameters:
criteria
-- Returns:
- the
StatementMapper.UpdateSpec
.
-
getTable
public org.springframework.data.relational.core.sql.SqlIdentifier getTable() -
getUpdate
-
getCriteria
-