Class Update
java.lang.Object
org.springframework.data.relational.core.query.Update
Class to easily construct SQL update assignments.
- Since:
- 2.0
- Author:
- Mark Paluch, Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionstatic Update
from
(Map<SqlIdentifier, Object> assignments) Static factory method to create anUpdate
fromassignments
.Returns all assignments.Update a column by assigning a value.set
(SqlIdentifier column, Object value) Update a column by assigning a value.toString()
static Update
Static factory method to create anUpdate
using the provided column.
-
Method Details
-
from
Static factory method to create anUpdate
fromassignments
.- Parameters:
assignments
- must not be null.- Returns:
-
update
Static factory method to create anUpdate
using the provided column.- Parameters:
column
- must not be null.value
- can be null.- Returns:
-
set
Update a column by assigning a value.- Parameters:
column
- must not be null.value
- can be null.- Returns:
-
set
Update a column by assigning a value.- Parameters:
column
- must not be null.value
- can be null.- Returns:
- Since:
- 1.1
-
getAssignments
Returns all assignments.- Returns:
-
toString
-