|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mysema.query.support.QueryBase<Q>
com.mysema.query.support.ProjectableQuery<T>
com.mysema.query.jpa.AbstractSQLQuery<JPASQLQuery>
com.mysema.query.jpa.sql.JPASQLQuery
public final class JPASQLQuery
JPASQLQuery is an SQLQuery implementation that uses Hibernate's Native SQL functionality to execute queries
| Field Summary |
|---|
| Fields inherited from class com.mysema.query.support.QueryBase |
|---|
queryMixin |
| Constructor Summary | |
|---|---|
|
JPASQLQuery(javax.persistence.EntityManager entityManager,
SQLTemplates sqlTemplates)
|
protected |
JPASQLQuery(JPASessionHolder session,
SQLTemplates sqlTemplates,
QueryMetadata metadata)
|
| Method Summary | ||
|---|---|---|
JPASQLQuery |
clone(javax.persistence.EntityManager entityManager)
|
|
javax.persistence.Query |
createQuery(Expression<?>... args)
|
|
com.mysema.commons.lang.CloseableIterator<Object[]> |
iterate(Expression<?>[] args)
iterate over the results for the given projection |
|
|
iterate(Expression<RT> projection)
iterate over the results for the given projection |
|
List<Object[]> |
list(Expression<?>[] args)
list the results for the given projection |
|
|
list(Expression<RT> projection)
list the results for the given projection |
|
|
listResults(Expression<RT> projection)
list the results for the given projection |
|
protected void |
logQuery(String queryString)
|
|
protected void |
reset()
|
|
protected String |
toCountRowsString()
|
|
protected String |
toQueryString()
|
|
Object[] |
uniqueResult(Expression<?>[] args)
return a unique result for the given projection or null if no result is found |
|
|
uniqueResult(Expression<RT> expr)
return a unique result for the given projection or null if no result is found |
|
| Methods inherited from class com.mysema.query.jpa.AbstractSQLQuery |
|---|
addFlag, addFlag, addFlag, addJoinFlag, addJoinFlag, count, exists, from, from, fullJoin, fullJoin, fullJoin, getMetadata, innerJoin, innerJoin, innerJoin, join, join, join, leftJoin, leftJoin, leftJoin, on, rightJoin, rightJoin, rightJoin |
| Methods inherited from class com.mysema.query.support.ProjectableQuery |
|---|
countDistinct, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, listDistinct, listDistinct, listDistinct, listDistinctResults, map, notExists, singleResult, singleResult, singleResult, uniqueResult, uniqueResult |
| Methods inherited from class com.mysema.query.support.QueryBase |
|---|
distinct, groupBy, having, limit, offset, orderBy, restrict, set, toString, where |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.mysema.query.sql.SQLCommonQuery |
|---|
addFlag, addFlag, addFlag, addJoinFlag, addJoinFlag, from, from, fullJoin, fullJoin, fullJoin, innerJoin, innerJoin, innerJoin, join, join, join, leftJoin, leftJoin, leftJoin, on, rightJoin, rightJoin, rightJoin |
| Methods inherited from interface com.mysema.query.Query |
|---|
distinct, groupBy, having, limit, offset, orderBy, restrict, set |
| Methods inherited from interface com.mysema.query.FilteredClause |
|---|
where |
| Constructor Detail |
|---|
public JPASQLQuery(javax.persistence.EntityManager entityManager,
SQLTemplates sqlTemplates)
protected JPASQLQuery(JPASessionHolder session,
SQLTemplates sqlTemplates,
QueryMetadata metadata)
| Method Detail |
|---|
public JPASQLQuery clone(javax.persistence.EntityManager entityManager)
public javax.persistence.Query createQuery(Expression<?>... args)
public List<Object[]> list(Expression<?>[] args)
Projectable
list in interface Projectablelist in class ProjectableQuery<JPASQLQuery>public <RT> List<RT> list(Expression<RT> projection)
Projectable
list in interface Projectablelist in class ProjectableQuery<JPASQLQuery>RT - generic type of the List
public com.mysema.commons.lang.CloseableIterator<Object[]> iterate(Expression<?>[] args)
Projectable
iterate in interface Projectablepublic <RT> com.mysema.commons.lang.CloseableIterator<RT> iterate(Expression<RT> projection)
Projectable
iterate in interface ProjectableRT - generic type of the Iterator
public <RT> SearchResults<RT> listResults(Expression<RT> projection)
Projectable
listResults in interface Projectableprotected void logQuery(String queryString)
protected void reset()
protected String toCountRowsString()
protected String toQueryString()
public <RT> RT uniqueResult(Expression<RT> expr)
Projectable
uniqueResult in interface ProjectableRT - return type
public Object[] uniqueResult(Expression<?>[] args)
Projectable
uniqueResult in interface Projectable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||