3.0.4: 2012-03-05

net.sf.basedb.core
Class SpecialQuery<C>

java.lang.Object
  extended by net.sf.basedb.core.AbstractQuery
      extended by net.sf.basedb.core.AbstractHqlQuery
          extended by net.sf.basedb.core.SpecialQuery<C>
All Implemented Interfaces:
HqlQuery, Query

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: 2011-06-20 13:55:13 +0200 (Mon, 20 Jun 2011) $

Field Summary
private  Transformer<C,Object> transformer
           
 
Constructor Summary
SpecialQuery(String select, String from, String alias, Transformer<C,?> transformer)
           
 
Method Summary
 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, getMainHqlQuery, getQueryType, getRootAlias, isCachingResult, isReadonly, isStateless, postProcessQuery, reset, setCacheResult, setEntityParameter, setPermanentEntityParameter
 
Methods inherited from class net.sf.basedb.core.AbstractQuery
addAutoJoiner, getCountQuery, getFirstResult, getMainQuery, getMaxResults, getParameterNames, getParameters, getParameterType, getParameterValue, getPermanentSelects, getQueryParameter, getQuerySection, getSelects, group, groupPermanent, hasParameterValue, having, havingPermanent, isCounting, isDistinct, isReturningTotalCount, join, joinPermanent, order, orderPermanent, resetTemporary, restrict, restrictPermanent, select, selectPermanent, setCounting, setDistinct, 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, isReturningTotalCount, join, joinPermanent, order, orderPermanent, restrict, restrictPermanent, select, selectPermanent, setDistinct, setFirstResult, setMaxResults, setParameter, setPermanentParameter, setReturnTotalCount, toQl
 

Field Detail

transformer

private final Transformer<C,Object> transformer
Constructor Detail

SpecialQuery

SpecialQuery(String select,
             String from,
             String alias,
             Transformer<C,?> transformer)
Method Detail

list

public ResultList<C> list(DbControl dc)
Get the result of the query as a list.

Parameters:
dc - The DbControl to use for database access

3.0.4: 2012-03-05