com.mysema.query.hql.jpa
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.hql.HQLQueryBase<Q>
              extended by com.mysema.query.hql.jpa.AbstractJPAQuery<JPAQuery>
                  extended by com.mysema.query.hql.jpa.JPAQuery
All Implemented Interfaces:
HQLQuery, Projectable, Query<HQLQuery>

public final class JPAQuery
extends AbstractJPAQuery<JPAQuery>
implements HQLQuery

JPAQuery is the default implementation of the HQLQuery 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
protected JPAQuery(JPASessionHolder session, JPQLTemplates templates, QueryMetadata metadata)
           
 
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.hql.jpa.AbstractJPAQuery
count, createQuery, createQuery, createQuery, iterate, iterate, list, list, listResults, logQuery, uniqueResult
 
Methods inherited from class com.mysema.query.hql.HQLQueryBase
buildQueryString, 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, 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, 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.hql.HQLQuery
fetch, fetchAll, 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
groupBy, having, limit, offset, orderBy, restrict, set, where
 
Methods inherited from interface com.mysema.query.Projectable
count, countDistinct, iterate, iterate, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, list, list, listDistinct, listDistinct, listDistinct, listDistinctResults, listResults, map, 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,
                JPQLTemplates patterns)
Creates a new query

Parameters:
entityManager -
patterns -

JPAQuery

protected JPAQuery(JPASessionHolder session,
                   JPQLTemplates templates,
                   QueryMetadata metadata)
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-2010 Mysema Ltd. All Rights Reserved.