|
||||||||||
| 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.QueryBaseWithProjection<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.QueryBase |
|---|
_this |
| Constructor Summary | |
|---|---|
AbstractHibernateQuery(QueryMetadata md,
org.hibernate.Session 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<?> expr1,
Expr<?> expr2,
Expr<?>... rest)
Expose the original Hibernate query for the given projection |
|
Iterator<Object[]> |
iterate(Expr<?> e1,
Expr<?> e2,
Expr<?>... rest)
Return the query results as an Iterator. |
|
|
iterate(Expr<RT> projection)
Return the query results as an Iterator. |
|
List<Object[]> |
list(Expr<?> expr1,
Expr<?> expr2,
Expr<?>... rest)
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<?> 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 |
|---|
createQBECondition, 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.QueryBaseWithProjection |
|---|
asArray, countDistinct, iterateDistinct, iterateDistinct, listDistinct, listDistinct, listDistinctResults, map, uniqueResult |
| Methods inherited from class com.mysema.query.QueryBase |
|---|
addToProjection, getMetadata, 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(QueryMetadata md,
org.hibernate.Session 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 Iterator<Object[]> iterate(Expr<?> e1,
Expr<?> e2,
Expr<?>... rest)
public <RT> Iterator<RT> iterate(Expr<RT> projection)
RT - generic type of the Iteratpr
public List<Object[]> list(Expr<?> expr1,
Expr<?> expr2,
Expr<?>... rest)
Projectable
list in interface Projectablelist in class QueryBaseWithProjection<SubType extends AbstractHibernateQuery<SubType>>rest - rest
public <RT> List<RT> list(Expr<RT> expr)
Projectable
list in interface Projectablelist in class QueryBaseWithProjection<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 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 ProjectableuniqueResult in class QueryBaseWithProjection<SubType extends AbstractHibernateQuery<SubType>>RT - return type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||