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>,Serializable
public class HibernateQuery<T>
extends AbstractHibernateQuery<T,HibernateQuery<T>>
implements JPQLQuery<T>
HibernateQuery is the default implementation of the JPQLQuery interface for Hibernate- Author:
- tiwe
- See Also:
-
Field Summary
Fields inherited from class com.querydsl.jpa.hibernate.AbstractHibernateQuery
cacheable, cacheRegion, comment, fetchSize, flushMode, lockModes, readOnly, timeoutFields inherited from class com.querydsl.jpa.JPAQueryBase
queryMixinFields inherited from class com.querydsl.core.support.QueryBase
MDC_PARAMETERS, MDC_QUERY -
Constructor Summary
ConstructorsConstructorDescriptionCreates 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
Modifier and TypeMethodDescriptionprotected HibernateQuery<T>clone(SessionHolder sessionHolder) 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, streamMethods inherited from class com.querydsl.jpa.JPAQueryBase
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, toStringMethods 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, notExistsMethods inherited from class com.querydsl.core.support.FetchableQueryBase
equals, fetchFirst, transform, uniqueResultMethods inherited from class com.querydsl.core.support.QueryBase
distinct, groupBy, groupBy, having, having, limit, offset, orderBy, orderBy, restrict, set, where, whereMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.querydsl.core.types.Expression
accept, getTypeMethods 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, notExistsMethods inherited from interface com.querydsl.core.Fetchable
fetch, fetchCount, fetchFirst, fetchOne, fetchResults, iterate, streamMethods inherited from interface com.querydsl.core.FetchableQuery
transformMethods inherited from interface com.querydsl.core.FilteredClause
whereMethods inherited from interface com.querydsl.jpa.JPQLQuery
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, rightJoinMethods inherited from interface com.querydsl.core.SimpleQuery
distinct, limit, offset, orderBy, restrict, setMethods inherited from interface com.querydsl.core.types.SubQueryExpression
getMetadata
-
Constructor Details
-
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
Creates a new Session bound query- Parameters:
session- session
-
HibernateQuery
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
Creates a new Session bound query- Parameters:
session- sessiontemplates- templates
-
HibernateQuery
Creates a new Session bound query- Parameters:
session- sessiontemplates- templatesmetadata- query metadata
-
-
Method Details
-
clone
- Specified by:
clonein classAbstractHibernateQuery<T,HibernateQuery<T>>
-
select
-
select
-