com.mysema.query.jpa.hibernate
Class HibernateQuery
java.lang.Object
com.mysema.query.support.QueryBase<Q>
com.mysema.query.support.ProjectableQuery<Q>
com.mysema.query.jpa.JPQLQueryBase<Q>
com.mysema.query.jpa.hibernate.AbstractHibernateQuery<HibernateQuery>
com.mysema.query.jpa.hibernate.HibernateQuery
- All Implemented Interfaces:
- FilteredClause<JPQLQuery>, JPQLCommonQuery<JPQLQuery>, JPQLQuery, Projectable, Query<JPQLQuery>, SimpleQuery<JPQLQuery>
public final class HibernateQuery
- extends AbstractHibernateQuery<HibernateQuery>
- implements JPQLQuery
HibernateQuery is the default implementation of the JPQLQuery interface for Hibernate
- Author:
- tiwe
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, setComment, setFetchSize, setFlushMode, setLockMode, setReadOnly, setTimeout, 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 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.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 |
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
public HibernateQuery(SessionHolder session,
JPQLTemplates templates,
QueryMetadata metadata)
- Creates a new Session bound query
- Parameters:
session
- templates
- metadata
-
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-2012 Mysema Ltd. All Rights Reserved.