org.dbforms.event
Class AbstractValidationEvent

java.lang.Object
  extended by org.dbforms.event.AbstractWebEvent
      extended by org.dbforms.event.AbstractDatabaseEvent
          extended by org.dbforms.event.AbstractValidationEvent
Direct Known Subclasses:
InsertEvent, InsertEvent, UpdateEvent, UpdateEvent

public abstract class AbstractValidationEvent
extends AbstractDatabaseEvent

abstract base class for all database operations which need validation, e.g. InsertEvent and UpdateEvent

Author:
hkk

Constructor Summary
AbstractValidationEvent(int tableId, String keyId, HttpServletRequest request, DbFormsConfig config)
          Creates a new ValidationEvent object.
 
Method Summary
 void doValidation(String formValidatorName, ServletContext context)
          DO the validation of the form with Commons-Validator.
 
Methods inherited from class org.dbforms.event.AbstractDatabaseEvent
getFieldValues, getFieldValues, getKeyId, getKeyValues, processEvent
 
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

AbstractValidationEvent

public AbstractValidationEvent(int tableId,
                               String keyId,
                               HttpServletRequest request,
                               DbFormsConfig config)
Creates a new ValidationEvent object.

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

doValidation

public void doValidation(String formValidatorName,
                         ServletContext context)
                  throws MultipleValidationException
DO the validation of the form with Commons-Validator.

Overrides:
doValidation in class AbstractDatabaseEvent
Parameters:
formValidatorName - The form name to retreive in validation.xml
context - The servlet request we are processing
Throws:
MultipleValidationException - The Vector of errors throwed with this exception


Copyright © 2002-2006 DbForms. All Rights Reserved.