T - the type of the resultpublic class CriteriaQueryImpl<T> extends AbstractCriteriaQueryImpl<T> implements javax.persistence.criteria.CriteriaQuery<T>
CriteriaQueryImpl that performs the SQL generations.| Constructor and Description |
|---|
CriteriaQueryImpl(MetamodelImpl metamodel) |
CriteriaQueryImpl(MetamodelImpl metamodel,
Class<T> resultType) |
| Modifier and Type | Method and Description |
|---|---|
CriteriaQueryImpl<T> |
distinct(boolean distinct) |
String |
generateJpql()
Generates the JPQL for the query.
|
String |
generateSql()
Returns the generated SQL.
|
List<javax.persistence.criteria.Order> |
getOrderList() |
javax.persistence.criteria.CriteriaQuery<T> |
groupBy(javax.persistence.criteria.Expression<?>... grouping) |
javax.persistence.criteria.CriteriaQuery<T> |
groupBy(List<javax.persistence.criteria.Expression<?>> grouping) |
javax.persistence.criteria.CriteriaQuery<T> |
having(javax.persistence.criteria.Expression<Boolean> restriction) |
javax.persistence.criteria.CriteriaQuery<T> |
having(javax.persistence.criteria.Predicate... restrictions) |
boolean |
isQuery()
Returns if the query is a select query.
|
javax.persistence.criteria.CriteriaQuery<T> |
multiselect(List<javax.persistence.criteria.Selection<?>> selectionList) |
CriteriaQueryImpl<T> |
multiselect(javax.persistence.criteria.Selection<?>... selections) |
javax.persistence.criteria.CriteriaQuery<T> |
orderBy(List<javax.persistence.criteria.Order> o) |
javax.persistence.criteria.CriteriaQuery<T> |
orderBy(javax.persistence.criteria.Order... o) |
CriteriaQueryImpl<T> |
select(javax.persistence.criteria.Selection<? extends T> selection)
Sets the selection
|
String |
toString() |
CriteriaQueryImpl<T> |
where(javax.persistence.criteria.Expression<Boolean> restriction) |
CriteriaQueryImpl<T> |
where(javax.persistence.criteria.Predicate... restrictions) |
ensureSelection, from, from, getGroupList, getGroupRestriction, getRestriction, getResultType, getRoots, getSelection, internal, isDistinct, registerParameter, subquery, updateResultClassgenerateTableAlias, getAlias, getAlias, getFieldAlias, getJdbcAdaptor, getJpql, getMetamodel, getParameter, getParameters, getSql, getSqlParameters, setNextSqlParampublic CriteriaQueryImpl(MetamodelImpl metamodel)
metamodel - the metamodel;public CriteriaQueryImpl(MetamodelImpl metamodel, Class<T> resultType)
metamodel - the metamodelresultType - the result typepublic CriteriaQueryImpl<T> distinct(boolean distinct)
distinct in interface javax.persistence.criteria.AbstractQuery<T>distinct in interface javax.persistence.criteria.CriteriaQuery<T>distinct in class AbstractCriteriaQueryImpl<T>public String generateJpql()
generateJpql in interface BaseQuery<T>generateJpql in class AbstractCriteriaQueryImpl<T>public String generateSql()
generateSql in interface BaseQuery<T>generateSql in class AbstractCriteriaQueryImpl<T>public List<javax.persistence.criteria.Order> getOrderList()
getOrderList in interface javax.persistence.criteria.CriteriaQuery<T>public javax.persistence.criteria.CriteriaQuery<T> groupBy(javax.persistence.criteria.Expression<?>... grouping)
groupBy in interface javax.persistence.criteria.AbstractQuery<T>groupBy in interface javax.persistence.criteria.CriteriaQuery<T>groupBy in class AbstractCriteriaQueryImpl<T>public javax.persistence.criteria.CriteriaQuery<T> groupBy(List<javax.persistence.criteria.Expression<?>> grouping)
groupBy in interface javax.persistence.criteria.AbstractQuery<T>groupBy in interface javax.persistence.criteria.CriteriaQuery<T>groupBy in class AbstractCriteriaQueryImpl<T>public javax.persistence.criteria.CriteriaQuery<T> having(javax.persistence.criteria.Expression<Boolean> restriction)
having in interface javax.persistence.criteria.AbstractQuery<T>having in interface javax.persistence.criteria.CriteriaQuery<T>having in class AbstractCriteriaQueryImpl<T>public javax.persistence.criteria.CriteriaQuery<T> having(javax.persistence.criteria.Predicate... restrictions)
having in interface javax.persistence.criteria.AbstractQuery<T>having in interface javax.persistence.criteria.CriteriaQuery<T>having in class AbstractCriteriaQueryImpl<T>public boolean isQuery()
isQuery in class BaseQueryImpl<T>public javax.persistence.criteria.CriteriaQuery<T> multiselect(List<javax.persistence.criteria.Selection<?>> selectionList)
multiselect in interface javax.persistence.criteria.CriteriaQuery<T>public CriteriaQueryImpl<T> multiselect(javax.persistence.criteria.Selection<?>... selections)
multiselect in interface javax.persistence.criteria.CriteriaQuery<T>public javax.persistence.criteria.CriteriaQuery<T> orderBy(List<javax.persistence.criteria.Order> o)
orderBy in interface javax.persistence.criteria.CriteriaQuery<T>public javax.persistence.criteria.CriteriaQuery<T> orderBy(javax.persistence.criteria.Order... o)
orderBy in interface javax.persistence.criteria.CriteriaQuery<T>public CriteriaQueryImpl<T> select(javax.persistence.criteria.Selection<? extends T> selection)
select in interface javax.persistence.criteria.CriteriaQuery<T>select in class AbstractCriteriaQueryImpl<T>selection - the selectionpublic CriteriaQueryImpl<T> where(javax.persistence.criteria.Expression<Boolean> restriction)
where in interface javax.persistence.criteria.AbstractQuery<T>where in interface javax.persistence.criteria.CriteriaQuery<T>where in class AbstractCriteriaQueryImpl<T>public CriteriaQueryImpl<T> where(javax.persistence.criteria.Predicate... restrictions)
where in interface javax.persistence.criteria.AbstractQuery<T>where in interface javax.persistence.criteria.CriteriaQuery<T>where in class AbstractCriteriaQueryImpl<T>Copyright © 2012 Batoo Software & Consultancy. All Rights Reserved.