Package com.blazebit.persistence
Interface JoinOnBuilder<T>
- Type Parameters:
T
- The result type
- All Superinterfaces:
BaseJoinOnBuilder<JoinOnBuilder<T>>
public interface JoinOnBuilder<T> extends BaseJoinOnBuilder<JoinOnBuilder<T>>
An interface for builders that support join on.
This is related to the fact, that a query builder supports join on clauses.
- Since:
- 1.0.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and Type Method Description T
end()
Finishes the ON clause and adds it to the parent predicate container represented by the typeT
.JoinOnOrBuilder<JoinOnBuilder<T>>
onOr()
Starts aJoinOnOrBuilder
which is a predicate consisting only of disjunctiv connected predicates.T
setOnExpression(String expression)
Sets the given expression as expression for the on clause.MultipleSubqueryInitiator<T>
setOnExpressionSubqueries(String expression)
Starts aMultipleSubqueryInitiator
for expression of the on clause.Methods inherited from interface com.blazebit.persistence.BaseJoinOnBuilder
on, onCase, onExists, onExists, onExpression, onExpressionSubqueries, onNotExists, onNotExists, onSimpleCase, onSubqueries, onSubquery, onSubquery, onSubquery, onSubquery
-
Method Details
-
onOr
JoinOnOrBuilder<JoinOnBuilder<T>> onOr()Starts aJoinOnOrBuilder
which is a predicate consisting only of disjunctiv connected predicates. When the builder finishes, the predicate is added to the parent predicate container represented by the typeT
.- Returns:
- The or predicate builder for the having clause
-
end
T end()Finishes the ON clause and adds it to the parent predicate container represented by the typeT
.- Returns:
- The parent predicate container builder
-
setOnExpression
Sets the given expression as expression for the on clause.- Parameters:
expression
- The on expression- Returns:
- The builder
- Since:
- 1.2.0
-
setOnExpressionSubqueries
Starts aMultipleSubqueryInitiator
for expression of the on clause.All occurrences of subsequently defined
subqueryAlias
es inexpression
will be replaced by the respective subquery. When the builder finishes, the resulting expression is used as expression for the on clause.- Parameters:
expression
- The on expression- Returns:
- The subquery initiator for building multiple subqueries for their respective subqueryAliases
- Since:
- 1.2.0
-