Package com.querydsl.jpa.hibernate
Class HibernateQuery<T>
- java.lang.Object
-
- com.querydsl.core.support.QueryBase<Q>
-
- com.querydsl.core.support.FetchableQueryBase<T,Q>
-
- com.querydsl.core.support.FetchableSubQueryBase<T,Q>
-
- com.querydsl.jpa.JPAQueryBase<T,Q>
-
- com.querydsl.jpa.hibernate.AbstractHibernateQuery<T,HibernateQuery<T>>
-
- com.querydsl.jpa.hibernate.HibernateQuery<T>
-
- Type Parameters:
T- result type
- All Implemented Interfaces:
Fetchable<T>,FetchableQuery<T,JPQLQuery<T>>,FilteredClause<JPQLQuery<T>>,Query<JPQLQuery<T>>,SimpleQuery<JPQLQuery<T>>,ExtendedSubQuery<T>,Expression<T>,SubQueryExpression<T>,JPQLQuery<T>,java.io.Serializable
public class HibernateQuery<T> extends AbstractHibernateQuery<T,HibernateQuery<T>> implements JPQLQuery<T>
HibernateQueryis the default implementation of the JPQLQuery interface for Hibernate- Author:
- tiwe
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.querydsl.jpa.hibernate.AbstractHibernateQuery
cacheable, cacheRegion, comment, fetchSize, flushMode, lockModes, readOnly, timeout
-
Fields inherited from class com.querydsl.jpa.JPAQueryBase
queryMixin
-
Fields inherited from class com.querydsl.core.support.QueryBase
MDC_PARAMETERS, MDC_QUERY
-
-
Constructor Summary
Constructors Constructor Description HibernateQuery()Creates a detached query The query can be attached via the clone methodHibernateQuery(SessionHolder session, JPQLTemplates templates)Creates a new Session bound queryHibernateQuery(SessionHolder session, JPQLTemplates templates, QueryMetadata metadata)Creates a new Session bound queryHibernateQuery(org.hibernate.Session session)Creates a new Session bound queryHibernateQuery(org.hibernate.Session session, QueryMetadata metadata)Creates a new Session bound queryHibernateQuery(org.hibernate.Session session, JPQLTemplates templates)Creates a new Session bound queryHibernateQuery(org.hibernate.StatelessSession session)Creates a new Stateless session bound query
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HibernateQuery<T>clone(SessionHolder sessionHolder)HibernateQuery<Tuple>select(Expression<?>... exprs)<U> HibernateQuery<U>select(Expression<U> expr)-
Methods inherited from class com.querydsl.jpa.hibernate.AbstractHibernateQuery
clone, clone, clone, clone, createQuery, createSerializer, fetch, fetchCount, fetchOne, fetchResults, iterate, logQuery, reset, scroll, setCacheable, setCacheRegion, setComment, setFetchSize, setFlushMode, setLockMode, setReadOnly, setTimeout, stream
-
Methods inherited from class com.querydsl.jpa.JPAQueryBase
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
-
Methods inherited from class com.querydsl.core.support.FetchableSubQueryBase
accept, contains, contains, eq, eq, exists, getMetadata, getType, goe, goe, gt, gt, hashCode, in, in, isNotNull, isNull, loe, loe, lt, lt, ne, ne, notExists
-
Methods inherited from class com.querydsl.core.support.FetchableQueryBase
equals, fetchFirst, transform, uniqueResult
-
Methods inherited from class com.querydsl.core.support.QueryBase
distinct, groupBy, groupBy, having, having, limit, offset, orderBy, orderBy, restrict, set, where, where
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.querydsl.core.types.Expression
accept, getType
-
Methods inherited from interface com.querydsl.core.support.ExtendedSubQuery
contains, contains, eq, eq, exists, goe, goe, gt, gt, in, in, isNotNull, isNull, loe, loe, lt, lt, ne, ne, notExists
-
Methods inherited from interface com.querydsl.core.Fetchable
fetch, fetchCount, fetchFirst, fetchOne, fetchResults, iterate, stream
-
Methods inherited from interface com.querydsl.core.FetchableQuery
transform
-
Methods inherited from interface com.querydsl.core.FilteredClause
where
-
Methods inherited from interface com.querydsl.jpa.JPQLQuery
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
-
Methods inherited from interface com.querydsl.core.SimpleQuery
distinct, limit, offset, orderBy, restrict, set
-
Methods inherited from interface com.querydsl.core.types.SubQueryExpression
getMetadata
-
-
-
-
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- session
-
HibernateQuery
public HibernateQuery(org.hibernate.Session session, QueryMetadata metadata)Creates a new Session bound query- Parameters:
session- session
-
HibernateQuery
public HibernateQuery(org.hibernate.Session session, JPQLTemplates templates)Creates a new Session bound query- Parameters:
session- sessiontemplates- templates
-
HibernateQuery
public HibernateQuery(org.hibernate.StatelessSession session)
Creates a new Stateless session bound query- Parameters:
session- session
-
HibernateQuery
public HibernateQuery(SessionHolder session, JPQLTemplates templates)
Creates a new Session bound query- Parameters:
session- sessiontemplates- templates
-
HibernateQuery
public HibernateQuery(SessionHolder session, JPQLTemplates templates, QueryMetadata metadata)
Creates a new Session bound query- Parameters:
session- sessiontemplates- templatesmetadata- query metadata
-
-
Method Detail
-
clone
protected HibernateQuery<T> clone(SessionHolder sessionHolder)
- Specified by:
clonein classAbstractHibernateQuery<T,HibernateQuery<T>>
-
select
public <U> HibernateQuery<U> select(Expression<U> expr)
-
select
public HibernateQuery<Tuple> select(Expression<?>... exprs)
-
-