org.dbforms.event
Class AbstractValidationEvent
java.lang.Object
org.dbforms.event.AbstractWebEvent
org.dbforms.event.AbstractDatabaseEvent
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
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 |
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!
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.xmlcontext
- The servlet request we are processing
- Throws:
MultipleValidationException
- The Vector of errors throwed with
this exception
Copyright © 2002-2006 DbForms. All Rights Reserved.