org.makumba.list.engine.valuecomputer
Class NullableValueComputer
java.lang.Object
org.makumba.list.engine.valuecomputer.ValueComputer
org.makumba.list.engine.valuecomputer.QueryValueComputer
org.makumba.list.engine.valuecomputer.NullableValueComputer
class NullableValueComputer
- extends QueryValueComputer
The manager of a nullableValueQuery
- Author:
- Cristian Bogdan
Method Summary |
Object |
getValue(PageContext pageContext)
Checks if the iterationGroupData is longer than 1, and throws an exception if so. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
emptyQueryProps
static final String[] emptyQueryProps
NullableValueComputer
NullableValueComputer(MultipleKey parentListKey,
String nullableExpr,
String expr,
PageCache pageCache)
- Makes a query that is identical to the parentQuery, but has expr as projection.
- Parameters:
parentListKey
- the key of the parent listnullableExpr
- the nullable expressionexpr
- the expression we use as projectionpageCache
- the page cache of the current page
getValue
public Object getValue(PageContext pageContext)
throws LogicException
- Checks if the iterationGroupData is longer than 1, and throws an exception if so. Takes the first result (if any)
otherwise.
- Overrides:
getValue
in class ValueComputer
- Parameters:
running
- the tag that is currently running
- Returns:
- the computed value
- Throws:
LogicException