|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mysema.query.support.QueryBase<Q>
com.mysema.query.support.ProjectableQuery<Q>
com.mysema.query.hql.HQLQueryBase<Q>
com.mysema.query.hql.jpa.AbstractJPAQuery<Q>
Q - public abstract class AbstractJPAQuery<Q extends AbstractJPAQuery<Q>>
Abstract base class for JPA API based implementations of the HQLQuery interface
| Constructor Summary | |
|---|---|
AbstractJPAQuery(javax.persistence.EntityManager em)
|
|
AbstractJPAQuery(JPASessionHolder sessionHolder,
HQLTemplates patterns,
QueryMetadata metadata)
|
|
| 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<?>[] args)
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 |
|
com.mysema.commons.lang.CloseableIterator<Object[]> |
iterate(Expr<?>[] args)
iterate over the results for the given projection |
|
|
iterate(Expr<RT> projection)
iterate over the results for the given projection |
|
List<Object[]> |
list(Expr<?>[] args)
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 |
|---|
fetch, fetchAll, from, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, getConstants, getMetadata, getQueryMixin, getTemplates, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, reset, toCountRowsString, toQueryString, toString, with |
| Methods inherited from class com.mysema.query.support.ProjectableQuery |
|---|
countDistinct, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, listDistinct, listDistinct, listDistinct, listDistinctResults, map, uniqueResult, uniqueResult |
| Methods inherited from class com.mysema.query.support.QueryBase |
|---|
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(javax.persistence.EntityManager em)
public AbstractJPAQuery(JPASessionHolder sessionHolder,
HQLTemplates patterns,
QueryMetadata metadata)
| 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 javax.persistence.Query createQuery(Expr<?>[] args)
args -
public com.mysema.commons.lang.CloseableIterator<Object[]> iterate(Expr<?>[] args)
Projectable
public <RT> com.mysema.commons.lang.CloseableIterator<RT> iterate(Expr<RT> projection)
Projectable
RT - generic type of the Iteratpr
public List<Object[]> list(Expr<?>[] args)
Projectable
list in interface Projectablelist in class ProjectableQuery<Q extends AbstractJPAQuery<Q>>public <RT> List<RT> list(Expr<RT> expr)
Projectable
list in interface Projectablelist in class ProjectableQuery<Q extends AbstractJPAQuery<Q>>RT - generic type of the List
public <RT> SearchResults<RT> listResults(Expr<RT> expr)
Projectable
protected void logQuery(String queryString)
public <RT> RT uniqueResult(Expr<RT> expr)
Projectable
uniqueResult in interface ProjectableuniqueResult in class ProjectableQuery<Q extends AbstractJPAQuery<Q>>RT - return type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||