|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysema.query.QueryBase<SubType>
com.mysema.query.support.QueryBaseWithProjection<SubType>
com.mysema.query.hql.HQLQueryBase<SubType>
com.mysema.query.hql.jpa.AbstractJPAQuery<SubType>
SubType
- public abstract class AbstractJPAQuery<SubType extends AbstractJPAQuery<SubType>>
Abstract base class for JPA API based implementations of the HQLQuery interface
Field Summary |
---|
Fields inherited from class com.mysema.query.QueryBase |
---|
_this |
Constructor Summary | |
---|---|
AbstractJPAQuery(QueryMetadata md,
javax.persistence.EntityManager em,
HQLTemplates patterns)
|
Method Summary | ||
---|---|---|
long |
count()
return the amount of matched rows |
|
javax.persistence.Query |
createQuery(Expr<?> expr)
Expose the original JPA query for the given projection |
|
javax.persistence.Query |
createQuery(Expr<?> expr1,
Expr<?> expr2,
Expr<?>... rest)
Expose the original JPA query for the given projection |
|
Iterator<Object[]> |
iterate(Expr<?> first,
Expr<?> second,
Expr<?>... rest)
iterate over the results for the given projection |
|
|
iterate(Expr<RT> projection)
iterate over the results for the given projection |
|
List<Object[]> |
list(Expr<?> expr1,
Expr<?> expr2,
Expr<?>... rest)
list the results for the given projection |
|
|
list(Expr<RT> expr)
list the results for the given projection |
|
|
listResults(Expr<RT> expr)
list the results for the given projection |
|
protected void |
logQuery(String queryString)
|
|
|
uniqueResult(Expr<RT> expr)
return a unique result for the given projection |
Methods inherited from class com.mysema.query.hql.HQLQueryBase |
---|
createQBECondition, fetch, fetchAll, from, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, getConstants, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, toCountRowsString, toQueryString, toString, with |
Methods inherited from class com.mysema.query.support.QueryBaseWithProjection |
---|
asArray, countDistinct, iterateDistinct, iterateDistinct, listDistinct, listDistinct, listDistinctResults, map, uniqueResult |
Methods inherited from class com.mysema.query.QueryBase |
---|
addToProjection, getMetadata, groupBy, having, limit, offset, orderBy, restrict, where |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractJPAQuery(QueryMetadata md, javax.persistence.EntityManager em, HQLTemplates patterns)
Method Detail |
---|
public long count()
Projectable
public javax.persistence.Query createQuery(Expr<?> expr)
expr
-
public javax.persistence.Query createQuery(Expr<?> expr1, Expr<?> expr2, Expr<?>... rest)
expr
-
public Iterator<Object[]> iterate(Expr<?> first, Expr<?> second, Expr<?>... rest)
Projectable
public <RT> Iterator<RT> iterate(Expr<RT> projection)
Projectable
RT
- generic type of the Iteratpr
public List<Object[]> list(Expr<?> expr1, Expr<?> expr2, Expr<?>... rest)
Projectable
list
in interface Projectable
list
in class QueryBaseWithProjection<SubType extends AbstractJPAQuery<SubType>>
rest
- rest
public <RT> List<RT> list(Expr<RT> expr)
Projectable
list
in interface Projectable
list
in class QueryBaseWithProjection<SubType extends AbstractJPAQuery<SubType>>
RT
- generic type of the List
public <RT> SearchResults<RT> listResults(Expr<RT> expr)
Projectable
public <RT> RT uniqueResult(Expr<RT> expr)
Projectable
uniqueResult
in interface Projectable
uniqueResult
in class QueryBaseWithProjection<SubType extends AbstractJPAQuery<SubType>>
RT
- return type
protected void logQuery(String queryString)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |