java.lang.Object
org.litebridge.orm.api.update.UpdateStepBase
org.litebridge.orm.api.update.DtoUpdateStep<DTO>
- Type Parameters:
DTO- the mapped DTO/entity type
- All Implemented Interfaces:
UpdateQuery,UpdateStart<DTO,,DtoUpdateStep<DTO>, DtoUpdateSetStep<DTO>, DtoUpdateWhereConditionClause<DTO>, DtoUpdateWhereConditionClauseTerminal<DTO>, DtoQueryConditionBuilder<DTO>> UpdateStep<DTO,DtoUpdateStep<DTO>, DtoUpdateSetStep<DTO>, DtoUpdateWhereConditionClause<DTO>, DtoUpdateWhereConditionClauseTerminal<DTO>, DtoQueryConditionBuilder<DTO>>
public final class DtoUpdateStep<DTO>
extends UpdateStepBase
implements UpdateStep<DTO,DtoUpdateStep<DTO>,DtoUpdateSetStep<DTO>,DtoUpdateWhereConditionClause<DTO>,DtoUpdateWhereConditionClauseTerminal<DTO>,DtoQueryConditionBuilder<DTO>>
DTO-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
ConstructorsConstructorDescriptionDtoUpdateStep(QueryNode node, LitebridgeContext litebridgeContext) Creates a newDtoUpdateStepinstance. -
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
-
DtoUpdateStep
Creates a newDtoUpdateStepinstance.- Parameters:
node- 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<DTO,DtoUpdateStep<DTO>, DtoUpdateSetStep<DTO>, DtoUpdateWhereConditionClause<DTO>, DtoUpdateWhereConditionClauseTerminal<DTO>, DtoQueryConditionBuilder<DTO>> - 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<DTO,DtoUpdateStep<DTO>, DtoUpdateSetStep<DTO>, DtoUpdateWhereConditionClause<DTO>, DtoUpdateWhereConditionClauseTerminal<DTO>, DtoQueryConditionBuilder<DTO>> - 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<DTO,DtoUpdateStep<DTO>, DtoUpdateSetStep<DTO>, DtoUpdateWhereConditionClause<DTO>, DtoUpdateWhereConditionClauseTerminal<DTO>, DtoQueryConditionBuilder<DTO>> - Parameters:
field- 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<DTO,DtoUpdateStep<DTO>, DtoUpdateSetStep<DTO>, DtoUpdateWhereConditionClause<DTO>, DtoUpdateWhereConditionClauseTerminal<DTO>, DtoQueryConditionBuilder<DTO>> - 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<DTO,DtoUpdateStep<DTO>, DtoUpdateSetStep<DTO>, DtoUpdateWhereConditionClause<DTO>, DtoUpdateWhereConditionClauseTerminal<DTO>, DtoQueryConditionBuilder<DTO>> - Parameters:
existsExpression- the EXISTS expression specification- Returns:
- step to specify the condition operator and value
-