Class AbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.model.AbstractStateObjectBuilder
org.eclipse.persistence.jpa.jpql.tools.model.AbstractScalarExpressionStateObjectBuilder<T>
org.eclipse.persistence.jpa.jpql.tools.model.AbstractConditionalExpressionStateObjectBuilder<T>
- All Implemented Interfaces:
IAbstractConditionalExpressionStateObjectBuilder<T>
,IScalarExpressionStateObjectBuilder<T>
- Direct Known Subclasses:
AbstractCaseExpressionStateObjectBuilder
,DefaultConditionalExpressionStateObjectBuilder
,EclipseLinkConditionalStateObjectBuilder
public abstract class AbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
extends AbstractScalarExpressionStateObjectBuilder<T>
implements IAbstractConditionalExpressionStateObjectBuilder<T>
The abstract implementation of
IConditionalExpressionStateObjectBuilder
that supports the
creation of the conditional expression based on the JPQL grammar defined in JPA 2.0.- Since:
- 2.4
- Version:
- 2.4
-
Constructor Summary
ConstructorDescriptionCreates a newAbstractStateObjectBuilder
. -
Method Summary
Modifier and TypeMethodDescriptionall
(SimpleSelectStatementStateObject subquery) Creates the expressionALL(subquery)
.protected void
allOrAny
(String identifier, SimpleSelectStatementStateObject subquery) Creates the expressionx AND y
.any
(SimpleSelectStatementStateObject subquery) Creates the expressionANY(subquery)
.protected void
between
(boolean not) Creates the expressionx BETWEEN y AND z
.collectionPath
(String path) Creates a new collection-valued path expression.protected void
comparison
(String identifier) protected void
comparison
(String identifier, StateObject rightStateObject) protected void
exists
(boolean not, SimpleSelectStatementStateObject subquery) exists
(SimpleSelectStatementStateObject subquery) FALSE()
greaterThan
(Number number) greaterThan
(String literal) greaterThan
(T builder) greaterThanOrEqual
(Number number) greaterThanOrEqual
(String literal) greaterThanOrEqual
(T builder) protected void
protected void
in
(boolean not, List<StateObject> inItems) protected void
in
(SimpleSelectStatementStateObject subquery) protected void
isNotEmpty
(String path) protected void
protected void
protected void
lowerThanOrEqual
(Number number) lowerThanOrEqual
(String literal) lowerThanOrEqual
(T builder) protected void
notBetween
(T lowerBoundExpression, T upperBoundExpression) notExists
(SimpleSelectStatementStateObject subquery) notIn
(SimpleSelectStatementStateObject subquery) notMemberOf
(String path) NULL()
some
(SimpleSelectStatementStateObject subquery) sub
(StateObject stateObject) trim
(TrimExpression.Specification specification, String trimCharacter, T builder) trim
(TrimExpression.Specification specification, T builder) TRUE()
Creates the expression representing an identification variable.Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.model.AbstractScalarExpressionStateObjectBuilder
abs, add, arithmetic, avg, avg, avgDistinct, buildCollectionPath, buildIdentificationVariable, buildInputParameter, buildNumeric, buildNumeric, buildStateFieldPath, buildStringLiteral, case_, coalesce, coalesce, concat, concat, count, count, countDistinct, currentDate, currentTime, currentTimestamp, date, divide, entityType, enumLiteral, function, function, function, getCaseBuilder, getParent, index, length, literal, literals, locate, locate, max, max, maxDistinct, min, min, minDistinct, minus, mod, multiply, nullIf, numeric, numeric, parameter, path, plus, size, sqrt, stateObjects, stateObjects, string, sub, subtract, sum, sum, sumDistinct, type
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.model.AbstractStateObjectBuilder
add, checkBuilder, checkBuilders, hasStateObjects, pop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.persistence.jpa.jpql.tools.model.IScalarExpressionStateObjectBuilder
abs, add, avg, avgDistinct, case_, coalesce, coalesce, concat, concat, count, countDistinct, currentDate, currentTime, currentTimestamp, date, divide, entityType, enumLiteral, function, function, function, getCaseBuilder, index, length, locate, locate, max, maxDistinct, min, minDistinct, minus, mod, multiply, nullIf, numeric, numeric, parameter, path, plus, size, sqrt, string, sub, subtract, sum, sumDistinct, type
-
Constructor Details
-
AbstractConditionalExpressionStateObjectBuilder
Creates a newAbstractStateObjectBuilder
.- Parameters:
parent
- The parent of the expression to build, which is only required when a JPQL fragment needs to be parsed
-
-
Method Details
-
all
Description copied from interface:IAbstractConditionalExpressionStateObjectBuilder
Creates the expressionALL(subquery)
.- Specified by:
all
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
- Parameters:
subquery
- The already constructed subquery- Returns:
- This builder
-
allOrAny
-
and
Description copied from interface:IAbstractConditionalExpressionStateObjectBuilder
Creates the expressionx AND y
.- Specified by:
and
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
- Parameters:
builder
- The right side of the logical expression- Returns:
- This builder
-
any
Description copied from interface:IAbstractConditionalExpressionStateObjectBuilder
Creates the expressionANY(subquery)
.- Specified by:
any
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
- Parameters:
subquery
- The already constructed subquery- Returns:
- This builder
-
between
protected void between(boolean not) -
between
Description copied from interface:IAbstractConditionalExpressionStateObjectBuilder
Creates the expressionx BETWEEN y AND z
.- Specified by:
between
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
- Parameters:
lowerBoundExpression
- The lower bound expressionupperBoundExpression
- The upper bound expression- Returns:
- This builder
-
collectionPath
Description copied from interface:IAbstractConditionalExpressionStateObjectBuilder
Creates a new collection-valued path expression.- Specified by:
collectionPath
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
- Parameters:
path
- The collection-valued path expression- Returns:
- This builder
-
comparison
-
comparison
-
different
- Specified by:
different
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
different
- Specified by:
different
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
different
- Specified by:
different
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
equal
- Specified by:
equal
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
equal
- Specified by:
equal
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
equal
- Specified by:
equal
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
exists
-
exists
- Specified by:
exists
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
FALSE
- Specified by:
FALSE
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
greaterThan
- Specified by:
greaterThan
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
greaterThan
- Specified by:
greaterThan
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
greaterThan
- Specified by:
greaterThan
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
greaterThanOrEqual
- Specified by:
greaterThanOrEqual
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
greaterThanOrEqual
- Specified by:
greaterThanOrEqual
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
greaterThanOrEqual
- Specified by:
greaterThanOrEqual
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
in
-
in
-
in
-
in
- Specified by:
in
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
in
- Specified by:
in
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
in
- Specified by:
in
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
in
- Specified by:
in
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
isEmpty
-
isEmpty
- Specified by:
isEmpty
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
isNotEmpty
- Specified by:
isNotEmpty
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
isNotNull
- Specified by:
isNotNull
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
isNull
-
isNull
- Specified by:
isNull
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
keyword
-
like
-
like
- Specified by:
like
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
like
- Specified by:
like
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
like
- Specified by:
like
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
lower
- Specified by:
lower
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
lowerThan
- Specified by:
lowerThan
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
lowerThan
- Specified by:
lowerThan
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
lowerThan
- Specified by:
lowerThan
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
lowerThanOrEqual
- Specified by:
lowerThanOrEqual
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
lowerThanOrEqual
- Specified by:
lowerThanOrEqual
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
lowerThanOrEqual
- Specified by:
lowerThanOrEqual
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
member
-
member
- Specified by:
member
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
memberOf
- Specified by:
memberOf
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
notBetween
- Specified by:
notBetween
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
notExists
- Specified by:
notExists
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
notIn
- Specified by:
notIn
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
notIn
- Specified by:
notIn
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
notIn
- Specified by:
notIn
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
notIn
- Specified by:
notIn
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
notLike
- Specified by:
notLike
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
notLike
- Specified by:
notLike
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
notLike
- Specified by:
notLike
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
notMember
- Specified by:
notMember
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
notMemberOf
- Specified by:
notMemberOf
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
NULL
- Specified by:
NULL
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
or
- Specified by:
or
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
some
- Specified by:
some
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
sub
- Specified by:
sub
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
substring
- Specified by:
substring
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
trim
- Specified by:
trim
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
trim
- Specified by:
trim
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
TRUE
- Specified by:
TRUE
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
upper
- Specified by:
upper
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
-
variable
Description copied from interface:IAbstractConditionalExpressionStateObjectBuilder
Creates the expression representing an identification variable.- Specified by:
variable
in interfaceIAbstractConditionalExpressionStateObjectBuilder<T extends IAbstractConditionalExpressionStateObjectBuilder<T>>
- Parameters:
variable
- The identification variable- Returns:
- This builder
-