|
||||||||||
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.jpa.JPQLQueryBase<Q>
com.mysema.query.jpa.impl.AbstractJPAQuery<Q>
Q
- public abstract class AbstractJPAQuery<Q extends AbstractJPAQuery<Q>>
Abstract base class for JPA API based implementations of the JPQLQuery interface
Field Summary | |
---|---|
protected boolean |
factoryExpressionUsed
|
protected javax.persistence.FlushModeType |
flushMode
|
protected Map<String,Object> |
hints
|
protected javax.persistence.LockModeType |
lockMode
|
Fields inherited from class com.mysema.query.jpa.JPQLQueryBase |
---|
entityManager |
Constructor Summary | |
---|---|
AbstractJPAQuery(javax.persistence.EntityManager em)
|
|
AbstractJPAQuery(javax.persistence.EntityManager em,
JPQLTemplates patterns,
QueryMetadata metadata)
|
Method Summary | ||
---|---|---|
long |
count()
return the amount of matched rows |
|
javax.persistence.Query |
createQuery(Expression<?> expr)
Expose the original JPA query for the given projection |
|
javax.persistence.Query |
createQuery(Expression<?>[] args)
Expose the original JPA query for the given projection |
|
javax.persistence.Query |
createQuery(Expression<?> expr1,
Expression<?> expr2,
Expression<?>... rest)
Expose the original JPA query for the given projection |
|
com.mysema.commons.lang.CloseableIterator<Object[]> |
iterate(Expression<?>[] args)
iterate over the results for the given projection |
|
|
iterate(Expression<RT> projection)
iterate over the results for the given projection |
|
List<Object[]> |
list(Expression<?>[] args)
list the results for the given projection An empty list is returned for no results. |
|
|
list(Expression<RT> expr)
list the results for the given projection An empty list is returned for no results. |
|
|
listResults(Expression<RT> expr)
list the results for the given projection |
|
protected void |
logQuery(String queryString)
|
|
Q |
setFlushMode(javax.persistence.FlushModeType flushMode)
|
|
Q |
setHint(String name,
Object value)
|
|
Q |
setLockMode(javax.persistence.LockModeType lockMode)
|
|
Object[] |
uniqueResult(Expression<?>[] args)
return a unique result for the given projection or null if no result is found |
|
|
uniqueResult(Expression<RT> expr)
return a unique result for the given projection or null if no result is found |
Methods inherited from class com.mysema.query.jpa.JPQLQueryBase |
---|
buildQueryString, exists, 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, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, setConstants, toCountRowsString, toQueryString, toString, with |
Methods inherited from class com.mysema.query.support.ProjectableQuery |
---|
countDistinct, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, listDistinct, listDistinct, listDistinct, listDistinctResults, map, notExists, singleResult, singleResult, singleResult, transform, uniqueResult, uniqueResult |
Methods inherited from class com.mysema.query.support.QueryBase |
---|
distinct, equals, groupBy, hashCode, having, limit, offset, orderBy, restrict, set, where |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final Map<String,Object> hints
@Nullable protected javax.persistence.LockModeType lockMode
@Nullable protected javax.persistence.FlushModeType flushMode
protected boolean factoryExpressionUsed
Constructor Detail |
---|
public AbstractJPAQuery(javax.persistence.EntityManager em)
public AbstractJPAQuery(javax.persistence.EntityManager em, JPQLTemplates patterns, QueryMetadata metadata)
Method Detail |
---|
public long count()
Projectable
public javax.persistence.Query createQuery(Expression<?> expr)
expr
-
public javax.persistence.Query createQuery(Expression<?> expr1, Expression<?> expr2, Expression<?>... rest)
expr
-
public javax.persistence.Query createQuery(Expression<?>[] args)
args
-
public com.mysema.commons.lang.CloseableIterator<Object[]> iterate(Expression<?>[] args)
Projectable
public <RT> com.mysema.commons.lang.CloseableIterator<RT> iterate(Expression<RT> projection)
Projectable
RT
- generic type of the Iterator
public List<Object[]> list(Expression<?>[] args)
Projectable
list
in interface Projectable
list
in class ProjectableQuery<Q extends AbstractJPAQuery<Q>>
public <RT> List<RT> list(Expression<RT> expr)
Projectable
list
in interface Projectable
list
in class ProjectableQuery<Q extends AbstractJPAQuery<Q>>
RT
- generic type of the List
public <RT> SearchResults<RT> listResults(Expression<RT> expr)
Projectable
protected void logQuery(String queryString)
public <RT> RT uniqueResult(Expression<RT> expr)
Projectable
There is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
RT
- return type
public Object[] uniqueResult(Expression<?>[] args)
Projectable
There is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
public Q setLockMode(javax.persistence.LockModeType lockMode)
public Q setFlushMode(javax.persistence.FlushModeType flushMode)
public Q setHint(String name, Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |