Module litebridge.orm
Package org.litebridge.orm.api.delete
Class DtoDeleteWhereConditionClauseTerminalImpl<DTO>
java.lang.Object
org.litebridge.orm.api.delete.DtoDeleteWhereConditionClauseTerminalImpl<DTO>
- Type Parameters:
DTO- the type of the DTO
- All Implemented Interfaces:
DeleteTerminal,DeleteWhereConditionClauseTerminal<DTO,,DtoDeleteWhereConditionClause<DTO>, DtoDeleteWhereConditionClauseTerminal<DTO>, DtoQueryConditionBuilder<DTO>> DtoDeleteWhereConditionClauseTerminal<DTO>,ConditionClauseTerminal<DTO,DtoDeleteWhereConditionClause<DTO>, DtoDeleteWhereConditionClauseTerminal<DTO>, DtoQueryConditionBuilder<DTO>>
public final class DtoDeleteWhereConditionClauseTerminalImpl<DTO>
extends Object
implements DtoDeleteWhereConditionClauseTerminal<DTO>, DeleteTerminal
Implementation of
DtoDeleteWhereConditionClauseTerminal for DTO delete operations.-
Constructor Summary
ConstructorsConstructorDescriptionDtoDeleteWhereConditionClauseTerminalImpl(QueryNode node, LitebridgeContext litebridgeContext) Creates a newDtoDeleteWhereConditionClauseTerminalImplinstance. -
Method Summary
Modifier and TypeMethodDescriptionAdds an "AND" condition to the current condition clause using the specified column.and(DtoQueryConditionBuilder<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.Adds an "OR" condition to the current condition clause using the specified column.or(DtoQueryConditionBuilder<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.
-
Constructor Details
-
DtoDeleteWhereConditionClauseTerminalImpl
public DtoDeleteWhereConditionClauseTerminalImpl(QueryNode node, LitebridgeContext litebridgeContext) Creates a newDtoDeleteWhereConditionClauseTerminalImplinstance.- Parameters:
node- the current query nodelitebridgeContext- the Litebridge context
-
-
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,DtoDeleteWhereConditionClause<DTO>, DtoDeleteWhereConditionClauseTerminal<DTO>, DtoQueryConditionBuilder<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,DtoDeleteWhereConditionClause<DTO>, DtoDeleteWhereConditionClauseTerminal<DTO>, DtoQueryConditionBuilder<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,DtoDeleteWhereConditionClause<DTO>, DtoDeleteWhereConditionClauseTerminal<DTO>, DtoQueryConditionBuilder<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,DtoDeleteWhereConditionClause<DTO>, DtoDeleteWhereConditionClauseTerminal<DTO>, DtoQueryConditionBuilder<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,DtoDeleteWhereConditionClause<DTO>, DtoDeleteWhereConditionClauseTerminal<DTO>, DtoQueryConditionBuilder<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,DtoDeleteWhereConditionClause<DTO>, DtoDeleteWhereConditionClauseTerminal<DTO>, DtoQueryConditionBuilder<DTO>> - Parameters:
query- Function that builds the nested condition clause- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-