2.17.2: 2011-06-17

net.sf.basedb.core
Class DynamicReporterQuery

java.lang.Object
  extended by net.sf.basedb.core.AbstractQuery
      extended by net.sf.basedb.core.AbstractSqlQuery
          extended by net.sf.basedb.core.DynamicReporterQuery
All Implemented Interfaces:
Query, SqlQuery

public class DynamicReporterQuery
extends AbstractSqlQuery

Represents a query for reporter data in a "dynamic" way. The main difference from a client applications point of view, is that it is possible to specify which columns that should be selected. In a techinical point of view the difference is that we are using SQL instead of HQl.

Version:
2.4
Author:
Nicklas
See Also:
Reporter.getDynamicQuery()
Last modified
$Date: 2008-09-11 22:11:02 +0200 (Thu, 11 Sep 2008) $

Field Summary
private  RealTable rootTable
           
 
Constructor Summary
DynamicReporterQuery()
          Create a new dynamic query for reporter data.
 
Method Summary
(package private)  Select[] getDefaultSelects()
          No default selection.
 String getRootAlias()
          The alias of the item that is returned by this query.
(package private)  RealTable getRootTable()
           
 boolean isReadonly()
          If this query is readonly and cannot be structurally modified.
 
Methods inherited from class net.sf.basedb.core.AbstractSqlQuery
bindLimits, count, getQueryType, iterate, parseParameters, setParameters
 
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, postProcessQuery, reset, 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, reset, restrict, restrictPermanent, select, selectPermanent, setDistinct, setFirstResult, setMaxResults, setParameter, setPermanentParameter, setReturnTotalCount, toQl
 

Field Detail

rootTable

private final RealTable rootTable
Constructor Detail

DynamicReporterQuery

DynamicReporterQuery()
Create a new dynamic query for reporter data.

Method Detail

getRootAlias

public String getRootAlias()
The alias of the item that is returned by this query.

See Also:
Item.getAlias()

isReadonly

public boolean isReadonly()
Description copied from interface: Query
If this query is readonly and cannot be structurally modified. Ie. no more query elements can be added. It is still possible to set parameter values. A call to Query.reset() would unlock the query and allow it to be modified again.

Specified by:
isReadonly in interface Query
Overrides:
isReadonly in class AbstractQuery
Returns:
TRUE if the query is readonly, FALSE otherwise

getDefaultSelects

Select[] getDefaultSelects()
No default selection.

Specified by:
getDefaultSelects in class AbstractSqlQuery

getRootTable

RealTable getRootTable()

2.17.2: 2011-06-17