com.mysema.query.jpa.hibernate
Class HibernateQuery

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.hibernate.AbstractHibernateQuery<HibernateQuery>
                  extended by com.mysema.query.jpa.hibernate.HibernateQuery
All Implemented Interfaces:
FilteredClause<JPQLQuery>, JPQLCommonQuery<JPQLQuery>, JPQLQuery, Projectable, Query<JPQLQuery>

public final class HibernateQuery
extends AbstractHibernateQuery<HibernateQuery>
implements JPQLQuery

HibernateQuery is the default implementation of the JPQLQuery interface for Hibernate

Author:
tiwe

Constructor Summary
  HibernateQuery()
          Creates a detached query The query can be attached via the clone method
  HibernateQuery(org.hibernate.Session session)
          Creates a new Session bound query
  HibernateQuery(SessionHolder session, JPQLTemplates templates)
          Creates a new Session bound query
protected HibernateQuery(SessionHolder session, JPQLTemplates templates, QueryMetadata metadata)
          Creates a new Session bound query
  HibernateQuery(org.hibernate.Session session, JPQLTemplates templates)
          Creates a new Session bound query
  HibernateQuery(org.hibernate.Session session, QueryMetadata metadata)
          Creates a new Session bound query
  HibernateQuery(org.hibernate.StatelessSession session)
          Creates a new Stateless session bound query
 
Method Summary
 HibernateQuery clone(org.hibernate.Session session)
          Clone the state of this query to a new HibernateQuery instance with the given Session
 
Methods inherited from class com.mysema.query.jpa.hibernate.AbstractHibernateQuery
count, createQuery, createQuery, createQuery, iterate, iterate, list, list, listResults, logQuery, scroll, scroll, scroll, setCacheable, setCacheRegion, setFetchSize, setLockMode, setReadOnly, setTimeout, 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

HibernateQuery

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


HibernateQuery

public HibernateQuery(org.hibernate.Session session)
Creates a new Session bound query

Parameters:
session -

HibernateQuery

public HibernateQuery(org.hibernate.Session session,
                      QueryMetadata metadata)
Creates a new Session bound query

Parameters:
session -

HibernateQuery

public HibernateQuery(org.hibernate.Session session,
                      JPQLTemplates templates)
Creates a new Session bound query

Parameters:
session -
templates -

HibernateQuery

public HibernateQuery(org.hibernate.StatelessSession session)
Creates a new Stateless session bound query

Parameters:
session -

HibernateQuery

public HibernateQuery(SessionHolder session,
                      JPQLTemplates templates)
Creates a new Session bound query

Parameters:
session -
templates -

HibernateQuery

protected HibernateQuery(SessionHolder session,
                         JPQLTemplates templates,
                         QueryMetadata metadata)
Creates a new Session bound query

Parameters:
session -
templates -
metadata -
Method Detail

clone

public HibernateQuery clone(org.hibernate.Session session)
Clone the state of this query to a new HibernateQuery instance with the given Session

Parameters:
session -
Returns:


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