|
3.0.1: 2011-11-10 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.core.AbstractQuery
net.sf.basedb.core.AbstractSqlQuery
net.sf.basedb.core.DynamicReporterQuery
public class DynamicReporterQuery
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.
Reporter.getDynamicQuery()
Nested Class Summary | |
---|---|
private static class |
DynamicReporterQuery.ReporterListJoiner
Auto joiner for reporter lists. |
Field Summary | |
---|---|
private Set<Object> |
joinedItems
|
private RealTable |
rootTable
|
Constructor Summary | |
---|---|
DynamicReporterQuery()
Create a new dynamic query for reporter data. |
Method Summary | |
---|---|
(package private) Select[] |
getDefaultSelects()
No default selection. |
static DynamicReporterQuery.ReporterListJoiner |
getReporterListJoiner(JoinType joinType)
Get a joiner instance for reporter lists for the specified join type. |
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. |
void |
joinReporterList(ReporterList reporterList,
JoinType joinType)
Makes a join with a ReporterList |
void |
setAutoJoinType(JoinType joinType)
Specify the join type of automatic joins. |
Methods inherited from class net.sf.basedb.core.AbstractSqlQuery |
---|
bindLimits, count, getQueryType, iterate, parseParameters, setParameters |
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 |
---|
private final RealTable rootTable
private Set<Object> joinedItems
Constructor Detail |
---|
DynamicReporterQuery()
Method Detail |
---|
public String getRootAlias()
Item.getAlias()
public boolean isReadonly()
Query
Query.reset()
would unlock the query and allow it to be modified again.
isReadonly
in interface Query
isReadonly
in class AbstractQuery
Select[] getDefaultSelects()
getDefaultSelects
in class AbstractSqlQuery
RealTable getRootTable()
public void joinReporterList(ReporterList reporterList, JoinType joinType)
ReporterList
reporterList
- To do the join on.joinType
- The join type to use.JoinType
public void setAutoJoinType(JoinType joinType)
JoinType.LEFT
. This setting doesn't affect joins that has been made
directly to the query.
joinType
- The type of the automatic joinspublic static DynamicReporterQuery.ReporterListJoiner getReporterListJoiner(JoinType joinType)
joinType
- The type of join
|
3.0.1: 2011-11-10 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |