Interface ConditionClauseTerminal<DTO,CC extends ConditionClause<DTO,CC,SELF>,SELF extends ConditionClauseTerminal<DTO,CC,SELF>>
- Type Parameters:
DTO- the data transfer object (DTO) type that represents the result of the queryCC- the type of the parent condition clause interface to allow additional chainingSELF- the type of the implementing subclass to enable type-safe fluent APIs
- All Known Subinterfaces:
DeleteWhereConditionClauseTerminal<DTO,,WCC, SELF> DtoDeleteWhereConditionClauseTerminal<DTO>,DtoUpdateWhereConditionClauseTerminal<DTO>,HavingConditionClauseTerminal<DTO,,HCC, SELF, OBC, OBCC> JoinConditionClauseTerminal<DTO,,JCC, SELF> SqlDeleteWhereConditionClauseTerminal,SqlUpdateWhereConditionClauseTerminal,UpdateWhereConditionClauseTerminal<DTO,,WCC, SELF> WhereConditionClauseTerminal<DTO,WCC, SELF, GBCT, HCC, HCCT, OBC, OBCC>
- All Known Implementing Classes:
AbstractCbConditionClauseTerminal,org.litebridge.orm.api.select.impl.AbstractJoinConditionClauseTerminal,CbDtoConditionClauseTerminal,DtoDeleteWhereConditionClauseTerminalImpl,DtoHavingConditionClauseTerminal,DtoJoinConditionClauseTerminal,DtoUpdateWhereConditionClauseTerminalImpl,DtoWhereConditionClauseTerminal,SqlDeleteWhereConditionClauseTerminalImpl,SqlHavingConditionClauseTerminal,SqlJoinConditionClauseTerminal,SqlUpdateWhereConditionClauseTerminalImpl,SqlWhereConditionClauseTerminal
This interface is designed to provide methods that mark the end of a condition clause and allow further chaining of conditions.
The use of generics ensures type safety and supports fluent query construction by transitioning between different stages of the query.
-
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.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.
-
Method Details
-
and
Adds 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.
- Parameters:
column- the name of the column to be used in the "AND" condition- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
and
Adds 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.
- Parameters:
expression- the expression to be used in the "AND" condition- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
and
Adds an "AND" condition with a nested condition clause.The nested condition clause is grouped with parentheses to ensure proper SQL syntax.
- Parameters:
query- Function that builds the nested condition clause- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
or
Adds 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.
- Parameters:
column- the name of the column to be used in the "AND" condition- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
or
Adds 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.
- Parameters:
expression- the expression to be used in the "AND" condition- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
or
Adds an "OR" condition with specified nested condition clause.The nested condition clause is grouped with parentheses to ensure proper SQL syntax.
- Parameters:
query- Function that builds the nested condition clause- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-