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
FieldsFields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, currentNode, javaType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExpressionImpl(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) voidfindRootAndParameters(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.booleanbooleanbooleanbooleanisNull()booleanbooleanbooleanMethods inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRoot, setJavaTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelectionMethods 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:
asin interfaceExpression<X>
-
buildExpressionForAs
-
in
- Specified by:
inin interfaceExpression<X>
-
in
Apply a predicate to test whether the expression is a member of the argument list.- Specified by:
inin interfaceExpression<X>- Returns:
- predicate testing for membership
-
in
Apply a predicate to test whether the expression is a member of the collection.- Specified by:
inin 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:
inin interfaceExpression<X>- Parameters:
values- expression corresponding to collection- Returns:
- predicate testing for membership
-
isNotNull
- Specified by:
isNotNullin interfaceExpression<X>
-
isNull
- Specified by:
isNullin interfaceExpression<X>
-
isPredicate
public boolean isPredicate()- Specified by:
isPredicatein interfaceInternalExpression
-
isSubquery
public boolean isSubquery()- Specified by:
isSubqueryin interfaceInternalExpression
-
isCompoundExpression
public boolean isCompoundExpression()- Specified by:
isCompoundExpressionin interfaceInternalExpression
-
isExpression
public boolean isExpression()- Specified by:
isExpressionin interfaceInternalExpression
-
isJunction
public boolean isJunction()- Specified by:
isJunctionin interfaceInternalExpression
-
isLiteral
public boolean isLiteral()- Specified by:
isLiteralin interfaceInternalExpression
-
isParameter
public boolean isParameter()- Specified by:
isParameterin interfaceInternalExpression
-
findRootAndParameters
- Specified by:
findRootAndParametersin interfaceInternalSelection
-