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:
java.io.Serializable,javax.persistence.criteria.Expression<X>,javax.persistence.criteria.Selection<X>,javax.persistence.TupleElement<X>,InternalExpression,InternalSelection
- Direct Known Subclasses:
CompoundExpressionImpl,CriteriaBuilderImpl.CaseImpl,CriteriaBuilderImpl.CoalesceImpl,CriteriaBuilderImpl.SimpleCaseImpl
public class FunctionExpressionImpl<X> extends ExpressionImpl<X>
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
- Author:
- gyorke
- See Also:
Predicate, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Listexpressionsprotected java.lang.Stringoperator-
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
Constructors Modifier Constructor Description protectedFunctionExpressionImpl(javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> resultClass, org.eclipse.persistence.expressions.Expression expressionNode, java.util.List<javax.persistence.criteria.Expression<?>> compoundExpressions)FunctionExpressionImpl(javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> resultClass, org.eclipse.persistence.expressions.Expression expressionNode, java.util.List<javax.persistence.criteria.Expression<?>> compoundExpressions, java.lang.String operator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfindRootAndParameters(CommonAbstractCriteriaImpl query)java.util.List<javax.persistence.criteria.Expression<?>>getChildExpressions()Return the top-level conjuncts or disjuncts of the predicate.java.lang.StringgetOperation()booleanisCompoundExpression()booleanisExpression()-
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
-
-
-
-
Constructor Detail
-
FunctionExpressionImpl
protected FunctionExpressionImpl(javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> resultClass, org.eclipse.persistence.expressions.Expression expressionNode, java.util.List<javax.persistence.criteria.Expression<?>> compoundExpressions)
-
FunctionExpressionImpl
public FunctionExpressionImpl(javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> resultClass, org.eclipse.persistence.expressions.Expression expressionNode, java.util.List<javax.persistence.criteria.Expression<?>> compoundExpressions, java.lang.String operator)
-
-
Method Detail
-
getChildExpressions
public java.util.List<javax.persistence.criteria.Expression<?>> getChildExpressions()
Return the top-level conjuncts or disjuncts of the predicate.- Returns:
- list boolean expressions forming the predicate
-
getOperation
public java.lang.String getOperation()
- Returns:
- the operator
-
isCompoundExpression
public boolean isCompoundExpression()
- Specified by:
isCompoundExpressionin interfaceInternalExpression- Overrides:
isCompoundExpressionin classExpressionImpl<X>
-
isExpression
public boolean isExpression()
- Specified by:
isExpressionin interfaceInternalExpression- Overrides:
isExpressionin classExpressionImpl<X>
-
findRootAndParameters
public void findRootAndParameters(CommonAbstractCriteriaImpl query)
- Specified by:
findRootAndParametersin interfaceInternalSelection- Overrides:
findRootAndParametersin classExpressionImpl<X>
-
-