org.dbforms.event.classic
Class InsertEvent

java.lang.Object
  extended by org.dbforms.event.AbstractWebEvent
      extended by org.dbforms.event.AbstractDatabaseEvent
          extended by org.dbforms.event.AbstractValidationEvent
              extended by org.dbforms.event.classic.InsertEvent

Deprecated. This event prepares and performs a SQL-Insert operation.

public class InsertEvent
extends AbstractValidationEvent

DOCUMENT ME!

Author:
Joe Peer

Constructor Summary
InsertEvent(Integer tableId, String keyId, HttpServletRequest request, DbFormsConfig config)
          Deprecated. Creates a new InsertEvent object.
InsertEvent(String action, HttpServletRequest request, DbFormsConfig config)
          Deprecated. Insert actionbutton-strings is as follows: ac_insert_12_root_3 which is equivalent to: ac_insert : insert action event 12 : table id root : key 3 : button count used to identify individual insert buttons
 
Method Summary
 FieldValues getFieldValues()
          Deprecated. Get the hash table containing the form field names and values taken from the request object.
 void processEvent(Connection con)
          Deprecated. Process this event.
 
Methods inherited from class org.dbforms.event.AbstractValidationEvent
doValidation
 
Methods inherited from class org.dbforms.event.AbstractDatabaseEvent
getFieldValues, getKeyId, getKeyValues
 
Methods inherited from class org.dbforms.event.AbstractWebEvent
getConfig, getFollowUp, getFollowUpOnError, getProperties, getRequest, getTable, getType, hasUserPrivileg, setFollowUp, setFollowUpOnError, setProperties, setRequest, setTable, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertEvent

public InsertEvent(Integer tableId,
                   String keyId,
                   HttpServletRequest request,
                   DbFormsConfig config)
Deprecated. 
Creates a new InsertEvent object.

Parameters:
tableId - DOCUMENT ME!
keyId - DOCUMENT ME!
request - DOCUMENT ME!
config - DOCUMENT ME!

InsertEvent

public InsertEvent(String action,
                   HttpServletRequest request,
                   DbFormsConfig config)
Deprecated. 
Insert actionbutton-strings is as follows: ac_insert_12_root_3 which is equivalent to: ac_insert : insert action event 12 : table id root : key 3 : button count used to identify individual insert buttons

Parameters:
action - DOCUMENT ME!
request - DOCUMENT ME!
config - DOCUMENT ME!
Method Detail

getFieldValues

public FieldValues getFieldValues()
Deprecated. 
Get the hash table containing the form field names and values taken from the request object.
Example of a request parameter:
name = f_0_insroot_6 value = foo-bar

Specified by:
getFieldValues in class AbstractDatabaseEvent
Returns:
the hash map containing the names and values taken from the request object

processEvent

public void processEvent(Connection con)
                  throws SQLException,
                         MultipleValidationException
Deprecated. 
Process this event.

Specified by:
processEvent in class AbstractDatabaseEvent
Parameters:
con - the jdbc connection object
Throws:
SQLException - if any data access error occurs
MultipleValidationException - if any validation error occurs


Copyright © 2002-2006 DbForms. All Rights Reserved.