public class JPAQuery<T> extends AbstractJPAQuery<T,JPAQuery<T>>
JPAQuery is the default implementation of the JPQLQuery interface for JPAentityManager, flushMode, hints, lockMode, projection, queryHandlerqueryMixinMDC_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) |
<U> JPAQuery<U> |
select(Expression<U> expr) |
cleanupMDC, clone, clone, createQuery, createSerializer, fetch, fetchCount, fetchOne, fetchResults, iterate, logQuery, reset, setFlushMode, setHint, setLockModefetchAll, 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, toStringaccept, contains, contains, eq, eq, exists, getMetadata, getType, goe, goe, gt, gt, hashCode, loe, loe, lt, lt, ne, ne, notExistsequals, fetchFirst, transform, uniqueResultdistinct, groupBy, groupBy, having, having, limit, offset, orderBy, orderBy, restrict, set, where, wherefinalize, getClass, notify, notifyAll, wait, wait, waittransformfetchFirstdistinct, limit, offset, orderBy, restrict, setwherecontains, contains, eq, eq, exists, goe, goe, gt, gt, loe, loe, lt, lt, ne, ne, notExistsgetMetadataaccept, getTypepublic 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 - temoplatesmetadata - query metadatapublic JPAQuery<T> clone(javax.persistence.EntityManager entityManager, JPQLTemplates templates)
AbstractJPAQueryclone in class AbstractJPAQuery<T,JPAQuery<T>>entityManager - entity managertemplates - templatespublic JPAQuery<T> clone(javax.persistence.EntityManager entityManager)
AbstractJPAQueryclone in class AbstractJPAQuery<T,JPAQuery<T>>entityManager - entity managerpublic <U> JPAQuery<U> select(Expression<U> expr)
public JPAQuery<Tuple> select(Expression<?>... exprs)
Copyright © 2007–2015 Mysema Ltd. All rights reserved.