public class ExpressionImpl<X> extends SelectionImpl<X> implements 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.
Expression,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isLiteral |
protected java.lang.Object |
literal |
protected Metamodel |
metamodel |
alias, currentNode, javaType| Modifier | Constructor and Description |
|---|---|
protected |
ExpressionImpl(Metamodel metamodel,
java.lang.Class<X> javaType,
org.eclipse.persistence.expressions.Expression expressionNode) |
|
ExpressionImpl(Metamodel metamodel,
java.lang.Class<X> javaType,
org.eclipse.persistence.expressions.Expression expressionNode,
java.lang.Object value) |
| Modifier and Type | Method and Description |
|---|---|
<T> <any> |
as(java.lang.Class<T> type) |
protected <T> <any> |
buildExpressionForAs(java.lang.Class<T> type) |
void |
findRootAndParameters(CommonAbstractCriteriaImpl criteriaQuery) |
Predicate |
in(<any>... values)
Apply a predicate to test whether the expression is a member
of the argument list.
|
Predicate |
in(<any> values)
Apply a predicate to test whether the expression is a member
of the collection.
|
Predicate |
in(java.util.Collection<?> values)
Apply a predicate to test whether the expression is a member
of the collection.
|
Predicate |
in(java.lang.Object... values) |
boolean |
isCompoundExpression() |
boolean |
isExpression() |
boolean |
isJunction() |
boolean |
isLiteral() |
Predicate |
isNotNull() |
Predicate |
isNull() |
boolean |
isParameter() |
boolean |
isPredicate() |
boolean |
isSubquery() |
alias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRootprotected Metamodel metamodel
protected boolean isLiteral
protected java.lang.Object literal
protected ExpressionImpl(Metamodel metamodel,
java.lang.Class<X> javaType,
org.eclipse.persistence.expressions.Expression expressionNode)
public ExpressionImpl(Metamodel metamodel,
java.lang.Class<X> javaType,
org.eclipse.persistence.expressions.Expression expressionNode,
java.lang.Object value)
public <T> <any> as(java.lang.Class<T> type)
protected <T> <any> buildExpressionForAs(java.lang.Class<T> type)
public Predicate in(java.lang.Object... values)
public Predicate in(<any>... values)
values - public Predicate in(java.util.Collection<?> values)
values - collectionpublic Predicate in(<any> values)
values - expression corresponding to collectionpublic Predicate isNotNull()
public Predicate isNull()
public boolean isPredicate()
isPredicate in interface InternalExpressionpublic boolean isSubquery()
isSubquery in interface InternalExpressionpublic boolean isCompoundExpression()
isCompoundExpression in interface InternalExpressionpublic boolean isExpression()
isExpression in interface InternalExpressionpublic boolean isJunction()
isJunction in interface InternalExpressionpublic boolean isLiteral()
isLiteral in interface InternalExpressionpublic boolean isParameter()
isParameter in interface InternalExpressionpublic void findRootAndParameters(CommonAbstractCriteriaImpl criteriaQuery)
findRootAndParameters in interface InternalSelection