|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbforms.event.WebEvent org.dbforms.event.DatabaseEvent
public abstract class DatabaseEvent
Abstract base class for all web-events related to database operations like inserts, updates, deletes.
Constructor Summary | |
---|---|
DatabaseEvent(int tableId,
String keyId,
HttpServletRequest request,
DbFormsConfig config)
Creates a new DatabaseEvent object. |
Method Summary | |
---|---|
void |
doValidation(String formValidatorName,
ServletContext context)
DO the validation of the form with Commons-Validator. |
abstract FieldValues |
getFieldValues()
Get the hash table containing the form field names and values taken from the request object. |
protected FieldValues |
getFieldValues(boolean insertMode)
Get the FieldValues object representing the collection of FieldValue objects builded from the request parameters |
String |
getKeyId()
Get the keyId parameter value |
protected String |
getKeyValues()
Return the key values string from the request object |
abstract void |
processEvent(Connection con)
Process this event. |
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 |
---|
public DatabaseEvent(int tableId, String keyId, HttpServletRequest request, DbFormsConfig config)
tableId
- the table idkeyId
- the key idrequest
- the request objectconfig
- the configuration objectMethod Detail |
---|
public abstract FieldValues getFieldValues()
name = f_0_insroot_6 value = foo-bar
public String getKeyId()
public void doValidation(String formValidatorName, ServletContext context) throws MultipleValidationException
formValidatorName
- The form name to retreive in validation.xmlcontext
- The servlet context we are processing
MultipleValidationException
- The Vector of errors throwed with this exceptionpublic abstract void processEvent(Connection con) throws SQLException, MultipleValidationException
con
- the jdbc connection object
SQLException
- if any data access error occurs
MultipleValidationException
- if any validation error occursprotected FieldValues getFieldValues(boolean insertMode)
insertMode
- true DOCUMENT ME!
protected String getKeyValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |