T
- result typepublic class HibernateQuery<T> extends AbstractHibernateQuery<T,HibernateQuery<T>> implements JPQLQuery<T>
HibernateQuery
is the default implementation of the JPQLQuery interface for Hibernatecacheable, cacheRegion, comment, fetchSize, flushMode, lockModes, readOnly, timeout
queryMixin
MDC_PARAMETERS, MDC_QUERY
Constructor and Description |
---|
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
|
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
|
Modifier and Type | Method and Description |
---|---|
protected HibernateQuery<T> |
clone(SessionHolder sessionHolder) |
HibernateQuery<Tuple> |
select(Expression<?>... exprs)
Change the projection of this query
|
<U> HibernateQuery<U> |
select(Expression<U> expr)
Change the projection of this query
|
cleanupMDC, clone, clone, clone, clone, createQuery, createSerializer, fetch, fetchCount, fetchOne, fetchResults, iterate, logQuery, reset, scroll, setCacheable, setCacheRegion, setComment, setFetchSize, setFlushMode, setLockMode, setReadOnly, setTimeout
fetchAll, fetchJoin, from, from, from, getTemplates, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, on, on, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, serialize, serialize, toString
accept, contains, contains, eq, eq, exists, getMetadata, getType, goe, goe, gt, gt, hashCode, in, in, isNotNull, isNull, loe, loe, lt, lt, ne, ne, notExists
equals, fetchFirst, transform, uniqueResult
distinct, groupBy, groupBy, having, having, limit, offset, orderBy, orderBy, restrict, set, where, where
finalize, getClass, notify, notifyAll, wait, wait, wait
fetchAll, fetchJoin, from, from, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, on, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin
transform
fetch, fetchCount, fetchFirst, fetchOne, fetchResults, iterate
distinct, limit, offset, orderBy, restrict, set
where
contains, contains, eq, eq, exists, goe, goe, gt, gt, in, in, isNotNull, isNull, loe, loe, lt, lt, ne, ne, notExists
getMetadata
accept, getType
public HibernateQuery()
public HibernateQuery(org.hibernate.Session session)
session
- sessionpublic HibernateQuery(org.hibernate.Session session, QueryMetadata metadata)
session
- sessionpublic HibernateQuery(org.hibernate.Session session, JPQLTemplates templates)
session
- sessiontemplates
- templatespublic HibernateQuery(org.hibernate.StatelessSession session)
session
- sessionpublic HibernateQuery(SessionHolder session, JPQLTemplates templates)
session
- sessiontemplates
- templatespublic HibernateQuery(SessionHolder session, JPQLTemplates templates, QueryMetadata metadata)
session
- sessiontemplates
- templatesmetadata
- query metadataprotected HibernateQuery<T> clone(SessionHolder sessionHolder)
clone
in class AbstractHibernateQuery<T,HibernateQuery<T>>
public <U> HibernateQuery<U> select(Expression<U> expr)
FetchableQuery
public HibernateQuery<Tuple> select(Expression<?>... exprs)
FetchableQuery
Copyright © 2007–2016 Querydsl. All rights reserved.