|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysema.query.QueryBase<SubType>
com.mysema.query.support.ProjectableQuery<SubType>
com.mysema.query.hql.HQLQueryBase<SubType>
com.mysema.query.hql.hibernate.AbstractHibernateQuery<SubType>
SubType
- public abstract class AbstractHibernateQuery<SubType extends AbstractHibernateQuery<SubType>>
Abstract base class for Hibernate API based implementations of the HQLQuery interface
Field Summary |
---|
Fields inherited from class com.mysema.query.hql.HQLQueryBase |
---|
queryMixin |
Constructor Summary | |
---|---|
AbstractHibernateQuery(SessionHolder session,
HQLTemplates patterns)
|
Method Summary | ||
---|---|---|
long |
count()
return the amount of matched rows |
|
long |
count(Expr<?> expr)
|
|
org.hibernate.Query |
createQuery(Expr<?> expr)
Expose the original Hibernate query for the given projection |
|
org.hibernate.Query |
createQuery(Expr<?>[] args)
Expose the original Hibernate query for the given projection |
|
org.hibernate.Query |
createQuery(Expr<?> expr1,
Expr<?> expr2,
Expr<?>... rest)
Expose the original Hibernate query for the given projection |
|
Iterator<Object[]> |
iterate(Expr<?>[] args)
Return the query results as an Iterator. |
|
|
iterate(Expr<RT> projection)
Return the query results as an Iterator. |
|
List<Object[]> |
list(Expr<?>[] args)
list the results for the given projection |
|
|
list(Expr<RT> expr)
list the results for the given projection |
|
|
listResults(Expr<RT> expr)
list the results for the given projection |
|
protected void |
logQuery(String queryString)
|
|
org.hibernate.ScrollableResults |
scroll(org.hibernate.ScrollMode mode,
Expr<?> expr)
Return the query results as ScrollableResults. |
|
org.hibernate.ScrollableResults |
scroll(org.hibernate.ScrollMode mode,
Expr<?>[] args)
Return the query results as ScrollableResults. |
|
org.hibernate.ScrollableResults |
scroll(org.hibernate.ScrollMode mode,
Expr<?> expr1,
Expr<?> expr2,
Expr<?>... rest)
Return the query results as ScrollableResults. |
|
SubType |
setCacheable(boolean cacheable)
Enable caching of this query result set. |
|
SubType |
setCacheRegion(String cacheRegion)
Set the name of the cache region. |
|
SubType |
setFetchSize(int fetchSize)
Set a fetch size for the underlying JDBC query. |
|
SubType |
setReadOnly(boolean readOnly)
Entities retrieved by this query will be loaded in a read-only mode where Hibernate will never dirty-check them or make changes persistent. |
|
SubType |
setTimeout(int timeout)
Set a timeout for the underlying JDBC query. |
|
|
uniqueResult(Expr<RT> expr)
return a unique result for the given projection |
Methods inherited from class com.mysema.query.hql.HQLQueryBase |
---|
fetch, fetchAll, from, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, getConstants, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, toCountRowsString, toQueryString, toString, with |
Methods inherited from class com.mysema.query.support.ProjectableQuery |
---|
countDistinct, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, listDistinct, listDistinct, listDistinct, listDistinctResults, map, uniqueResult, uniqueResult |
Methods inherited from class com.mysema.query.QueryBase |
---|
groupBy, having, limit, offset, orderBy, restrict, where |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractHibernateQuery(SessionHolder session, HQLTemplates patterns)
Method Detail |
---|
public long count()
Projectable
public long count(Expr<?> expr)
public org.hibernate.Query createQuery(Expr<?> expr)
expr
-
public org.hibernate.Query createQuery(Expr<?> expr1, Expr<?> expr2, Expr<?>... rest)
expr1
- expr2
- rest
-
public org.hibernate.Query createQuery(Expr<?>[] args)
args
-
public Iterator<Object[]> iterate(Expr<?>[] args)
public <RT> Iterator<RT> iterate(Expr<RT> projection)
RT
- generic type of the Iteratpr
public List<Object[]> list(Expr<?>[] args)
Projectable
list
in interface Projectable
list
in class ProjectableQuery<SubType extends AbstractHibernateQuery<SubType>>
public <RT> List<RT> list(Expr<RT> expr)
Projectable
list
in interface Projectable
list
in class ProjectableQuery<SubType extends AbstractHibernateQuery<SubType>>
RT
- generic type of the List
public <RT> SearchResults<RT> listResults(Expr<RT> expr)
Projectable
protected void logQuery(String queryString)
public org.hibernate.ScrollableResults scroll(org.hibernate.ScrollMode mode, Expr<?> expr)
mode
- expr
-
public org.hibernate.ScrollableResults scroll(org.hibernate.ScrollMode mode, Expr<?> expr1, Expr<?> expr2, Expr<?>... rest)
mode
- expr1
- expr2
- rest
-
public org.hibernate.ScrollableResults scroll(org.hibernate.ScrollMode mode, Expr<?>[] args)
mode
- args
-
public SubType setCacheable(boolean cacheable)
cacheable
- Should the query results be cacheable?public SubType setCacheRegion(String cacheRegion)
cacheRegion
- the name of a query cache region, or null
for the default query cachepublic SubType setFetchSize(int fetchSize)
fetchSize
- the fetch sizepublic SubType setReadOnly(boolean readOnly)
public SubType setTimeout(int timeout)
timeout
- the timeout in secondspublic <RT> RT uniqueResult(Expr<RT> expr)
Projectable
uniqueResult
in interface Projectable
uniqueResult
in class ProjectableQuery<SubType extends AbstractHibernateQuery<SubType>>
RT
- return type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |