Package net.sf.basedb.core
Class SpecialQuery<C>
java.lang.Object
net.sf.basedb.core.AbstractQuery
net.sf.basedb.core.AbstractHqlQuery
net.sf.basedb.core.SpecialQuery<C>
public class SpecialQuery<C> extends AbstractHqlQuery
A special HQL query implementation that can return almost any kind of object.
- Since:
- 3.0
- Author:
- Nicklas
- Last modified
- $Date: 2017-05-22 14:35:27 +0200 (må, 22 maj 2017) $
-
Field Summary
Fields Modifier and Type Field Description private Transformer<C,Object>
transformer
-
Constructor Summary
Constructors Constructor Description SpecialQuery(String select, String from, String alias, Transformer<C,?> transformer)
-
Method Summary
Modifier and Type Method Description ResultList<C>
list(DbControl dc)
Get the result of the query as a list.Methods inherited from class net.sf.basedb.core.AbstractHqlQuery
count, getCountHqlQuery, getIdHqlQuery, getMainHqlQuery, getQueryType, getRootAlias, isCachingResult, isReadonly, isStateless, postProcessQuery, reset, setCacheResult, setEntityParameter, setPermanentEntityParameter
Methods inherited from class net.sf.basedb.core.AbstractQuery
addAutoJoiner, getCountQuery, getFirstResult, getIdQuery, getMainQuery, getMaxResults, getParameterNames, getParameters, getParameterType, getParameterValue, getPermanentSelects, getQueryParameter, getQuerySection, getSelects, group, groupPermanent, hasParameterValue, having, havingPermanent, isCounting, isDistinct, isFailSafe, isReturningTotalCount, join, joinPermanent, order, orderPermanent, resetTemporary, restrict, restrictPermanent, select, selectPermanent, setCounting, setDistinct, setFailSafe, setFirstResult, setMaxResults, setParameter, setPermanentParameter, setReturnTotalCount, temporaryJoin, temporarySelect, toQl, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.sf.basedb.core.query.Query
addAutoJoiner, getFirstResult, getMaxResults, getParameterNames, getQueryParameter, getQuerySection, group, groupPermanent, hasParameterValue, having, havingPermanent, isCounting, isDistinct, isFailSafe, isReturningTotalCount, join, joinPermanent, order, orderPermanent, restrict, restrictPermanent, select, selectPermanent, setDistinct, setFailSafe, setFirstResult, setMaxResults, setParameter, setPermanentParameter, setReturnTotalCount, toQl
-
Field Details
-
transformer
-
-
Constructor Details
-
SpecialQuery
SpecialQuery(String select, String from, String alias, Transformer<C,?> transformer)
-
-
Method Details
-
list
Get the result of the query as a list.- Parameters:
dc
- The DbControl to use for database access
-