T
- result typepublic class JPASQLQuery<T> extends AbstractJPASQLQuery<T,JPASQLQuery<T>>
JPASQLQuery
is an SQLQuery implementation that uses JPA Native SQL functionality
to execute queriesflushMode, hints, lockMode, projection, queryHandler
configuration, firstUnionSubQuery, union, unionAll
MDC_PARAMETERS, MDC_QUERY, queryMixin
Constructor and Description |
---|
JPASQLQuery(javax.persistence.EntityManager entityManager,
Configuration conf) |
JPASQLQuery(javax.persistence.EntityManager entityManager,
Configuration conf,
QueryHandler queryHandler) |
JPASQLQuery(javax.persistence.EntityManager entityManager,
Configuration conf,
QueryHandler queryHandler,
QueryMetadata metadata) |
JPASQLQuery(javax.persistence.EntityManager entityManager,
Configuration conf,
QueryMetadata metadata) |
JPASQLQuery(javax.persistence.EntityManager entityManager,
SQLTemplates sqlTemplates) |
JPASQLQuery(javax.persistence.EntityManager entityManager,
SQLTemplates sqlTemplates,
QueryMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
JPASQLQuery<T> |
clone(javax.persistence.EntityManager entityManager) |
JPASQLQuery<Tuple> |
select(Expression<?>... exprs)
Change the projection of this query
|
<U> JPASQLQuery<U> |
select(Expression<U> expr)
Change the projection of this query
|
cleanupMDC, clone, clone, createQuery, createSerializer, fetch, fetchOne, fetchResults, iterate, logQuery, reset, setFlushMode, setHint, setLockMode
extractEntityExpression, isEntityExpression
accept, addFlag, addFlag, addFlag, addFlag, addJoinFlag, addJoinFlag, fetchCount, from, from, from, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, getSQL, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, on, on, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, serialize, toString, union, union, union, unionAll, unionAll, unionAll, with, with, with, withRecursive, withRecursive, withRecursive
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
distinct, limit, offset, orderBy, restrict, set
where
transform
fetchFirst
public JPASQLQuery(javax.persistence.EntityManager entityManager, SQLTemplates sqlTemplates)
public JPASQLQuery(javax.persistence.EntityManager entityManager, Configuration conf)
public JPASQLQuery(javax.persistence.EntityManager entityManager, Configuration conf, QueryHandler queryHandler)
public JPASQLQuery(javax.persistence.EntityManager entityManager, SQLTemplates sqlTemplates, QueryMetadata metadata)
public JPASQLQuery(javax.persistence.EntityManager entityManager, Configuration conf, QueryMetadata metadata)
public JPASQLQuery(javax.persistence.EntityManager entityManager, Configuration conf, QueryHandler queryHandler, QueryMetadata metadata)
public JPASQLQuery<T> clone(javax.persistence.EntityManager entityManager)
clone
in class AbstractJPASQLQuery<T,JPASQLQuery<T>>
public <U> JPASQLQuery<U> select(Expression<U> expr)
FetchableQuery
expr
- new projectionpublic JPASQLQuery<Tuple> select(Expression<?>... exprs)
FetchableQuery
exprs
- new projectionCopyright © 2007–2016 Querydsl. All rights reserved.