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

public final class HibernateQuery
extends AbstractHibernateQuery<HibernateQuery>
implements HQLQuery

HibernateQuery is the default implementation of the HQLQuery 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)
           
protected HibernateQuery(SessionHolder session, JPQLTemplates templates, QueryMetadata metadata)
           
  HibernateQuery(org.hibernate.Session session, JPQLTemplates templates)
          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.hql.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.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

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,
                      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)
Parameters:
session -
templates -

HibernateQuery

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