T
- result typepublic class JPAQuery<T> extends AbstractJPAQuery<T,JPAQuery<T>>
JPAQuery
is the default implementation of the JPQLQuery
interface for JPAentityManager, flushMode, hints, lockMode, projection, queryHandler
queryMixin
MDC_PARAMETERS, MDC_QUERY
Constructor and Description |
---|
JPAQuery()
Creates a new detached query
The query can be attached via the clone method
|
JPAQuery(javax.persistence.EntityManager em)
Creates a new EntityManager bound query
|
JPAQuery(javax.persistence.EntityManager em,
JPQLTemplates templates)
Creates a new query
|
JPAQuery(javax.persistence.EntityManager em,
JPQLTemplates templates,
QueryMetadata metadata)
Creates a new query
|
JPAQuery(javax.persistence.EntityManager em,
QueryMetadata metadata)
Creates a new EntityManager bound query
|
Modifier and Type | Method and Description |
---|---|
JPAQuery<T> |
clone(javax.persistence.EntityManager entityManager)
Clone the state of this query to a new instance with the given EntityManager
|
JPAQuery<T> |
clone(javax.persistence.EntityManager entityManager,
JPQLTemplates templates)
Clone the state of this query to a new instance with the given EntityManager
and the specified templates
|
JPAQuery<Tuple> |
select(Expression<?>... exprs)
Change the projection of this query
|
<U> JPAQuery<U> |
select(Expression<U> expr)
Change the projection of this query
|
cleanupMDC, clone, clone, createQuery, createSerializer, fetch, fetchCount, fetchOne, fetchResults, iterate, logQuery, reset, setFlushMode, setHint, setLockMode
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
transform
fetchFirst
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 JPAQuery()
public JPAQuery(javax.persistence.EntityManager em)
em
- entity managerpublic JPAQuery(javax.persistence.EntityManager em, QueryMetadata metadata)
em
- entity managermetadata
- query metadatapublic JPAQuery(javax.persistence.EntityManager em, JPQLTemplates templates)
em
- entity managertemplates
- templatespublic JPAQuery(javax.persistence.EntityManager em, JPQLTemplates templates, QueryMetadata metadata)
em
- entity managertemplates
- templatesmetadata
- query metadatapublic JPAQuery<T> clone(javax.persistence.EntityManager entityManager, JPQLTemplates templates)
AbstractJPAQuery
clone
in class AbstractJPAQuery<T,JPAQuery<T>>
entityManager
- entity managertemplates
- templatespublic JPAQuery<T> clone(javax.persistence.EntityManager entityManager)
AbstractJPAQuery
clone
in class AbstractJPAQuery<T,JPAQuery<T>>
entityManager
- entity managerpublic <U> JPAQuery<U> select(Expression<U> expr)
FetchableQuery
expr
- new projectionpublic JPAQuery<Tuple> select(Expression<?>... exprs)
FetchableQuery
exprs
- new projectionCopyright © 2007–2016 Querydsl. All rights reserved.