Package com.querydsl.jpa.impl
Class JPAQuery<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.impl.AbstractJPAQuery<T,JPAQuery<T>>
com.querydsl.jpa.impl.JPAQuery<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
JPAQuery is the default implementation of the JPQLQuery interface for JPA- Author:
- tiwe
- See Also:
-
Field Summary
Fields inherited from class com.querydsl.jpa.impl.AbstractJPAQuery
entityManager, flushMode, hints, lockMode, projection, queryHandlerFields inherited from class com.querydsl.jpa.JPAQueryBase
queryMixinFields inherited from class com.querydsl.core.support.QueryBase
MDC_PARAMETERS, MDC_QUERY -
Constructor Summary
ConstructorsConstructorDescriptionJPAQuery()Creates a new detached query The query can be attached via the clone methodJPAQuery(javax.persistence.EntityManager em) Creates a new EntityManager bound queryJPAQuery(javax.persistence.EntityManager em, QueryMetadata metadata) Creates a new EntityManager bound queryJPAQuery(javax.persistence.EntityManager em, JPQLTemplates templates) Creates a new queryJPAQuery(javax.persistence.EntityManager em, JPQLTemplates templates, QueryMetadata metadata) Creates a new query -
Method Summary
Modifier and TypeMethodDescriptionclone(javax.persistence.EntityManager entityManager) Clone the state of this query to a new instance with the given EntityManagerclone(javax.persistence.EntityManager entityManager, JPQLTemplates templates) Clone the state of this query to a new instance with the given EntityManager and the specified templatesselect(Expression<?>... exprs) <U> JPAQuery<U>select(Expression<U> expr) Methods inherited from class com.querydsl.jpa.impl.AbstractJPAQuery
clone, clone, createQuery, createQuery, createSerializer, fetch, fetchCount, fetchOne, fetchResults, iterate, logQuery, reset, setFlushMode, setHint, setLockMode, 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
fetchFirstMethods inherited from interface com.querydsl.core.FetchableQuery
transformMethods inherited from interface com.querydsl.core.FilteredClause
whereMethods inherited from interface com.querydsl.core.SimpleQuery
distinct, limit, offset, orderBy, restrict, setMethods inherited from interface com.querydsl.core.types.SubQueryExpression
getMetadata
-
Constructor Details
-
JPAQuery
public JPAQuery()Creates a new detached query The query can be attached via the clone method -
JPAQuery
public JPAQuery(javax.persistence.EntityManager em) Creates a new EntityManager bound query- Parameters:
em- entity manager
-
JPAQuery
Creates a new EntityManager bound query- Parameters:
em- entity managermetadata- query metadata
-
JPAQuery
Creates a new query- Parameters:
em- entity managertemplates- templates
-
JPAQuery
public JPAQuery(javax.persistence.EntityManager em, JPQLTemplates templates, QueryMetadata metadata) Creates a new query- Parameters:
em- entity managertemplates- templatesmetadata- query metadata
-
-
Method Details
-
clone
Description copied from class:AbstractJPAQueryClone the state of this query to a new instance with the given EntityManager and the specified templates- Specified by:
clonein classAbstractJPAQuery<T,JPAQuery<T>> - Parameters:
entityManager- entity managertemplates- templates- Returns:
- cloned query
-
clone
Description copied from class:AbstractJPAQueryClone the state of this query to a new instance with the given EntityManager- Specified by:
clonein classAbstractJPAQuery<T,JPAQuery<T>> - Parameters:
entityManager- entity manager- Returns:
- cloned query
-
select
-
select
-