|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.jpa.criteria.CriteriaQueryImpl<T>
public class CriteriaQueryImpl<T>
Implementation of JPA2 Criteria "Query". When the user calls getCompilation() or getParameters(, or toString() then that part of the query is compiled. Any subsequent update will require the compilation to be redone.
| Constructor Summary | |
|---|---|
CriteriaQueryImpl(MetamodelImpl model,
java.lang.Class<T> resultClass)
Constructor for a criteria query for the supplied model and result class. |
|
| Method Summary | ||
|---|---|---|
protected void |
discardCompiled()
|
|
javax.persistence.criteria.CriteriaQuery<T> |
distinct(boolean flag)
|
|
|
from(java.lang.Class<X> cls)
|
|
|
from(javax.persistence.metamodel.EntityType<X> type)
|
|
org.datanucleus.query.compiler.QueryCompilation |
getCompilation(org.datanucleus.metadata.MetaDataManager mmgr,
org.datanucleus.ClassLoaderResolver clr)
Accessor for the generic compilation that this criteria query equates to. |
|
java.util.List<javax.persistence.criteria.Expression<?>> |
getGroupList()
|
|
javax.persistence.criteria.Predicate |
getGroupRestriction()
|
|
javax.persistence.metamodel.Metamodel |
getMetamodel()
Accessor for the model used by this query. |
|
java.util.List<javax.persistence.criteria.Order> |
getOrderList()
|
|
java.util.Set<javax.persistence.criteria.ParameterExpression<?>> |
getParameters()
|
|
protected void |
getParametersForQueryExpression(org.datanucleus.query.expression.Expression expr,
java.util.List params)
|
|
javax.persistence.criteria.Predicate |
getRestriction()
|
|
java.lang.Class<T> |
getResultType()
|
|
java.util.Set<javax.persistence.criteria.Root<?>> |
getRoots()
|
|
javax.persistence.criteria.Selection<T> |
getSelection()
|
|
javax.persistence.criteria.CriteriaQuery<T> |
groupBy(javax.persistence.criteria.Expression<?>... exprs)
|
|
javax.persistence.criteria.CriteriaQuery<T> |
groupBy(java.util.List<javax.persistence.criteria.Expression<?>> exprs)
|
|
javax.persistence.criteria.CriteriaQuery<T> |
having(javax.persistence.criteria.Expression<java.lang.Boolean> expr)
|
|
javax.persistence.criteria.CriteriaQuery<T> |
having(javax.persistence.criteria.Predicate... exprs)
|
|
boolean |
isDistinct()
|
|
javax.persistence.criteria.CriteriaQuery<T> |
multiselect(java.util.List<javax.persistence.criteria.Selection<?>> selects)
|
|
javax.persistence.criteria.CriteriaQuery<T> |
multiselect(javax.persistence.criteria.Selection<?>... selects)
|
|
javax.persistence.criteria.CriteriaQuery<T> |
orderBy(java.util.List<javax.persistence.criteria.Order> orders)
|
|
javax.persistence.criteria.CriteriaQuery<T> |
orderBy(javax.persistence.criteria.Order... orders)
|
|
javax.persistence.criteria.CriteriaQuery<T> |
select(javax.persistence.criteria.Selection<? extends T> select)
|
|
|
subquery(java.lang.Class<U> type)
|
|
java.lang.String |
toString()
Method to return a single-string representation of the criteria query in JPQL. |
|
javax.persistence.criteria.CriteriaQuery<T> |
where(javax.persistence.criteria.Expression<java.lang.Boolean> expr)
|
|
javax.persistence.criteria.CriteriaQuery<T> |
where(javax.persistence.criteria.Predicate... exprs)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CriteriaQueryImpl(MetamodelImpl model,
java.lang.Class<T> resultClass)
model - The modelresultClass - Result class (if any)| Method Detail |
|---|
public javax.persistence.metamodel.Metamodel getMetamodel()
public javax.persistence.criteria.CriteriaQuery<T> distinct(boolean flag)
distinct in interface javax.persistence.criteria.AbstractQuery<T>distinct in interface javax.persistence.criteria.CriteriaQuery<T>public boolean isDistinct()
isDistinct in interface javax.persistence.criteria.AbstractQuery<T>public javax.persistence.criteria.CriteriaQuery<T> select(javax.persistence.criteria.Selection<? extends T> select)
select in interface javax.persistence.criteria.CriteriaQuery<T>public javax.persistence.criteria.CriteriaQuery<T> multiselect(java.util.List<javax.persistence.criteria.Selection<?>> selects)
multiselect in interface javax.persistence.criteria.CriteriaQuery<T>public javax.persistence.criteria.CriteriaQuery<T> multiselect(javax.persistence.criteria.Selection<?>... selects)
multiselect in interface javax.persistence.criteria.CriteriaQuery<T>public javax.persistence.criteria.Selection<T> getSelection()
getSelection in interface javax.persistence.criteria.AbstractQuery<T>public java.lang.Class<T> getResultType()
getResultType in interface javax.persistence.criteria.AbstractQuery<T>public <X> javax.persistence.criteria.Root<X> from(java.lang.Class<X> cls)
from in interface javax.persistence.criteria.AbstractQuery<T>public <X> javax.persistence.criteria.Root<X> from(javax.persistence.metamodel.EntityType<X> type)
from in interface javax.persistence.criteria.AbstractQuery<T>public java.util.Set<javax.persistence.criteria.Root<?>> getRoots()
getRoots in interface javax.persistence.criteria.AbstractQuery<T>public javax.persistence.criteria.CriteriaQuery<T> where(javax.persistence.criteria.Expression<java.lang.Boolean> expr)
where in interface javax.persistence.criteria.AbstractQuery<T>where in interface javax.persistence.criteria.CriteriaQuery<T>public javax.persistence.criteria.CriteriaQuery<T> where(javax.persistence.criteria.Predicate... exprs)
where in interface javax.persistence.criteria.AbstractQuery<T>where in interface javax.persistence.criteria.CriteriaQuery<T>public javax.persistence.criteria.Predicate getRestriction()
getRestriction in interface javax.persistence.criteria.AbstractQuery<T>public javax.persistence.criteria.CriteriaQuery<T> groupBy(javax.persistence.criteria.Expression<?>... exprs)
groupBy in interface javax.persistence.criteria.AbstractQuery<T>groupBy in interface javax.persistence.criteria.CriteriaQuery<T>public javax.persistence.criteria.CriteriaQuery<T> groupBy(java.util.List<javax.persistence.criteria.Expression<?>> exprs)
groupBy in interface javax.persistence.criteria.AbstractQuery<T>groupBy in interface javax.persistence.criteria.CriteriaQuery<T>public java.util.List<javax.persistence.criteria.Expression<?>> getGroupList()
getGroupList in interface javax.persistence.criteria.AbstractQuery<T>public javax.persistence.criteria.Predicate getGroupRestriction()
getGroupRestriction in interface javax.persistence.criteria.AbstractQuery<T>public javax.persistence.criteria.CriteriaQuery<T> having(javax.persistence.criteria.Expression<java.lang.Boolean> expr)
having in interface javax.persistence.criteria.AbstractQuery<T>having in interface javax.persistence.criteria.CriteriaQuery<T>public javax.persistence.criteria.CriteriaQuery<T> having(javax.persistence.criteria.Predicate... exprs)
having in interface javax.persistence.criteria.AbstractQuery<T>having in interface javax.persistence.criteria.CriteriaQuery<T>public java.util.List<javax.persistence.criteria.Order> getOrderList()
getOrderList in interface javax.persistence.criteria.CriteriaQuery<T>public javax.persistence.criteria.CriteriaQuery<T> orderBy(java.util.List<javax.persistence.criteria.Order> orders)
orderBy in interface javax.persistence.criteria.CriteriaQuery<T>public javax.persistence.criteria.CriteriaQuery<T> orderBy(javax.persistence.criteria.Order... orders)
orderBy in interface javax.persistence.criteria.CriteriaQuery<T>public <U> javax.persistence.criteria.Subquery<U> subquery(java.lang.Class<U> type)
subquery in interface javax.persistence.criteria.AbstractQuery<T>protected void discardCompiled()
public java.util.Set<javax.persistence.criteria.ParameterExpression<?>> getParameters()
getParameters in interface javax.persistence.criteria.CriteriaQuery<T>
public org.datanucleus.query.compiler.QueryCompilation getCompilation(org.datanucleus.metadata.MetaDataManager mmgr,
org.datanucleus.ClassLoaderResolver clr)
public java.lang.String toString()
toString in class java.lang.Object
protected void getParametersForQueryExpression(org.datanucleus.query.expression.Expression expr,
java.util.List params)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||