java.lang.Object
org.litebridge.orm.api.update.UpdateStepBase
org.litebridge.orm.api.update.DtoUpdateStart<DTO>
- Type Parameters:
DTO- the mapped DTO/entity type
- All Implemented Interfaces:
UpdateStart<DTO,DtoUpdateStep<DTO>, DtoUpdateSetStep<DTO>, DtoUpdateWhereConditionClause<DTO>, DtoUpdateWhereConditionClauseTerminal<DTO>, DtoQueryConditionBuilder<DTO>>
public final class DtoUpdateStart<DTO>
extends UpdateStepBase
implements UpdateStart<DTO,DtoUpdateStep<DTO>,DtoUpdateSetStep<DTO>,DtoUpdateWhereConditionClause<DTO>,DtoUpdateWhereConditionClauseTerminal<DTO>,DtoQueryConditionBuilder<DTO>>
DTO-mode entry step for constructing an
UPDATE statement.-
Field Summary
Fields inherited from class org.litebridge.orm.api.update.UpdateStepBase
litebridgeContext -
Constructor Summary
ConstructorsConstructorDescriptionDtoUpdateStart(Class<DTO> dtoClass, LitebridgeContext litebridgeContext) Creates a newDtoUpdateStartinstance. -
Method Summary
Modifier and TypeMethodDescriptionStarts a SET clause with a column or field name.set(ExpressionSpec expression) Starts a SET clause with an expression.
-
Constructor Details
-
DtoUpdateStart
Creates a newDtoUpdateStartinstance.- Parameters:
dtoClass- the mapped DTO/entity class to updatelitebridgeContext- 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
-