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>,java.io.Serializable
public class JPAQuery<T> extends AbstractJPAQuery<T,JPAQuery<T>>
JPAQueryis the default implementation of theJPQLQueryinterface for JPA- Author:
- tiwe
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.querydsl.jpa.impl.AbstractJPAQuery
entityManager, flushMode, hints, lockMode, projection, queryHandler
-
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 JPAQuery()Creates a new detached query The query can be attached via the clone methodJPAQuery(jakarta.persistence.EntityManager em)Creates a new EntityManager bound queryJPAQuery(jakarta.persistence.EntityManager em, QueryMetadata metadata)Creates a new EntityManager bound queryJPAQuery(jakarta.persistence.EntityManager em, JPQLTemplates templates)Creates a new queryJPAQuery(jakarta.persistence.EntityManager em, JPQLTemplates templates, QueryMetadata metadata)Creates a new query
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JPAQuery<T>clone(jakarta.persistence.EntityManager entityManager)Clone the state of this query to a new instance with the given EntityManagerJPAQuery<T>clone(jakarta.persistence.EntityManager entityManager, JPQLTemplates templates)Clone the state of this query to a new instance with the given EntityManager and the specified templatesJPAQuery<Tuple>select(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, 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
fetchFirst
-
Methods inherited from interface com.querydsl.core.FetchableQuery
transform
-
Methods inherited from interface com.querydsl.core.FilteredClause
where
-
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
-
JPAQuery
public JPAQuery()
Creates a new detached query The query can be attached via the clone method
-
JPAQuery
public JPAQuery(jakarta.persistence.EntityManager em)
Creates a new EntityManager bound query- Parameters:
em- entity manager
-
JPAQuery
public JPAQuery(jakarta.persistence.EntityManager em, QueryMetadata metadata)Creates a new EntityManager bound query- Parameters:
em- entity managermetadata- query metadata
-
JPAQuery
public JPAQuery(jakarta.persistence.EntityManager em, JPQLTemplates templates)Creates a new query- Parameters:
em- entity managertemplates- templates
-
JPAQuery
public JPAQuery(jakarta.persistence.EntityManager em, JPQLTemplates templates, QueryMetadata metadata)Creates a new query- Parameters:
em- entity managertemplates- templatesmetadata- query metadata
-
-
Method Detail
-
clone
public JPAQuery<T> clone(jakarta.persistence.EntityManager entityManager, JPQLTemplates templates)
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
public JPAQuery<T> clone(jakarta.persistence.EntityManager entityManager)
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
public <U> JPAQuery<U> select(Expression<U> expr)
-
select
public JPAQuery<Tuple> select(Expression<?>... exprs)
-
-