Class QueryExecutingTag

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
jakarta.servlet.jsp.tagext.BodyTagSupport
net.ontopia.topicmaps.nav2.taglibs.tolog.QueryExecutingTag
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.BodyTag, jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
Direct Known Subclasses:
IfTag, SetTag

public abstract class QueryExecutingTag extends jakarta.servlet.jsp.tagext.BodyTagSupport
INTERNAL: Generic Tolog Tag that has support for executing one query.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String[]
     
     
    protected String
     
    protected QueryResultIF
     

    Fields inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport

    bodyContent

    Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport

    id, pageContext

    Fields inherited from interface jakarta.servlet.jsp.tagext.BodyTag

    EVAL_BODY_BUFFERED

    Fields inherited from interface jakarta.servlet.jsp.tagext.IterationTag

    EVAL_BODY_AGAIN

    Fields inherited from interface jakarta.servlet.jsp.tagext.Tag

    EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Bind the variables of a result set to the current row.
    int
    Print the body content to the enclosing writer.
    int
    return EVAL_PAGE by default.
    int
    Process the start tag for this instance.
     
    protected QueryResultIF
     
    void
    Resets the state of the Tag.
    void
     

    Methods inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport

    doInitBody, getBodyContent, getPreviousOut, setBodyContent

    Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport

    findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface jakarta.servlet.jsp.tagext.Tag

    getParent, setPageContext, setParent
  • Field Details

  • Constructor Details

    • QueryExecutingTag

      public QueryExecutingTag()
  • Method Details

    • doStartTag

      public int doStartTag() throws jakarta.servlet.jsp.JspTagException
      Process the start tag for this instance. Post: queryResult and columnNames have values, but nothing is done to them. It is up to the child class to make use of these. Returns EVAL_BODY_BUFFERED by default.
      Specified by:
      doStartTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doStartTag in class jakarta.servlet.jsp.tagext.BodyTagSupport
      Throws:
      jakarta.servlet.jsp.JspTagException
    • getQuery

      public String getQuery()
      Returns:
      a reference to the tag attribute parameter query.
    • getQueryResult

      protected QueryResultIF getQueryResult()
    • bindVariables

      protected void bindVariables() throws jakarta.servlet.jsp.JspTagException
      Bind the variables of a result set to the current row.
      Throws:
      jakarta.servlet.jsp.JspTagException
    • doAfterBody

      public int doAfterBody() throws jakarta.servlet.jsp.JspTagException
      Print the body content to the enclosing writer. Return SKIP_BODY by default.
      Specified by:
      doAfterBody in interface jakarta.servlet.jsp.tagext.IterationTag
      Overrides:
      doAfterBody in class jakarta.servlet.jsp.tagext.BodyTagSupport
      Throws:
      jakarta.servlet.jsp.JspTagException
    • doEndTag

      public int doEndTag() throws jakarta.servlet.jsp.JspException
      return EVAL_PAGE by default.
      Specified by:
      doEndTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class jakarta.servlet.jsp.tagext.BodyTagSupport
      Throws:
      jakarta.servlet.jsp.JspException
    • release

      public void release()
      Resets the state of the Tag.
      Specified by:
      release in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      release in class jakarta.servlet.jsp.tagext.BodyTagSupport
    • setQuery

      public void setQuery(String query)