public interface HqlQuery extends Query
QueryType.HQL
from the Query.getQueryType()
method.Modifier and Type | Method and Description |
---|---|
boolean |
isCachingResult()
If the query results are cached or not.
|
void |
setCacheResult(boolean flag)
Specify if the query results should be cached or not.
|
void |
setEntityParameter(java.lang.String name,
BasicItem value)
Set the value of an entity parameter.
|
void |
setPermanentEntityParameter(java.lang.String name,
BasicItem value)
Permanently set the value of an entity parameter.
|
addAutoJoiner, count, getFirstResult, getMaxResults, getParameterNames, getQueryParameter, getQuerySection, getQueryType, getRootAlias, group, groupPermanent, hasParameterValue, having, havingPermanent, isCounting, isDistinct, isFailSafe, isReadonly, isReturningTotalCount, join, joinPermanent, order, orderPermanent, reset, restrict, restrictPermanent, select, selectPermanent, setDistinct, setFailSafe, setFirstResult, setMaxResults, setParameter, setPermanentParameter, setReturnTotalCount, toQl
void setCacheResult(boolean flag)
flag
- TRUE if the query results should be cached, FALSE otherwisejava.lang.UnsupportedOperationException
- If this operation isn't supported by
the implementationboolean isCachingResult()
setCacheResult(boolean)
void setEntityParameter(java.lang.String name, BasicItem value)
InvalidDataException
is thrown.name
- The name of the parametervalue
- The value of the parameterjava.lang.UnsupportedOperationException
- If this operation isn't supported by
the implementationInvalidDataException
- If the value of the parameter has already
been permanently setvoid setPermanentEntityParameter(java.lang.String name, BasicItem value)
InvalidDataException
is thrown.name
- The name of the parametervalue
- The value of the parameterjava.lang.UnsupportedOperationException
- If this operation isn't supported by
the implementationInvalidDataException
- If the value of the parameter has already
been permanently set