org.datanucleus.jpa.criteria
Class ExpressionImpl<T>
java.lang.Object
org.datanucleus.jpa.criteria.ExpressionImpl<T>
- All Implemented Interfaces:
- javax.persistence.criteria.Expression<T>, javax.persistence.criteria.Selection<T>, javax.persistence.TupleElement<T>
- Direct Known Subclasses:
- CoalesceImpl, CompoundSelectionImpl, ParameterExpressionImpl, PathImpl, PredicateImpl, SubqueryImpl
public class ExpressionImpl<T>
- extends java.lang.Object
- implements javax.persistence.criteria.Selection<T>, javax.persistence.criteria.Expression<T>
Implementation of JPA2 Criteria "Expression".
|
Method Summary |
javax.persistence.criteria.Selection<T> |
alias(java.lang.String alias)
|
<X> javax.persistence.criteria.Expression<X> |
|
as(java.lang.Class<X> cls)
|
java.lang.String |
getAlias()
|
java.util.List<javax.persistence.criteria.Selection<?>> |
getCompoundSelectionItems()
|
java.lang.Class<? extends T> |
getJavaType()
|
org.datanucleus.query.expression.Expression |
getQueryExpression()
Accessor for the underlying (generic) query expression. |
javax.persistence.criteria.Predicate |
in(java.util.Collection<?> coll)
|
javax.persistence.criteria.Predicate |
in(javax.persistence.criteria.Expression<?>... exprs)
|
javax.persistence.criteria.Predicate |
in(javax.persistence.criteria.Expression<java.util.Collection<?>> coll)
|
javax.persistence.criteria.Predicate |
in(java.lang.Object... expr)
|
boolean |
isCompoundSelection()
|
javax.persistence.criteria.Predicate |
isNotNull()
|
javax.persistence.criteria.Predicate |
isNull()
|
java.lang.String |
toString()
Method to print out the expression as it would appear in JPQL single-string form. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ExpressionImpl
public ExpressionImpl(java.lang.Class<T> cls)
as
public <X> javax.persistence.criteria.Expression<X> as(java.lang.Class<X> cls)
- Specified by:
as in interface javax.persistence.criteria.Expression<T>
in
public javax.persistence.criteria.Predicate in(java.util.Collection<?> coll)
- Specified by:
in in interface javax.persistence.criteria.Expression<T>
in
public javax.persistence.criteria.Predicate in(javax.persistence.criteria.Expression<?>... exprs)
- Specified by:
in in interface javax.persistence.criteria.Expression<T>
in
public javax.persistence.criteria.Predicate in(javax.persistence.criteria.Expression<java.util.Collection<?>> coll)
- Specified by:
in in interface javax.persistence.criteria.Expression<T>
in
public javax.persistence.criteria.Predicate in(java.lang.Object... expr)
- Specified by:
in in interface javax.persistence.criteria.Expression<T>
isNotNull
public javax.persistence.criteria.Predicate isNotNull()
- Specified by:
isNotNull in interface javax.persistence.criteria.Expression<T>
isNull
public javax.persistence.criteria.Predicate isNull()
- Specified by:
isNull in interface javax.persistence.criteria.Expression<T>
alias
public javax.persistence.criteria.Selection<T> alias(java.lang.String alias)
- Specified by:
alias in interface javax.persistence.criteria.Selection<T>
getCompoundSelectionItems
public java.util.List<javax.persistence.criteria.Selection<?>> getCompoundSelectionItems()
- Specified by:
getCompoundSelectionItems in interface javax.persistence.criteria.Selection<T>
isCompoundSelection
public boolean isCompoundSelection()
- Specified by:
isCompoundSelection in interface javax.persistence.criteria.Selection<T>
getAlias
public java.lang.String getAlias()
- Specified by:
getAlias in interface javax.persistence.TupleElement<T>
getJavaType
public java.lang.Class<? extends T> getJavaType()
- Specified by:
getJavaType in interface javax.persistence.TupleElement<T>
getQueryExpression
public org.datanucleus.query.expression.Expression getQueryExpression()
- Accessor for the underlying (generic) query expression.
- Returns:
- The query expression
toString
public java.lang.String toString()
- Method to print out the expression as it would appear in JPQL single-string form.
- Overrides:
toString in class java.lang.Object
- Returns:
- The JPQL single string form of this expression
Copyright © 2011. All Rights Reserved.