org.dbforms.event
Class ValidationEvent

java.lang.Object
  extended by org.dbforms.event.WebEvent
      extended by org.dbforms.event.DatabaseEvent
          extended by org.dbforms.event.ValidationEvent
Direct Known Subclasses:
InsertEvent, InsertEvent, UpdateEvent, UpdateEvent

public abstract class ValidationEvent
extends DatabaseEvent

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

Author:
hkk

Constructor Summary
ValidationEvent(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.DatabaseEvent
getFieldValues, getFieldValues, getKeyId, getKeyValues, processEvent
 
Methods inherited from class org.dbforms.event.WebEvent
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

ValidationEvent

public ValidationEvent(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 DatabaseEvent
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-2005 DbForms. All Rights Reserved.