org.makumba.list.engine.valuecomputer
Class QueryValueComputer
java.lang.Object
org.makumba.list.engine.valuecomputer.ValueComputer
org.makumba.list.engine.valuecomputer.QueryValueComputer
- Direct Known Subclasses:
- NullableValueComputer, SetValueComputer
public abstract class QueryValueComputer
- extends ValueComputer
The ValueComputer of a queryMak:value
- Author:
- Cristian Bogdan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
queryKey
MultipleKey queryKey
- The key of the generated query
dummy
static final Object dummy
QueryValueComputer
public QueryValueComputer()
makeQueryAtAnalysis
public void makeQueryAtAnalysis(MultipleKey parentListKey,
String keyDifference,
String[] queryProps,
String expr,
PageCache pageCache)
- Makes a key that adds the given keyDifference to the tagKey of the parentList, and associates with it a subquery
of the parentQuery made from the given queryProps.
- Parameters:
analyzed
- the analyzed tagkeyDifference
- queryProps
- expr
- pageCache
- the page cache of the current page
getQueryKey
MultipleKey getQueryKey()
- The key of the query in which this value is a projection. Returns queryKey
- Overrides:
getQueryKey
in class ValueComputer
- Returns:
- The key of the parent of the value
doEndAnalyze
public void doEndAnalyze(PageCache pageCache)
- If other ValueComputers sharing the same valueQuery did not analyze it yet, we analyze it here.
- Overrides:
doEndAnalyze
in class ValueComputer
- Parameters:
pageCache
- the page cache of the current page
runQuery
QueryExecution runQuery(PageContext pageContext)
throws LogicException
- Obtains the iterationGroupData for the valueQuery
- Parameters:
running
- the tag that is currently running
- Returns:
- The QueryExecution that will give us the data
- Throws:
LogicException