java.lang.Object
org.litebridge.orm.api.update.UpdateStepBase
org.litebridge.orm.api.update.SqlUpdateStep
- All Implemented Interfaces:
UpdateQuery,UpdateStart<Row,,SqlUpdateStep, SqlUpdateSetStep, SqlUpdateWhereConditionClause, SqlUpdateWhereConditionClauseTerminal, SqlQueryConditionBuilder<Row>> UpdateStep<Row,SqlUpdateStep, SqlUpdateSetStep, SqlUpdateWhereConditionClause, SqlUpdateWhereConditionClauseTerminal, SqlQueryConditionBuilder<Row>>
public final class SqlUpdateStep
extends UpdateStepBase
implements UpdateStep<Row,SqlUpdateStep,SqlUpdateSetStep,SqlUpdateWhereConditionClause,SqlUpdateWhereConditionClauseTerminal,SqlQueryConditionBuilder<Row>>
SQL-mode step for specifying SET assignments or WHERE conditions in an
UPDATE statement.-
Field Summary
Fields inherited from class org.litebridge.orm.api.update.UpdateStepBase
litebridgeContext -
Constructor Summary
ConstructorsConstructorDescriptionSqlUpdateStep(String tableName, QueryNode node, LitebridgeContext litebridgeContext) Creates a newSqlUpdateStepinstance. -
Method Summary
Modifier and TypeMethodDescriptionStarts a SET clause with a column or field name.set(ExpressionSpec expression) Starts a SET clause with an expression.Starts a WHERE clause with a column or field name.where(ExpressionSpec expression) Starts a WHERE clause with an expression.where(ExistsExpressionSpec existsExpression) Starts a WHERE clause with an EXISTS expression.
-
Constructor Details
-
SqlUpdateStep
Creates a newSqlUpdateStepinstance.- Parameters:
tableName- the table name to updatenode- the current query nodelitebridgeContext- the Litebridge context
-
-
Method Details
-
set
Description copied from interface:UpdateStartStarts a SET clause with a column or field name.- Specified by:
setin interfaceUpdateStart<Row,SqlUpdateStep, SqlUpdateSetStep, SqlUpdateWhereConditionClause, SqlUpdateWhereConditionClauseTerminal, SqlQueryConditionBuilder<Row>> - Parameters:
field- the column or field name- Returns:
- step to specify the value for the column
-
set
Description copied from interface:UpdateStartStarts a SET clause with an expression.- Specified by:
setin interfaceUpdateStart<Row,SqlUpdateStep, SqlUpdateSetStep, SqlUpdateWhereConditionClause, SqlUpdateWhereConditionClauseTerminal, SqlQueryConditionBuilder<Row>> - Parameters:
expression- the expression specification- Returns:
- step to specify the value for the expression
-
where
Description copied from interface:UpdateStepStarts a WHERE clause with a column or field name.- Specified by:
wherein interfaceUpdateStep<Row,SqlUpdateStep, SqlUpdateSetStep, SqlUpdateWhereConditionClause, SqlUpdateWhereConditionClauseTerminal, SqlQueryConditionBuilder<Row>> - Parameters:
column- the column or field name- Returns:
- step to specify the condition operator and value
-
where
Description copied from interface:UpdateStepStarts a WHERE clause with an expression.- Specified by:
wherein interfaceUpdateStep<Row,SqlUpdateStep, SqlUpdateSetStep, SqlUpdateWhereConditionClause, SqlUpdateWhereConditionClauseTerminal, SqlQueryConditionBuilder<Row>> - Parameters:
expression- the expression specification- Returns:
- step to specify the condition operator and value
-
where
Description copied from interface:UpdateStepStarts a WHERE clause with an EXISTS expression.- Specified by:
wherein interfaceUpdateStep<Row,SqlUpdateStep, SqlUpdateSetStep, SqlUpdateWhereConditionClause, SqlUpdateWhereConditionClauseTerminal, SqlQueryConditionBuilder<Row>> - Parameters:
existsExpression- the EXISTS expression specification- Returns:
- step to specify the condition operator and value
-