java.lang.Object
org.litebridge.orm.api.update.UpdateStepBase
org.litebridge.orm.api.update.SqlUpdateStart
- All Implemented Interfaces:
UpdateStart<Row,SqlUpdateStep, SqlUpdateSetStep, SqlUpdateWhereConditionClause, SqlUpdateWhereConditionClauseTerminal, SqlQueryConditionBuilder<Row>>
public final class SqlUpdateStart
extends UpdateStepBase
implements UpdateStart<Row,SqlUpdateStep,SqlUpdateSetStep,SqlUpdateWhereConditionClause,SqlUpdateWhereConditionClauseTerminal,SqlQueryConditionBuilder<Row>>
SQL-mode entry step for constructing an
UPDATE statement.-
Field Summary
Fields inherited from class org.litebridge.orm.api.update.UpdateStepBase
litebridgeContext -
Constructor Summary
ConstructorsConstructorDescriptionSqlUpdateStart(String table, LitebridgeContext litebridgeContext) Creates a newSqlUpdateStartinstance. -
Method Summary
Modifier and TypeMethodDescriptionSets a field to be updated in the SQLUPDATEstatement.set(ExpressionSpec expression) Sets a column to be updated in the SQLUPDATEstatement via an expression.
-
Constructor Details
-
SqlUpdateStart
Creates a newSqlUpdateStartinstance.- Parameters:
table- the table to updatelitebridgeContext- the Litebridge context
-
-
Method Details
-
set
Sets a field to be updated in the SQLUPDATEstatement.- Specified by:
setin interfaceUpdateStart<Row,SqlUpdateStep, SqlUpdateSetStep, SqlUpdateWhereConditionClause, SqlUpdateWhereConditionClauseTerminal, SqlQueryConditionBuilder<Row>> - Parameters:
field- the name of the DTO/entity field to be updated- Returns:
- the next step in the update operation: setting the value of the target field
-
set
Sets a column to be updated in the SQLUPDATEstatement via an expression.- Specified by:
setin interfaceUpdateStart<Row,SqlUpdateStep, SqlUpdateSetStep, SqlUpdateWhereConditionClause, SqlUpdateWhereConditionClauseTerminal, SqlQueryConditionBuilder<Row>> - Parameters:
expression- the expression specifying the target column- Returns:
- the next step in the update operation: setting the value of the target column
-