Class QueryWrapper
java.lang.Object
net.ontopia.topicmaps.nav2.taglibs.tolog.QueryWrapper
INTERNAL: Generic Tolog Tag that has support for executing one query.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQueryWrapper(jakarta.servlet.jsp.PageContext pageContext, String inQuery) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbindVariables(boolean[] groupColumns) Bind (some of) the names of the columns of the result to the current row.protected booleanequalGroup(boolean[] groupColumns, Object[] row1, Object[] row2) protected booleanObject[]intgetQuery()intgetWidth()booleanhasNext()protected booleanisOnlyChild(boolean[] parentGroupColumns, boolean[] childGroupColumns) voidnext()Moves one step forward in the result set of the query.protected booleanrelevantDifferences(boolean[] groupColumns) protected voidsetUsedBy(ForEachTag user) protected voidupdateTotalGroupBy(boolean[] groupBy) protected booleanusedBy(ForEachTag user)
-
Field Details
-
lookAhead
-
-
Constructor Details
-
QueryWrapper
public QueryWrapper(jakarta.servlet.jsp.PageContext pageContext, String inQuery) throws NavigatorRuntimeException Default constructor. Creates executes the inputQuery in the given PageContext and moves to the first row.- Throws:
NavigatorRuntimeException
-
-
Method Details
-
updateTotalGroupBy
protected void updateTotalGroupBy(boolean[] groupBy) -
fullyGrouped
protected boolean fullyGrouped() -
relevantDifferences
protected boolean relevantDifferences(boolean[] groupColumns) - Returns:
- true if the query result has changed with respect in any of the columns corresponding to the entries of groupColumns. This happens iff for any particular index diffs and groupColumns both contain the value true.
-
getContextManager
-
hasNext
public boolean hasNext() -
next
public void next()Moves one step forward in the result set of the query. -
getCurrentRow
-
getWidth
public int getWidth() -
getIndex
-
getQuery
-
parseQuery
- Throws:
NavigatorRuntimeException
-
bindVariables
protected void bindVariables(boolean[] groupColumns) throws jakarta.servlet.jsp.JspTagException Bind (some of) the names of the columns of the result to the current row. Only bind those columns corresponding to a true entry in groupColumns. e.g. column 3 is bound if groupColumns[3] is true.- Throws:
jakarta.servlet.jsp.JspTagException
-
isOnlyChild
protected boolean isOnlyChild(boolean[] parentGroupColumns, boolean[] childGroupColumns) -
equalGroup
-