Interface ConditionClauseTerminal<DTO,CC extends ConditionClause<DTO,CC,SELF,QCB>,SELF extends ConditionClauseTerminal<DTO,CC,SELF,QCB>,QCB extends QueryConditionBuilder<DTO,?,?,?,QCB>>
- 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, QCB> DtoConditionClauseTerminal<DTO,,CC, SELF, QCB> DtoDeleteWhereConditionClauseTerminal<DTO>,DtoUpdateWhereConditionClauseTerminal<DTO>,HavingConditionClauseTerminal<DTO,,HCC, SELF, QCB, OBC, OBCC> JoinConditionClauseTerminal<DTO,,JCC, SELF, QCB> SqlDeleteWhereConditionClauseTerminal,SqlUpdateWhereConditionClauseTerminal,UpdateWhereConditionClauseTerminal<DTO,,WCC, SELF, QCB> WhereConditionClauseTerminal<DTO,WCC, SELF, GBCT, HCC, HCCT, QCB, OBC, OBCC>
- All Known Implementing Classes:
AbstractCbConditionClauseTerminal,AbstractJoinConditionClauseTerminal,CbDtoConditionClauseTerminal,CbSqlConditionClauseTerminal,DtoDeleteWhereConditionClauseTerminalImpl,DtoHavingConditionClauseTerminal,DtoJoinConditionClauseTerminal,DtoMergeOnConditionClauseTerminal,DtoUpdateWhereConditionClauseTerminalImpl,DtoWhereConditionClauseTerminal,MergeOnConditionClauseTerminal,SqlDeleteWhereConditionClauseTerminalImpl,SqlHavingConditionClauseTerminal,SqlJoinConditionClauseTerminal,SqlMergeOnConditionClauseTerminal,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(ExpressionSpec expression) Adds an "AND" condition to the current condition clause using the specified expression.Adds an "AND" condition with a nested condition clause.Adds an "OR" condition to the current condition clause using the specified column.or(ExpressionSpec expression) Adds an "OR" condition to the current condition clause using the specified expression.Adds an "OR" condition with specified nested condition clause.
-
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
-