Module org.eclipse.persistence.jpa
Class ExpressionImpl<X>
java.lang.Object
org.eclipse.persistence.internal.jpa.querydef.SelectionImpl<X>
org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl<X>
- All Implemented Interfaces:
Expression<X>
,Selection<X>
,TupleElement<X>
,Serializable
,InternalExpression
,InternalSelection
- Direct Known Subclasses:
FunctionExpressionImpl
,ParameterExpressionImpl
,PathImpl
public class ExpressionImpl<X>
extends SelectionImpl<X>
implements Expression<X>, InternalExpression
Purpose: Represents an Expression in the Criteria API heirarchy.
Description: Expressions are expression nodes that can not be joined from and may or not be the result of a Path expression.
- Since:
- EclipseLink 1.2
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, currentNode, javaType
-
Constructor Summary
ModifierConstructorDescriptionprotected
ExpressionImpl
(Metamodel metamodel, Class<X> javaType, Expression expressionNode) ExpressionImpl
(Metamodel metamodel, Class<X> javaType, Expression expressionNode, Object value) -
Method Summary
Modifier and TypeMethodDescription<T> Expression
<T> protected <T> Expression
<T> buildExpressionForAs
(Class<T> type) void
findRootAndParameters
(CommonAbstractCriteriaImpl criteriaQuery) in
(Expression<?>... values) Apply a predicate to test whether the expression is a member of the argument list.in
(Expression<Collection<?>> values) Apply a predicate to test whether the expression is a member of the collection.in
(Collection<?> values) Apply a predicate to test whether the expression is a member of the collection.boolean
boolean
boolean
boolean
isNull()
boolean
boolean
boolean
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRoot, setJavaType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelection
Methods inherited from interface jakarta.persistence.TupleElement
getAlias, getJavaType
-
Field Details
-
metamodel
-
isLiteral
protected boolean isLiteral -
literal
-
-
Constructor Details
-
ExpressionImpl
-
ExpressionImpl
public ExpressionImpl(Metamodel metamodel, Class<X> javaType, Expression expressionNode, Object value)
-
-
Method Details
-
as
- Specified by:
as
in interfaceExpression<X>
-
buildExpressionForAs
-
in
- Specified by:
in
in interfaceExpression<X>
-
in
Apply a predicate to test whether the expression is a member of the argument list.- Specified by:
in
in interfaceExpression<X>
- Returns:
- predicate testing for membership
-
in
Apply a predicate to test whether the expression is a member of the collection.- Specified by:
in
in interfaceExpression<X>
- Parameters:
values
- collection- Returns:
- predicate testing for membership
-
in
Apply a predicate to test whether the expression is a member of the collection.- Specified by:
in
in interfaceExpression<X>
- Parameters:
values
- expression corresponding to collection- Returns:
- predicate testing for membership
-
isNotNull
- Specified by:
isNotNull
in interfaceExpression<X>
-
isNull
- Specified by:
isNull
in interfaceExpression<X>
-
isPredicate
public boolean isPredicate()- Specified by:
isPredicate
in interfaceInternalExpression
-
isSubquery
public boolean isSubquery()- Specified by:
isSubquery
in interfaceInternalExpression
-
isCompoundExpression
public boolean isCompoundExpression()- Specified by:
isCompoundExpression
in interfaceInternalExpression
-
isExpression
public boolean isExpression()- Specified by:
isExpression
in interfaceInternalExpression
-
isJunction
public boolean isJunction()- Specified by:
isJunction
in interfaceInternalExpression
-
isLiteral
public boolean isLiteral()- Specified by:
isLiteral
in interfaceInternalExpression
-
isParameter
public boolean isParameter()- Specified by:
isParameter
in interfaceInternalExpression
-
findRootAndParameters
- Specified by:
findRootAndParameters
in interfaceInternalSelection
-