Module litebridge.orm
Class DtoUpdateWhereConditionClauseTerminalImpl<DTO>
java.lang.Object
org.litebridge.orm.api.dto.update.DtoUpdateWhereConditionClauseTerminalImpl<DTO>
- Type Parameters:
DTO- the DTO type
- All Implemented Interfaces:
DtoUpdateWhereConditionClauseTerminal<DTO>,ConditionClauseTerminal<DTO,,DtoUpdateWhereConditionClause<DTO>, DtoUpdateWhereConditionClauseTerminal<DTO>> UpdateQuery,UpdateTerminal,UpdateWhereConditionClauseTerminal<DTO,DtoUpdateWhereConditionClause<DTO>, DtoUpdateWhereConditionClauseTerminal<DTO>>
public final class DtoUpdateWhereConditionClauseTerminalImpl<DTO>
extends Object
implements DtoUpdateWhereConditionClauseTerminal<DTO>, UpdateTerminal
Implementation of the terminal interface for DTO update where condition clauses.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DtoUpdateWhereConditionClauseTerminalImpl. -
Method Summary
Modifier and TypeMethodDescriptionAdds an "AND" condition to the current condition clause using the specified column.and(QueryConditionBuilder<DTO> query) Adds an "AND" condition with a nested condition clause.and(ExpressionSpec expression) Adds an "AND" condition to the current condition clause using the specified expression.execute()Executes the update.Adds an "OR" condition to the current condition clause using the specified column.or(QueryConditionBuilder<DTO> query) Adds an "OR" condition with specified nested condition clause.or(ExpressionSpec expression) Adds an "OR" condition to the current condition clause using the specified expression.Returns the update specification.
-
Constructor Details
-
DtoUpdateWhereConditionClauseTerminalImpl
Creates a new DtoUpdateWhereConditionClauseTerminalImpl.- Parameters:
delegate- the DTO updater to delegate to
-
-
Method Details
-
and
Description copied from interface:ConditionClauseTerminalAdds an "AND" condition to the current condition clause using the specified column.This method is used to chain additional conditions in a SQL query in a fluent manner.
- Specified by:
andin interfaceConditionClauseTerminal<DTO,DtoUpdateWhereConditionClause<DTO>, DtoUpdateWhereConditionClauseTerminal<DTO>> - Parameters:
field- the name of the column to be used in the "AND" condition- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
and
Description copied from interface:ConditionClauseTerminalAdds an "AND" condition to the current condition clause using the specified expression.This method is used to chain additional conditions in a SQL query in a type-safe and fluent manner.
- Specified by:
andin interfaceConditionClauseTerminal<DTO,DtoUpdateWhereConditionClause<DTO>, DtoUpdateWhereConditionClauseTerminal<DTO>> - Parameters:
expression- the expression to be used in the "AND" condition- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
and
Description copied from interface:ConditionClauseTerminalAdds an "AND" condition with a nested condition clause.The nested condition clause is grouped with parentheses to ensure proper SQL syntax.
- Specified by:
andin interfaceConditionClauseTerminal<DTO,DtoUpdateWhereConditionClause<DTO>, DtoUpdateWhereConditionClauseTerminal<DTO>> - Parameters:
query- Function that builds the nested condition clause- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
or
Description copied from interface:ConditionClauseTerminalAdds an "OR" condition to the current condition clause using the specified column.This method is used to chain additional conditions in a SQL query in a fluent manner.
- Specified by:
orin interfaceConditionClauseTerminal<DTO,DtoUpdateWhereConditionClause<DTO>, DtoUpdateWhereConditionClauseTerminal<DTO>> - Parameters:
field- the name of the column to be used in the "AND" condition- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
or
Description copied from interface:ConditionClauseTerminalAdds an "OR" condition to the current condition clause using the specified expression.This method is used to chain additional conditions in a SQL query in a type-safe and fluent manner.
- Specified by:
orin interfaceConditionClauseTerminal<DTO,DtoUpdateWhereConditionClause<DTO>, DtoUpdateWhereConditionClauseTerminal<DTO>> - Parameters:
expression- the expression to be used in the "AND" condition- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
or
Description copied from interface:ConditionClauseTerminalAdds an "OR" condition with specified nested condition clause.The nested condition clause is grouped with parentheses to ensure proper SQL syntax.
- Specified by:
orin interfaceConditionClauseTerminal<DTO,DtoUpdateWhereConditionClause<DTO>, DtoUpdateWhereConditionClauseTerminal<DTO>> - Parameters:
query- Function that builds the nested condition clause- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
updateSpec
Description copied from interface:UpdateTerminalReturns the update specification.- Specified by:
updateSpecin interfaceUpdateTerminal- Returns:
- the update specification.
-
execute
Description copied from interface:UpdateTerminalExecutes the update.- Specified by:
executein interfaceUpdateTerminal- Returns:
- the update result.
-