Module litebridge.orm
Package org.litebridgedb.orm.api.select
Interface ConditionClause<DTO,SELF extends ConditionClause<DTO,SELF,CCT>,CCT extends ConditionClauseTerminal<DTO,SELF,CCT>>
- Type Parameters:
DTO- the type of the data transfer object associated with the querySELF- the type of the implementing subclass to allow type-safe chainingCCT- the type of the terminal condition clause returned for further chaining
- All Known Subinterfaces:
DeleteWhereConditionClause<DTO,,SELF, WCCT> HavingConditionClause<DTO,,SELF, HCCT, OBC, OBCC> JoinConditionClause<DTO,,SELF, JCCT> UpdateWhereConditionClause<DTO,,SELF, WCCT> WhereConditionClause<DTO,SELF, WCCT, GBCT, HCC, HCCT, OBC, OBCC>
- All Known Implementing Classes:
org.litebridgedb.orm.api.select.impl.ConditionClauseImpl,DtoDeleteWhereConditionClause,DtoHavingConditionClause,DtoJoinConditionClause,DtoUpdateWhereConditionClause,DtoWhereConditionClause,SqlDeleteWhereConditionClause,SqlHavingConditionClause,SqlJoinConditionClause,SqlUpdateWhereConditionClause,SqlWhereConditionClause
public interface ConditionClause<DTO,SELF extends ConditionClause<DTO,SELF,CCT>,CCT extends ConditionClauseTerminal<DTO,SELF,CCT>>
Generic condition clause for building conditional expressions in a fluent and type-safe manner.
This interface defines a set of methods for specifying various relational conditions such as equality,
inequality, comparison, and null checks. These methods return instances of ConditionClauseTerminal
to allow further chaining and construction of compound conditions.
-
Method Summary
Modifier and TypeMethodDescriptionEqualsGreater thanGreater than or equalsInclusion in a set.in(Collection<?> values) Inclusion in a set.in(Function<SelectEngine, SelectTerminal<?>> subselect) Inclusion in the result set from the specified sub-select.Not null comparison.isNull()Null comparison.Creates a condition terminal for less-than comparison with the specified value.Less than or equalsNot equalsExclusion from a set.notIn(Collection<?> values) Exclusion from a set.notIn(Function<SelectEngine, SelectTerminal<?>> subselect) Exclusion from the result set from the specified sub-select.
-
Method Details
-
eq
Equals- Parameters:
value- The operand for the condition.- Returns:
- A
ConditionClauseTerminalinstance for further chaining.
-
neq
Not equals- Parameters:
value- The operand for the condition.- Returns:
- A
ConditionClauseTerminalinstance for further chaining.
-
lt
Creates a condition terminal for less-than comparison with the specified value.- Parameters:
value- The operand for the condition.- Returns:
- A
ConditionClauseTerminalinstance for further chaining.
-
lte
Less than or equals- Parameters:
value- The operand for the condition.- Returns:
- A
ConditionClauseTerminalinstance for further chaining.
-
gt
Greater than- Parameters:
value- The operand for the condition.- Returns:
- A
ConditionClauseTerminalinstance for further chaining.
-
gte
Greater than or equals- Parameters:
value- The operand for the condition.- Returns:
- A
ConditionClauseTerminalinstance for further chaining.
-
like
-
isNull
CCT isNull()Null comparison.Equivalent to
eq(null).- Returns:
- A
ConditionClauseTerminalinstance for further chaining.
-
isNotNull
CCT isNotNull()Not null comparison.Equivalent to
neq(null).- Returns:
- A
ConditionClauseTerminalinstance for further chaining.
-
in
Inclusion in a set.- Parameters:
value- First value that is part of the setotherValues- Other values that are part of the set- Returns:
- A
ConditionClauseTerminalinstance for further chaining.
-
in
Inclusion in a set.- Parameters:
values- Collection of values that are part of the set- Returns:
- A
ConditionClauseTerminalinstance for further chaining.
-
in
Inclusion in the result set from the specified sub-select.- Parameters:
subselect- Function that builds a sub-select query- Returns:
- A
ConditionClauseTerminalinstance for further chaining.
-
notIn
Exclusion from a set.- Parameters:
value- First value that is part of the setotherValues- Other values that are part of the set- Returns:
- A
ConditionClauseTerminalinstance for further chaining.
-
notIn
Exclusion from a set.- Parameters:
values- Collection of values that are part of the set- Returns:
- A
ConditionClauseTerminalinstance for further chaining.
-
notIn
Exclusion from the result set from the specified sub-select.- Parameters:
subselect- Function that builds a sub-select query- Returns:
- A
ConditionClauseTerminalinstance for further chaining.
-