com.jtri.struts
Class EditAction

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended bycom.jtri.struts.BaseAction
          extended bycom.jtri.struts.EditAction

public abstract class EditAction
extends BaseAction

Action implementation with default logic for multi-form Edit Window. The Edit window supports saving, adding new items, query and calling.

Author:
atorres

Constructor Summary
EditAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward backPage(org.apache.struts.action.ActionMapping mapping, IRootForm myForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.apache.struts.action.ActionForward create(org.apache.struts.action.ActionMapping mapping, IRootForm myForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 IRootForm doSave(Cusco cusco, org.apache.struts.action.ActionMapping mapping, IRootForm myForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
abstract  HibernateFacade getFacade()
           
 boolean isUniqueMasterRow()
           
 org.apache.struts.action.ActionForward lovPage(org.apache.struts.action.ActionMapping mapping, IRootForm myForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.apache.struts.action.ActionForward nextPage(org.apache.struts.action.ActionMapping mapping, IRootForm myForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void processFilter(Cusco cusco, PageStructure root, java.lang.String wndName, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, IRootForm myForm)
           
 org.apache.struts.action.ActionForward query(org.apache.struts.action.ActionMapping mapping, IRootForm myForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.apache.struts.action.ActionForward returnPage(org.apache.struts.action.ActionMapping mapping, IRootForm myForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.apache.struts.action.ActionForward save(org.apache.struts.action.ActionMapping mapping, IRootForm myForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class com.jtri.struts.BaseAction
addCallCount, addFilter, addFilter, checkFilterAction, getCall, getFirstStructure, noAction, processParameters, returnAction
 
Methods inherited from class org.apache.struts.action.Action
execute, execute, getServlet, setServlet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditAction

public EditAction()
Method Detail

processFilter

public void processFilter(Cusco cusco,
                          PageStructure root,
                          java.lang.String wndName,
                          javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response,
                          IRootForm myForm)

query

public org.apache.struts.action.ActionForward query(org.apache.struts.action.ActionMapping mapping,
                                                    IRootForm myForm,
                                                    javax.servlet.http.HttpServletRequest request,
                                                    javax.servlet.http.HttpServletResponse response)
                                             throws java.io.IOException,
                                                    javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

doSave

public IRootForm doSave(Cusco cusco,
                        org.apache.struts.action.ActionMapping mapping,
                        IRootForm myForm,
                        javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response)
                 throws java.lang.Exception
Throws:
java.lang.Exception

save

public org.apache.struts.action.ActionForward save(org.apache.struts.action.ActionMapping mapping,
                                                   IRootForm myForm,
                                                   javax.servlet.http.HttpServletRequest request,
                                                   javax.servlet.http.HttpServletResponse response)
                                            throws java.io.IOException,
                                                   javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

getFacade

public abstract HibernateFacade getFacade()

nextPage

public org.apache.struts.action.ActionForward nextPage(org.apache.struts.action.ActionMapping mapping,
                                                       IRootForm myForm,
                                                       javax.servlet.http.HttpServletRequest request,
                                                       javax.servlet.http.HttpServletResponse response)
                                                throws java.io.IOException,
                                                       javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

backPage

public org.apache.struts.action.ActionForward backPage(org.apache.struts.action.ActionMapping mapping,
                                                       IRootForm myForm,
                                                       javax.servlet.http.HttpServletRequest request,
                                                       javax.servlet.http.HttpServletResponse response)
                                                throws java.io.IOException,
                                                       javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

lovPage

public org.apache.struts.action.ActionForward lovPage(org.apache.struts.action.ActionMapping mapping,
                                                      IRootForm myForm,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws java.io.IOException,
                                                      javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

returnPage

public org.apache.struts.action.ActionForward returnPage(org.apache.struts.action.ActionMapping mapping,
                                                         IRootForm myForm,
                                                         javax.servlet.http.HttpServletRequest request,
                                                         javax.servlet.http.HttpServletResponse response)
                                                  throws java.io.IOException,
                                                         javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

create

public org.apache.struts.action.ActionForward create(org.apache.struts.action.ActionMapping mapping,
                                                     IRootForm myForm,
                                                     javax.servlet.http.HttpServletRequest request,
                                                     javax.servlet.http.HttpServletResponse response)
                                              throws java.io.IOException,
                                                     javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

isUniqueMasterRow

public boolean isUniqueMasterRow()