T
- The builder type that is returned on terminal operationspublic interface CaseWhenOrBuilder<T>
Modifier and Type | Method and Description |
---|---|
CaseWhenAndBuilder<CaseWhenOrBuilder<T>> |
and()
Starts a case when and builder which connects it's predicates with the AND operator.
|
T |
endOr()
Finishes the OR predicate and adds it to the parent predicate container represented by the type
T . |
RestrictionBuilder<CaseWhenOrBuilder<T>> |
or(String expression)
Starts a
RestrictionBuilder for a case when predicate with the given expression as left hand expression. |
SubqueryInitiator<CaseWhenOrBuilder<T>> |
orExists()
Starts an exists predicate for the when clause with a subquery on the right hand side.
|
SubqueryBuilder<CaseWhenOrBuilder<T>> |
orExists(FullQueryBuilder<?,?> criteriaBuilder)
Starts an exists predicate for the when clause with a subquery on the right hand side based on the given criteria builder.
|
SubqueryInitiator<CaseWhenOrBuilder<T>> |
orNotExists()
Starts an exists predicate for the when clause with a subquery on the right hand side.
|
SubqueryBuilder<CaseWhenOrBuilder<T>> |
orNotExists(FullQueryBuilder<?,?> criteriaBuilder)
Starts an exists predicate for the when clause with a subquery on the right hand side based on the given criteria builder.
|
MultipleSubqueryInitiator<RestrictionBuilder<CaseWhenOrBuilder<T>>> |
orSubqueries(String expression)
Starts a
SubqueryInitiator for the left hand side of a when predicate. |
SubqueryInitiator<RestrictionBuilder<CaseWhenOrBuilder<T>>> |
orSubquery()
Starts a
SubqueryInitiator for the left hand side of a when predicate. |
SubqueryBuilder<RestrictionBuilder<CaseWhenOrBuilder<T>>> |
orSubquery(FullQueryBuilder<?,?> criteriaBuilder)
Starts a
SubqueryBuilder based on the given criteria builder for the left hand side of a when predicate. |
SubqueryInitiator<RestrictionBuilder<CaseWhenOrBuilder<T>>> |
orSubquery(String subqueryAlias,
String expression)
Starts a
SubqueryInitiator for the left hand side of a when predicate. |
SubqueryBuilder<RestrictionBuilder<CaseWhenOrBuilder<T>>> |
orSubquery(String subqueryAlias,
String expression,
FullQueryBuilder<?,?> criteriaBuilder)
Starts a
SubqueryBuilder based on the given criteria builder for the left hand side of a when predicate. |
RestrictionBuilder<CaseWhenOrBuilder<T>> or(String expression)
RestrictionBuilder
for a case when predicate with the given expression as left hand expression.
When the builder finishes, the predicate is added this predicate container.expression
- The left hand expression for a case when predicateSubqueryInitiator<RestrictionBuilder<CaseWhenOrBuilder<T>>> orSubquery()
SubqueryInitiator
for the left hand side of a when predicate.
When the subquery builder and the restriction builder for the right hand side are finished,
the when predicate in conjunction with it's then expression are added to this predicate container as disjunct.SubqueryInitiator<RestrictionBuilder<CaseWhenOrBuilder<T>>> orSubquery(String subqueryAlias, String expression)
SubqueryInitiator
for the left hand side of a when predicate.
All occurrences of subqueryAlias
in expression
will be replaced by the subquery. When the subquery
builder and the restriction builder for the right hand side are finished, the when predicate in conjunction with it's then
expression are added to this predicate container as disjunct.
subqueryAlias
- The alias for the subquery which will be replaced by the actual subqueryexpression
- The expression which will be used as left hand side of a predicate.
This expression contains the subqueryAlias
to define the insertion points for the subquery.More details about this method
MultipleSubqueryInitiator<RestrictionBuilder<CaseWhenOrBuilder<T>>> orSubqueries(String expression)
SubqueryInitiator
for the left hand side of a when predicate.
All occurrences of subsequently defined subqueryAlias
es in expression
will be replaced by the respective subquery.
When the builder finishes, the resulting expression is used for the left hand side of a when predicate.
expression
- The expression which will be used as left hand side of a when predicateSubqueryBuilder<RestrictionBuilder<CaseWhenOrBuilder<T>>> orSubquery(FullQueryBuilder<?,?> criteriaBuilder)
SubqueryBuilder
based on the given criteria builder for the left hand side of a when predicate.
When the subquery builder and the restriction builder for the right hand side are finished,
the when predicate in conjunction with it's then expression are added to this predicate container as disjunct.criteriaBuilder
- The criteria builder to base the subquery onSubqueryBuilder<RestrictionBuilder<CaseWhenOrBuilder<T>>> orSubquery(String subqueryAlias, String expression, FullQueryBuilder<?,?> criteriaBuilder)
SubqueryBuilder
based on the given criteria builder for the left hand side of a when predicate.
All occurrences of subqueryAlias
in expression
will be replaced by the subquery. When the subquery
builder and the restriction builder for the right hand side are finished, the when predicate in conjunction with it's then
expression are added to this predicate container as disjunct.
subqueryAlias
- The alias for the subquery which will be replaced by the actual subqueryexpression
- The expression which will be used as left hand side of a predicate.
This expression contains the subqueryAlias
to define the insertion points for the subquery.criteriaBuilder
- The criteria builder to base the subquery onMore details about this method
SubqueryInitiator<CaseWhenOrBuilder<T>> orExists()
SubqueryInitiator<CaseWhenOrBuilder<T>> orNotExists()
SubqueryBuilder<CaseWhenOrBuilder<T>> orExists(FullQueryBuilder<?,?> criteriaBuilder)
criteriaBuilder
- The criteria builder to base the subquery onSubqueryBuilder<CaseWhenOrBuilder<T>> orNotExists(FullQueryBuilder<?,?> criteriaBuilder)
criteriaBuilder
- The criteria builder to base the subquery onCaseWhenAndBuilder<CaseWhenOrBuilder<T>> and()
T endOr()
T
.Copyright © 2014–2018 Blazebit. All rights reserved.