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>

public final class JPAQuery
extends AbstractJPAQuery<JPAQuery>
implements JPQLQuery

JPAQuery is the default implementation of the JPQLQuery interface for JPA

Author:
tiwe

Constructor Summary
  JPAQuery()
          Creates a new detached query The query can be attached via the clone method
  JPAQuery(javax.persistence.EntityManager entityManager)
          Creates a new EntityManager bound query
  JPAQuery(javax.persistence.EntityManager entityManager, JPQLTemplates patterns)
          Creates a new query
  JPAQuery(javax.persistence.EntityManager entityManager, QueryMetadata metadata)
          Creates a new EntityManager bound query
protected JPAQuery(JPASessionHolder session, JPQLTemplates templates, QueryMetadata metadata)
          Creates a new 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, setHint, setLockMode, 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, setConstants, toCountRowsString, toQueryString, toString, with
 
Methods inherited from class com.mysema.query.support.ProjectableQuery
countDistinct, getUniqueResult, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, listDistinct, listDistinct, listDistinct, listDistinctResults, map, notExists, uniqueResult, uniqueResult
 
Methods inherited from class com.mysema.query.support.QueryBase
distinct, groupBy, having, limit, offset, orderBy, restrict, set, where
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, 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, with
 
Methods inherited from interface com.mysema.query.Query
distinct, groupBy, having, 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, 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 entityManager)
Creates a new EntityManager bound query

Parameters:
entityManager -

JPAQuery

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

Parameters:
entityManager -

JPAQuery

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

Parameters:
entityManager -
patterns -

JPAQuery

protected JPAQuery(JPASessionHolder session,
                   JPQLTemplates templates,
                   QueryMetadata metadata)
Creates a new query

Parameters:
session -
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-2011 Mysema Ltd. All Rights Reserved.