Class QueryWrapper

java.lang.Object
net.ontopia.topicmaps.nav2.taglibs.tolog.QueryWrapper

public class QueryWrapper extends Object
INTERNAL: Generic Tolog Tag that has support for executing one query.
  • Field Details

  • Constructor Details

  • Method Details

    • updateTotalGroupBy

      protected void updateTotalGroupBy(boolean[] groupBy)
    • setUsedBy

      protected void setUsedBy(ForEachTag user)
    • usedBy

      protected boolean usedBy(ForEachTag user)
    • 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

      public ContextManagerIF getContextManager()
    • hasNext

      public boolean hasNext()
    • next

      public void next()
      Moves one step forward in the result set of the query.
    • getCurrentRow

      public Object[] getCurrentRow()
    • getWidth

      public int getWidth()
    • getIndex

      public int getIndex(String columnName)
    • getQuery

      public String getQuery()
    • parseQuery

      public ParsedQueryIF parseQuery() throws NavigatorRuntimeException
      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

      protected boolean equalGroup(boolean[] groupColumns, Object[] row1, Object[] row2)