org.dbforms.event
Class DbEventInterceptorSupport

java.lang.Object
  extended by org.dbforms.event.DbEventInterceptorSupport
All Implemented Interfaces:
IDbEventInterceptor
Direct Known Subclasses:
BlobInterceptor

public class DbEventInterceptorSupport
extends Object
implements IDbEventInterceptor

convenience class

Author:
Joe Peer

Field Summary
 
Fields inherited from interface org.dbforms.interfaces.IDbEventInterceptor
DENY_OPERATION, GRANT_OPERATION, IGNORE_OPERATION, POST_ADDROW, POST_DELETE, POST_INSERT, POST_SELECT, POST_UPDATE, PRE_ADDROW, PRE_DELETE, PRE_INSERT, PRE_SELECT, PRE_UPDATE
 
Constructor Summary
DbEventInterceptorSupport()
           
 
Method Summary
 String getParameter(String key)
           
 Map getParameterMap()
          DOCUMENT ME!
 void postAddRow(DbEventInterceptorData data)
          DOCUMENT ME!
 void postDelete(DbEventInterceptorData data)
          DOCUMENT ME!
 void postDelete(HttpServletRequest request, DbFormsConfig config, Connection con)
          Deprecated.  
 void postInsert(DbEventInterceptorData data)
          DOCUMENT ME!
 void postInsert(HttpServletRequest request, DbFormsConfig config, Connection con)
          Deprecated.  
 void postSelect(DbEventInterceptorData data)
          DOCUMENT ME!
 void postSelect(HttpServletRequest request, DbFormsConfig config, Connection con)
          Deprecated.  
 void postUpdate(DbEventInterceptorData data)
          DOCUMENT ME!
 void postUpdate(HttpServletRequest request, DbFormsConfig config, Connection con)
          Deprecated.  
 int preAddRow(DbEventInterceptorData data)
          DOCUMENT ME!
 int preDelete(DbEventInterceptorData data)
          DOCUMENT ME!
 int preDelete(HttpServletRequest request, Table table, FieldValues fieldValues, DbFormsConfig config, Connection con)
          Deprecated.  
 int preInsert(DbEventInterceptorData data)
          DOCUMENT ME!
 int preInsert(HttpServletRequest request, Table table, FieldValues fieldValues, DbFormsConfig config, Connection con)
          Deprecated.  
 int preSelect(DbEventInterceptorData data)
          DOCUMENT ME!
 int preSelect(HttpServletRequest request, DbFormsConfig config, Connection con)
          Deprecated.  
 int preUpdate(DbEventInterceptorData data)
          DOCUMENT ME!
 int preUpdate(HttpServletRequest request, Table table, FieldValues fieldValues, DbFormsConfig config, Connection con)
          Deprecated.  
 void setParameterMap(Map params)
          DOCUMENT ME!
protected  void setValue(Table table, FieldValues fieldValues, String fieldName, String value)
          adds or replace a value in the fieldValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbEventInterceptorSupport

public DbEventInterceptorSupport()
Method Detail

setParameterMap

public void setParameterMap(Map params)
Description copied from interface: IDbEventInterceptor
DOCUMENT ME!

Specified by:
setParameterMap in interface IDbEventInterceptor
Parameters:
params - DOCUMENT ME!

getParameterMap

public Map getParameterMap()
Description copied from interface: IDbEventInterceptor
DOCUMENT ME!

Specified by:
getParameterMap in interface IDbEventInterceptor
Returns:
DOCUMENT ME!

getParameter

public String getParameter(String key)

postAddRow

public void postAddRow(DbEventInterceptorData data)
Description copied from interface: IDbEventInterceptor
DOCUMENT ME!

Specified by:
postAddRow in interface IDbEventInterceptor
Parameters:
data - DOCUMENT ME!

postDelete

public void postDelete(DbEventInterceptorData data)
Description copied from interface: IDbEventInterceptor
DOCUMENT ME!

Specified by:
postDelete in interface IDbEventInterceptor
Parameters:
data - DOCUMENT ME!

postDelete

public void postDelete(HttpServletRequest request,
                       DbFormsConfig config,
                       Connection con)
Deprecated. 

DOCUMENT ME!

Parameters:
request - DOCUMENT ME!
config - DOCUMENT ME!
con - DOCUMENT ME!

postInsert

public void postInsert(DbEventInterceptorData data)
Description copied from interface: IDbEventInterceptor
DOCUMENT ME!

Specified by:
postInsert in interface IDbEventInterceptor
Parameters:
data - DOCUMENT ME!

postInsert

public void postInsert(HttpServletRequest request,
                       DbFormsConfig config,
                       Connection con)
Deprecated. 

DOCUMENT ME!

Parameters:
request - DOCUMENT ME!
config - DOCUMENT ME!
con - DOCUMENT ME!

postSelect

public void postSelect(DbEventInterceptorData data)
Description copied from interface: IDbEventInterceptor
DOCUMENT ME!

Specified by:
postSelect in interface IDbEventInterceptor
Parameters:
data - DOCUMENT ME!

postSelect

public void postSelect(HttpServletRequest request,
                       DbFormsConfig config,
                       Connection con)
Deprecated. 

DOCUMENT ME!

Parameters:
request - DOCUMENT ME!
config - DOCUMENT ME!
con - DOCUMENT ME!

postUpdate

public void postUpdate(DbEventInterceptorData data)
Description copied from interface: IDbEventInterceptor
DOCUMENT ME!

Specified by:
postUpdate in interface IDbEventInterceptor
Parameters:
data - DOCUMENT ME!

postUpdate

public void postUpdate(HttpServletRequest request,
                       DbFormsConfig config,
                       Connection con)
Deprecated. 

DOCUMENT ME!

Parameters:
request - DOCUMENT ME!
config - DOCUMENT ME!
con - DOCUMENT ME!

preAddRow

public int preAddRow(DbEventInterceptorData data)
              throws ValidationException,
                     MultipleValidationException
Description copied from interface: IDbEventInterceptor
DOCUMENT ME!

Specified by:
preAddRow in interface IDbEventInterceptor
Parameters:
data - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
ValidationException - DOCUMENT ME!
MultipleValidationException - DOCUMENT ME!

preDelete

public int preDelete(DbEventInterceptorData data)
              throws ValidationException,
                     MultipleValidationException
Description copied from interface: IDbEventInterceptor
DOCUMENT ME!

Specified by:
preDelete in interface IDbEventInterceptor
Parameters:
data - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
ValidationException - DOCUMENT ME!
MultipleValidationException - DOCUMENT ME!

preDelete

public int preDelete(HttpServletRequest request,
                     Table table,
                     FieldValues fieldValues,
                     DbFormsConfig config,
                     Connection con)
              throws ValidationException
Deprecated. 

DOCUMENT ME!

Parameters:
request - DOCUMENT ME!
table - DOCUMENT ME!
fieldValues - DOCUMENT ME!
config - DOCUMENT ME!
con - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
ValidationException - DOCUMENT ME!

preInsert

public int preInsert(DbEventInterceptorData data)
              throws ValidationException,
                     MultipleValidationException
Description copied from interface: IDbEventInterceptor
DOCUMENT ME!

Specified by:
preInsert in interface IDbEventInterceptor
Parameters:
data - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
ValidationException - DOCUMENT ME!
MultipleValidationException - DOCUMENT ME!

preInsert

public int preInsert(HttpServletRequest request,
                     Table table,
                     FieldValues fieldValues,
                     DbFormsConfig config,
                     Connection con)
              throws ValidationException
Deprecated. 

DOCUMENT ME!

Parameters:
request - DOCUMENT ME!
table - DOCUMENT ME!
fieldValues - DOCUMENT ME!
config - DOCUMENT ME!
con - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
ValidationException - DOCUMENT ME!

preSelect

public int preSelect(DbEventInterceptorData data)
              throws ValidationException,
                     MultipleValidationException
Description copied from interface: IDbEventInterceptor
DOCUMENT ME!

Specified by:
preSelect in interface IDbEventInterceptor
Parameters:
data - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
ValidationException - DOCUMENT ME!
MultipleValidationException - DOCUMENT ME!

preSelect

public int preSelect(HttpServletRequest request,
                     DbFormsConfig config,
                     Connection con)
              throws ValidationException
Deprecated. 

DOCUMENT ME!

Parameters:
request - DOCUMENT ME!
config - DOCUMENT ME!
con - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
ValidationException - DOCUMENT ME!

preUpdate

public int preUpdate(DbEventInterceptorData data)
              throws ValidationException,
                     MultipleValidationException
Description copied from interface: IDbEventInterceptor
DOCUMENT ME!

Specified by:
preUpdate in interface IDbEventInterceptor
Parameters:
data - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
ValidationException - DOCUMENT ME!
MultipleValidationException - DOCUMENT ME!

preUpdate

public int preUpdate(HttpServletRequest request,
                     Table table,
                     FieldValues fieldValues,
                     DbFormsConfig config,
                     Connection con)
              throws ValidationException
Deprecated. 

DOCUMENT ME!

Parameters:
request - DOCUMENT ME!
table - DOCUMENT ME!
fieldValues - DOCUMENT ME!
config - DOCUMENT ME!
con - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
ValidationException - DOCUMENT ME!

setValue

protected void setValue(Table table,
                        FieldValues fieldValues,
                        String fieldName,
                        String value)
adds or replace a value in the fieldValues

Parameters:
table - wich should be used to lookup for the fieldName
fieldValues - to add/replace value to
fieldName - to add/replace value
value - to add/replace


Copyright © 2002-2006 DbForms. All Rights Reserved.