org.dbforms.event.datalist
Class UpdateEvent
java.lang.Object
org.dbforms.event.AbstractWebEvent
org.dbforms.event.AbstractDatabaseEvent
org.dbforms.event.AbstractValidationEvent
org.dbforms.event.datalist.UpdateEvent
public class UpdateEvent
- extends AbstractValidationEvent
This event prepares and performs a SQL-Update operation.
Works with new factory classes.
- Author:
- Henner Kollmann
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 |
UpdateEvent
public UpdateEvent(Integer tableId,
String keyId,
HttpServletRequest request,
DbFormsConfig config)
- Creates a new UpdateEvent object.
- Parameters:
tableId
- the table identifierkeyId
- the keyrequest
- the request objectconfig
- the configuration object
UpdateEvent
public UpdateEvent(String action,
HttpServletRequest request,
DbFormsConfig config)
- Creates a new UpdateEvent object.
- Parameters:
action
- the action stringrequest
- the request objectconfig
- the configuration object
getFieldValues
public FieldValues getFieldValues()
- Get the FieldValues object.
- Specified by:
getFieldValues
in class AbstractDatabaseEvent
- Returns:
- the FieldValues object
processEvent
public void processEvent(Connection con)
throws SQLException,
MultipleValidationException
- Process this event.
- Specified by:
processEvent
in class AbstractDatabaseEvent
- Parameters:
con
- the connection object
- Throws:
SQLException
- if any SQL error occurs
MultipleValidationException
- if any validation error occurs
Copyright © 2002-2006 DbForms. All Rights Reserved.