com.taggercat.tags
Class RemoveDataSourcesTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.taggercat.tags.RemoveDataSourcesTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class RemoveDataSourcesTag
extends javax.servlet.jsp.tagext.TagSupport

This tag is used to close and remove data sources from the model. This tag produces no output, and is only used to update the model. Therefore, you may want to consider using custom code in a request handler or other logic to close data sources. Using this tag is convenient, but careful consideration needs to be given to your application's page sequence etc..

<tc:closeDatasources names="HR.*,customers,promotion,~order*" />

See Also:
Serialized Form
 

Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
RemoveDataSourcesTag()
          Creates a new tag instance.
 
Method Summary
 int doEndTag()
           
 int doStartTag()
          Remove the specified data sources.
 boolean isResultSetOnly()
           
 void setNames(java.lang.String names)
          Sets the name of the data sources to close.
 void setResultSetOnly(boolean resultSetOnly)
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveDataSourcesTag

public RemoveDataSourcesTag()
Creates a new tag instance.

Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Remove the specified data sources.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException
Returns:
SKIP_BODY

setNames

public void setNames(java.lang.String names)
Sets the name of the data sources to close. The name list is comma separated. The names can also include wild card characters ? and *. Names prefixed with ~ are names not to be closed. Multiple NOT to close names can be listed, and also may contain wild card characters.

Parameters:
names - the list of data source names to remove

isResultSetOnly

public boolean isResultSetOnly()

setResultSetOnly

public void setResultSetOnly(boolean resultSetOnly)