com.codestudio.bean.struts
Class PoolManAction

java.lang.Object
  |
  +--org.apache.struts.action.Action
        |
        +--com.codestudio.bean.struts.PoolManAction

public final class PoolManAction
extends org.apache.struts.action.Action

A struts Action for handling the poolman JSP form.

Author:
PS Neville

Fields inherited from class org.apache.struts.action.Action
DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGES_KEY, MULTIPART_KEY, servlet, TRANSACTION_TOKEN_KEY
 
Constructor Summary
PoolManAction()
           
 
Method Summary
protected  void executeSQL(java.lang.String dbName, java.lang.String sqlQuery, PoolManResultsBean resultsBean, PoolManMetricsBean metricsBean)
          Execute a generic sql statement without knowing much about it or its destination.
protected  PoolManMetricsBean getMetricsBean(javax.servlet.http.HttpSession session)
           
protected  PoolManResultsBean getResultsBean(javax.servlet.http.HttpSession session)
           
 org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Perform the Struts action associated with the poolman struts form.
 
Methods inherited from class org.apache.struts.action.Action
generateToken, getLocale, getResources, getServlet, isCancelled, isTokenValid, perform, perform, perform, resetToken, saveErrors, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoolManAction

public PoolManAction()
Method Detail

perform

public org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws java.io.IOException,
                                                      javax.servlet.ServletException
Perform the Struts action associated with the poolman struts form.
Overrides:
perform in class org.apache.struts.action.Action

executeSQL

protected void executeSQL(java.lang.String dbName,
                          java.lang.String sqlQuery,
                          PoolManResultsBean resultsBean,
                          PoolManMetricsBean metricsBean)
                   throws java.sql.SQLException
Execute a generic sql statement without knowing much about it or its destination. A real-world query would be less generic, making the code simpler than this example.

getMetricsBean

protected PoolManMetricsBean getMetricsBean(javax.servlet.http.HttpSession session)

getResultsBean

protected PoolManResultsBean getResultsBean(javax.servlet.http.HttpSession session)


Copyright © 1999-2001 The Code Studio. All Rights Reserved.