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:
java.io.Serializable,javax.persistence.criteria.Expression<X>,javax.persistence.criteria.Selection<X>,javax.persistence.TupleElement<X>,InternalExpression,InternalSelection
- Direct Known Subclasses:
FunctionExpressionImpl,ParameterExpressionImpl,PathImpl
public class ExpressionImpl<X> extends SelectionImpl<X> implements javax.persistence.criteria.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
- Author:
- gyorke
- See Also:
Expression, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisLiteralprotected java.lang.Objectliteralprotected javax.persistence.metamodel.Metamodelmetamodel-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, currentNode, javaType
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedExpressionImpl(javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> javaType, org.eclipse.persistence.expressions.Expression expressionNode)ExpressionImpl(javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> javaType, org.eclipse.persistence.expressions.Expression expressionNode, java.lang.Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> javax.persistence.criteria.Expression<T>as(java.lang.Class<T> type)protected <T> javax.persistence.criteria.Expression<T>buildExpressionForAs(java.lang.Class<T> type)voidfindRootAndParameters(CommonAbstractCriteriaImpl criteriaQuery)javax.persistence.criteria.Predicatein(java.lang.Object... values)javax.persistence.criteria.Predicatein(java.util.Collection<?> values)Apply a predicate to test whether the expression is a member of the collection.javax.persistence.criteria.Predicatein(javax.persistence.criteria.Expression<?>... values)Apply a predicate to test whether the expression is a member of the argument list.javax.persistence.criteria.Predicatein(javax.persistence.criteria.Expression<java.util.Collection<?>> values)Apply a predicate to test whether the expression is a member of the collection.booleanisCompoundExpression()booleanisExpression()booleanisJunction()booleanisLiteral()javax.persistence.criteria.PredicateisNotNull()javax.persistence.criteria.PredicateisNull()booleanisParameter()booleanisPredicate()booleanisSubquery()-
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
-
ExpressionImpl
protected ExpressionImpl(javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> javaType, org.eclipse.persistence.expressions.Expression expressionNode)
-
ExpressionImpl
public ExpressionImpl(javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> javaType, org.eclipse.persistence.expressions.Expression expressionNode, java.lang.Object value)
-
-
Method Detail
-
as
public <T> javax.persistence.criteria.Expression<T> as(java.lang.Class<T> type)
- Specified by:
asin interfacejavax.persistence.criteria.Expression<X>
-
buildExpressionForAs
protected <T> javax.persistence.criteria.Expression<T> buildExpressionForAs(java.lang.Class<T> type)
-
in
public javax.persistence.criteria.Predicate in(java.lang.Object... values)
- Specified by:
inin interfacejavax.persistence.criteria.Expression<X>
-
in
public javax.persistence.criteria.Predicate in(javax.persistence.criteria.Expression<?>... values)
Apply a predicate to test whether the expression is a member of the argument list.- Specified by:
inin interfacejavax.persistence.criteria.Expression<X>- Parameters:
values-- Returns:
- predicate testing for membership
-
in
public javax.persistence.criteria.Predicate in(java.util.Collection<?> values)
Apply a predicate to test whether the expression is a member of the collection.- Specified by:
inin interfacejavax.persistence.criteria.Expression<X>- Parameters:
values- collection- Returns:
- predicate testing for membership
-
in
public javax.persistence.criteria.Predicate in(javax.persistence.criteria.Expression<java.util.Collection<?>> values)
Apply a predicate to test whether the expression is a member of the collection.- Specified by:
inin interfacejavax.persistence.criteria.Expression<X>- Parameters:
values- expression corresponding to collection- Returns:
- predicate testing for membership
-
isNotNull
public javax.persistence.criteria.Predicate isNotNull()
- Specified by:
isNotNullin interfacejavax.persistence.criteria.Expression<X>
-
isNull
public javax.persistence.criteria.Predicate isNull()
- Specified by:
isNullin interfacejavax.persistence.criteria.Expression<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
public void findRootAndParameters(CommonAbstractCriteriaImpl criteriaQuery)
- Specified by:
findRootAndParametersin interfaceInternalSelection
-
-