2.14.2: 2010-02-22

net.sf.basedb.core.query
Interface HqlQuery

All Superinterfaces:
Query
All Known Subinterfaces:
EntityQuery
All Known Implementing Classes:
AbstractEntityQuery, DataQuery, ItemQuery, ReporterScoreQuery

public interface HqlQuery
extends Query

This is a query that is using HQL (Hibernate Query Language) as the query language. All implementors of this interface must return QueryType.HQL from the Query.getQueryType() method.

Version:
2.0
Author:
Nicklas
Last modified
$Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $

Method Summary
 boolean isCachingResult()
          If the query results are cached or not.
 void setCacheResult(boolean flag)
          Specify if the query results should be cached or not.
 
Methods inherited from interface net.sf.basedb.core.query.Query
addAutoJoiner, count, getFirstResult, getMaxResults, getParameterNames, getQueryParameter, getQuerySection, getQueryType, getRootAlias, group, groupPermanent, hasParameterValue, having, havingPermanent, isCounting, isDistinct, isReadonly, isReturningTotalCount, join, joinPermanent, order, orderPermanent, reset, restrict, restrictPermanent, select, selectPermanent, setDistinct, setFirstResult, setMaxResults, setParameter, setPermanentParameter, setReturnTotalCount, toQl
 

Method Detail

setCacheResult

void setCacheResult(boolean flag)
Specify if the query results should be cached or not.

Parameters:
flag - TRUE if the query results should be cached, FALSE otherwise
Throws:
UnsupportedOperationException - If this operation isn't supported by the implementation
Developer info
This option requires that a secondary cache that supports query results are used (ie. EHCache).

isCachingResult

boolean isCachingResult()
If the query results are cached or not.

See Also:
setCacheResult(boolean)

2.14.2: 2010-02-22