Q - public abstract class AbstractJPAQuery<Q extends AbstractJPAQuery<Q>> extends JPAQueryBase<Q>
| Modifier and Type | Field and Description | 
|---|---|
| protected javax.persistence.EntityManager | entityManager | 
| protected javax.persistence.FlushModeType | flushMode | 
| protected com.google.common.collect.Multimap<String,Object> | hints | 
| protected javax.persistence.LockModeType | lockMode | 
| protected FactoryExpression<?> | projection | 
| protected QueryHandler | queryHandler | 
queryMixinMDC_PARAMETERS, MDC_QUERY| Constructor and Description | 
|---|
| AbstractJPAQuery(javax.persistence.EntityManager em) | 
| AbstractJPAQuery(javax.persistence.EntityManager em,
                JPQLTemplates templates,
                QueryMetadata metadata) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | cleanupMDC() | 
| Q | clone()Clone the state of this query to a new instance | 
| abstract Q | clone(javax.persistence.EntityManager entityManager)Clone the state of this query to a new instance with the given EntityManager | 
| abstract Q | clone(javax.persistence.EntityManager entityManager,
     JPQLTemplates templates)Clone the state of this query to a new instance with the given EntityManager
 and the specified templates | 
| protected void | clone(Q query) | 
| 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 | 
| protected JPQLSerializer | createSerializer() | 
| com.mysema.commons.lang.CloseableIterator<Tuple> | iterate(Expression<?>... args)iterate over the results for the given projection | 
| <RT> com.mysema.commons.lang.CloseableIterator<RT> | iterate(Expression<RT> expr)iterate over the results for the given projection | 
| List<Tuple> | list(Expression<?>... args)list the results for the given projection
 
 An empty list is returned for no results. | 
| <RT> List<RT> | list(Expression<RT> expr)list the results for the given projection
 
 An empty list is returned for no results. | 
| SearchResults<Tuple> | listResults(Expression<?>... args)list the results for the given projection | 
| <RT> SearchResults<RT> | listResults(Expression<RT> expr)list the results for the given projection | 
| protected void | logQuery(String queryString,
        Map<Object,String> parameters) | 
| protected void | reset() | 
| Q | setFlushMode(javax.persistence.FlushModeType flushMode) | 
| Q | setHint(String name,
       Object value) | 
| Q | setLockMode(javax.persistence.LockModeType lockMode) | 
| <RT> RT | uniqueResult(Expression<RT> expr)return a unique result for the given projection or null if no result is found | 
exists, fetch, fetchAll, from, from, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, getMetadata, getTemplates, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, on, on, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, serialize, serialize, toString, uniqueResultmap, notExists, singleResult, singleResult, transform, uniqueResultdistinct, equals, groupBy, groupBy, hashCode, having, having, limit, offset, orderBy, orderBy, restrict, set, where, wherefinalize, getClass, notify, notifyAll, wait, wait, waitdistinct, limit, offset, orderBy, restrict, setwheremap, notExists, singleResult, singleResult, transformprotected final javax.persistence.EntityManager entityManager
protected final QueryHandler queryHandler
@Nullable protected javax.persistence.LockModeType lockMode
@Nullable protected javax.persistence.FlushModeType flushMode
@Nullable protected FactoryExpression<?> projection
public AbstractJPAQuery(javax.persistence.EntityManager em)
public AbstractJPAQuery(javax.persistence.EntityManager em,
                        JPQLTemplates templates,
                        QueryMetadata metadata)
public long count()
Projectablepublic javax.persistence.Query createQuery(Expression<?> expr)
expr - public javax.persistence.Query createQuery(Expression<?> expr1, Expression<?> expr2, Expression<?>... rest)
expr1 - expr2 - rest - public javax.persistence.Query createQuery(Expression<?>[] args)
args - public com.mysema.commons.lang.CloseableIterator<Tuple> iterate(Expression<?>... args)
Projectablepublic <RT> com.mysema.commons.lang.CloseableIterator<RT> iterate(Expression<RT> expr)
ProjectableRT - generic type of the Iteratorpublic List<Tuple> list(Expression<?>... args)
Projectablelist in interface Projectablelist in class ProjectableQuery<Q extends AbstractJPAQuery<Q>>public <RT> List<RT> list(Expression<RT> expr)
Projectablelist in interface Projectablelist in class ProjectableQuery<Q extends AbstractJPAQuery<Q>>RT - generic type of the Listpublic SearchResults<Tuple> listResults(Expression<?>... args)
Projectablepublic <RT> SearchResults<RT> listResults(Expression<RT> expr)
Projectableprotected void cleanupMDC()
protected void reset()
reset in class JPAQueryBase<Q extends AbstractJPAQuery<Q>>public <RT> RT uniqueResult(Expression<RT> expr)
ProjectableThere is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
RT - return typepublic Q setLockMode(javax.persistence.LockModeType lockMode)
public Q setFlushMode(javax.persistence.FlushModeType flushMode)
protected JPQLSerializer createSerializer()
createSerializer in class JPAQueryBase<Q extends AbstractJPAQuery<Q>>protected void clone(Q query)
public abstract Q clone(javax.persistence.EntityManager entityManager)
entityManager - public abstract Q clone(javax.persistence.EntityManager entityManager, JPQLTemplates templates)
entityManager - templates - public Q clone()
clone in class JPAQueryBase<Q extends AbstractJPAQuery<Q>>Copyright © 2007–2015 Querydsl. All rights reserved.