Module org.eclipse.persistence.jpa
Class FunctionExpressionImpl<X>
java.lang.Object
org.eclipse.persistence.internal.jpa.querydef.SelectionImpl<X>
org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl<X>
org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImpl<X>
- All Implemented Interfaces:
Expression<X>
,Selection<X>
,TupleElement<X>
,Serializable
,InternalExpression
,InternalSelection
- Direct Known Subclasses:
CompoundExpressionImpl
,CriteriaBuilderImpl.CaseImpl
,CriteriaBuilderImpl.CoalesceImpl
,CriteriaBuilderImpl.SimpleCaseImpl
Purpose: Contains the implementation of the Predicate interface of the JPA criteria API.
Description: The predicate forms the least specific expression node. Predicates result in boolean expressions that are combined to form the final expression.
- Since:
- EclipseLink 1.2
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
isLiteral, literal, metamodel
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, currentNode, javaType
-
Constructor Summary
ModifierConstructorDescriptionprotected
FunctionExpressionImpl
(Metamodel metamodel, Class<X> resultClass, Expression expressionNode, List<Expression<?>> compoundExpressions) FunctionExpressionImpl
(Metamodel metamodel, Class<X> resultClass, Expression expressionNode, List<Expression<?>> compoundExpressions, String operator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
List
<Expression<?>> Return the top-level conjuncts or disjuncts of the predicate.boolean
boolean
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
as, buildExpressionForAs, in, in, in, in, isJunction, isLiteral, isNotNull, isNull, isParameter, isPredicate, isSubquery
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
-
operator
-
expressions
-
-
Constructor Details
-
FunctionExpressionImpl
protected FunctionExpressionImpl(Metamodel metamodel, Class<X> resultClass, Expression expressionNode, List<Expression<?>> compoundExpressions) -
FunctionExpressionImpl
public FunctionExpressionImpl(Metamodel metamodel, Class<X> resultClass, Expression expressionNode, List<Expression<?>> compoundExpressions, String operator)
-
-
Method Details
-
getChildExpressions
Return the top-level conjuncts or disjuncts of the predicate.- Returns:
- list boolean expressions forming the predicate
-
getOperation
- Returns:
- the operator
-
isCompoundExpression
public boolean isCompoundExpression()- Specified by:
isCompoundExpression
in interfaceInternalExpression
- Overrides:
isCompoundExpression
in classExpressionImpl<X>
-
isExpression
public boolean isExpression()- Specified by:
isExpression
in interfaceInternalExpression
- Overrides:
isExpression
in classExpressionImpl<X>
-
findRootAndParameters
- Specified by:
findRootAndParameters
in interfaceInternalSelection
- Overrides:
findRootAndParameters
in classExpressionImpl<X>
-