com.mysema.query.jpa.impl
Class JPAQuery

java.lang.Object
  extended by com.mysema.query.support.QueryBase<Q>
      extended by com.mysema.query.support.ProjectableQuery<Q>
          extended by com.mysema.query.jpa.JPQLQueryBase<Q>
              extended by com.mysema.query.jpa.impl.AbstractJPAQuery<JPAQuery>
                  extended by com.mysema.query.jpa.impl.JPAQuery
All Implemented Interfaces:
FilteredClause<JPQLQuery>, JPQLCommonQuery<JPQLQuery>, JPQLQuery, Projectable, Query<JPQLQuery>, SimpleQuery<JPQLQuery>

public final class JPAQuery
extends AbstractJPAQuery<JPAQuery>
implements JPQLQuery

JPAQuery is the default implementation of the JPQLQuery interface for JPA

Author:
tiwe

Field Summary
 
Fields inherited from class com.mysema.query.jpa.impl.AbstractJPAQuery
factoryExpressionUsed, flushMode, hints, lockMode
 
Fields inherited from class com.mysema.query.jpa.JPQLQueryBase
entityManager
 
Constructor Summary
JPAQuery()
          Creates a new detached query The query can be attached via the clone method
JPAQuery(javax.persistence.EntityManager em)
          Creates a new EntityManager bound query
JPAQuery(javax.persistence.EntityManager em, JPQLTemplates patterns)
          Creates a new query
JPAQuery(javax.persistence.EntityManager em, JPQLTemplates templates, QueryMetadata metadata)
          Creates a new query
JPAQuery(javax.persistence.EntityManager em, QueryMetadata metadata)
          Creates a new EntityManager bound query
 
Method Summary
 JPAQuery clone(javax.persistence.EntityManager entityManager)
          Clone the state of this query to a new JPAQuery instance with the given EntityManager
 
Methods inherited from class com.mysema.query.jpa.impl.AbstractJPAQuery
count, createQuery, createQuery, createQuery, iterate, iterate, list, list, listResults, logQuery, setFlushMode, setHint, setLockMode, uniqueResult, uniqueResult
 
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
 
Methods inherited from interface com.mysema.query.jpa.JPQLQuery
fetch, fetchAll
 
Methods inherited from interface com.mysema.query.jpa.JPQLCommonQuery
from, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, with
 
Methods inherited from interface com.mysema.query.Query
groupBy, having
 
Methods inherited from interface com.mysema.query.SimpleQuery
distinct, limit, offset, orderBy, restrict, set
 
Methods inherited from interface com.mysema.query.FilteredClause
where
 
Methods inherited from interface com.mysema.query.Projectable
count, countDistinct, exists, iterate, iterate, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, list, list, listDistinct, listDistinct, listDistinct, listDistinctResults, listResults, map, notExists, singleResult, singleResult, singleResult, transform, uniqueResult, uniqueResult, uniqueResult
 

Constructor Detail

JPAQuery

public JPAQuery()
Creates a new detached query The query can be attached via the clone method


JPAQuery

public JPAQuery(javax.persistence.EntityManager em)
Creates a new EntityManager bound query

Parameters:
em -

JPAQuery

public JPAQuery(javax.persistence.EntityManager em,
                QueryMetadata metadata)
Creates a new EntityManager bound query

Parameters:
em -

JPAQuery

public JPAQuery(javax.persistence.EntityManager em,
                JPQLTemplates patterns)
Creates a new query

Parameters:
em -
patterns -

JPAQuery

public JPAQuery(javax.persistence.EntityManager em,
                JPQLTemplates templates,
                QueryMetadata metadata)
Creates a new query

Parameters:
em -
templates -
metadata -
Method Detail

clone

public JPAQuery clone(javax.persistence.EntityManager entityManager)
Clone the state of this query to a new JPAQuery instance with the given EntityManager

Parameters:
entityManager -
Returns:


Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.