| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.persistence.criteria.SelectionImpl<X>
org.apache.openjpa.persistence.criteria.ExpressionImpl<X>
X - the type of the value this expression represents.abstract class ExpressionImpl<X>
Expression node for Criteria query. Acts a bridge pattern to equivalent kernel representation.
| Constructor Summary | |
|---|---|
| ExpressionImpl(Class<X> cls) | |
| Method Summary | ||
|---|---|---|
| 
 | as(Class<Y> type)Creates a new expression of the given type. | |
|  Predicate | in(Collection<?> values)Create a predicate to test whether this expression is a member of the given collection element values. | |
|  Predicate | in(Expression<?>... values)Create a predicate to test whether this expression is a member of the given argument expressions. | |
|  Predicate | in(Expression<Collection<?>> values)Create a predicate to test whether this expression is a member of the given expression representing a collection. | |
|  Predicate | in(Object... values)Create a predicate to test whether this expression is a member of the given argument values. | |
|  Predicate | isNotNull()Create a predicate to test whether this expression is not null. | |
|  Predicate | isNull()Create a predicate to test whether this expression is null. | |
| (package private)  Expression | toKernelExpression(ExpressionFactory factory,
                   CriteriaQueryImpl<?> q)Bridge contract to convert this facade expression to a kernel expression. | |
| (package private) abstract  Value | toValue(ExpressionFactory factory,
        CriteriaQueryImpl<?> q)Bridge contract to convert this facade expression to a kernel value. | |
| Methods inherited from class org.apache.openjpa.persistence.criteria.SelectionImpl | 
|---|
| acceptVisit, alias, asProjection, assertValidName, asValue, asVariable, getAlias, getCompoundSelectionItems, getJavaType, isAliased, isAutoAliased, isCompoundSelection, setAutoAlias | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface javax.persistence.criteria.Selection | 
|---|
| alias, getCompoundSelectionItems, isCompoundSelection | 
| Methods inherited from interface javax.persistence.TupleElement | 
|---|
| getAlias, getJavaType | 
| Constructor Detail | 
|---|
public ExpressionImpl(Class<X> cls)
cls - the type of the evaluated result of the expression| Method Detail | 
|---|
public <Y> Expression<Y> as(Class<Y> type)
as in interface Expression<X>public Predicate in(Object... values)
in in interface Expression<X>public Predicate in(Expression<?>... values)
in in interface Expression<X>public Predicate in(Collection<?> values)
in in interface Expression<X>public Predicate in(Expression<Collection<?>> values)
in in interface Expression<X>public Predicate isNotNull()
isNotNull in interface Expression<X>public Predicate isNull()
isNull in interface Expression<X>
abstract Value toValue(ExpressionFactory factory,
                       CriteriaQueryImpl<?> q)
factory - creates the kernel expressionq - the query definition context of this expression
Expression toKernelExpression(ExpressionFactory factory,
                              CriteriaQueryImpl<?> q)
factory - creates the kernel expressionq - the query definition context of this expression
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||