nl.gx.webmanager.handler.forms.handling
Class DBInsertHandler

java.lang.Object
  extended by nl.gx.webmanager.handler.forms.foundation.FormHandlerBase
      extended by nl.gx.webmanager.handler.forms.handling.DBInsertHandler
All Implemented Interfaces:
FormComponent, Handler

public class DBInsertHandler
extends FormHandlerBase
implements Handler

Insert handler that inserts formpartvalues in a database using the resource information associated with each formpart. Design limitation: : Only date, integer and character data types are supported.

Variable Type Mode Default Description
None - - - -
Example usage:


Field Summary
 
Fields inherited from class nl.gx.webmanager.handler.forms.foundation.FormHandlerBase
DEFAULT_STATEMENT_TIMEOUT, log, staticlog
 
Constructor Summary
DBInsertHandler()
           
 
Method Summary
 void doHandle(FormDefinition form, State formState, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Processes the form.
 void init(FormComponentConfig config)
          Passes the initialization parameters to the component.
 
Methods inherited from class nl.gx.webmanager.handler.forms.foundation.FormHandlerBase
close, close, close, executeInsertWithIdentityMSSQLMYSQL, executeInsertWithIdentityOracle, executeIntegerQuery, executeIntegerQuery, executeIntegersQuery, executeIntegersQuery, executeQuery, executeStringQuery, executeUpdate, fillValues, getDataSource, setArguments, setArguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBInsertHandler

public DBInsertHandler()
Method Detail

init

public void init(FormComponentConfig config)
          throws InitializationException
Description copied from interface: FormComponent
Passes the initialization parameters to the component.

Specified by:
init in interface FormComponent
Parameters:
config - The FormComponentConfig object that contains configutation information for this component.
Throws:
InitializationException - If initialization failed

doHandle

public void doHandle(FormDefinition form,
                     State formState,
                     javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws HandleException
Description copied from interface: Handler
Processes the form.

Specified by:
doHandle in interface Handler
Parameters:
form - The definition of the form for which the submitted values should be handled.
formState - The session values for the form
request - The http request
response - The http response
Throws:
HandleException - If the form values could not be handled correctly


Copyright © 2007-2010 GX creative online development BV. All Rights Reserved.