org.dbforms.config
Class DbEventInterceptorData

java.lang.Object
  extended by org.dbforms.config.DbEventInterceptorData

public class DbEventInterceptorData
extends Object

Class to transport the data in the interceptors.

Author:
hkk

Field Summary
static String CONNECTIONNAME
          filled with the currently used connection name in all events
static String FIELDVALUES
          filled with FieldValues array during insert, delete and update events
static String KEYVALUES
          filled with KeyValues string during delete and update events
static String OBJECTROW
          filled with objectrow which should be added during AddRow events
static String PAGECONTEXT
          filled with the pageContext during select events
static String RESULTSET
          filled with current ResultsetVector during AddRow and Select events
static String ROWSAFFECTED
          filled with affected rows during insert/update/delete event
 
Constructor Summary
DbEventInterceptorData(HttpServletRequest request, DbFormsConfig config, Connection connection, Table table)
          Creates a new DbEventInterceptorData object.
 
Method Summary
 Object getAttribute(String key)
          reads a value from the attributes list
 Map getAttributesMap()
          DOCUMENT ME!
 DbFormsConfig getConfig()
           
 Connection getConnection()
           
 HttpServletRequest getRequest()
           
 Table getTable()
           
 void setAttribute(String key, Object value)
          Stores a value in the attributes list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELDVALUES

public static final String FIELDVALUES
filled with FieldValues array during insert, delete and update events

See Also:
Constant Field Values

KEYVALUES

public static final String KEYVALUES
filled with KeyValues string during delete and update events

See Also:
Constant Field Values

RESULTSET

public static final String RESULTSET
filled with current ResultsetVector during AddRow and Select events

See Also:
Constant Field Values

OBJECTROW

public static final String OBJECTROW
filled with objectrow which should be added during AddRow events

See Also:
Constant Field Values

CONNECTIONNAME

public static final String CONNECTIONNAME
filled with the currently used connection name in all events

See Also:
Constant Field Values

PAGECONTEXT

public static final String PAGECONTEXT
filled with the pageContext during select events

See Also:
Constant Field Values

ROWSAFFECTED

public static final String ROWSAFFECTED
filled with affected rows during insert/update/delete event

See Also:
Constant Field Values
Constructor Detail

DbEventInterceptorData

public DbEventInterceptorData(HttpServletRequest request,
                              DbFormsConfig config,
                              Connection connection,
                              Table table)
Creates a new DbEventInterceptorData object.

Parameters:
request - DOCUMENT ME!
config - DOCUMENT ME!
connection - DOCUMENT ME!
Method Detail

getAttributesMap

public Map getAttributesMap()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getAttribute

public Object getAttribute(String key)
reads a value from the attributes list

Parameters:
key - key to read
Returns:
The value. If not found null

setAttribute

public void setAttribute(String key,
                         Object value)
Stores a value in the attributes list

Parameters:
key - key for the value
value - value to store

getConfig

public DbFormsConfig getConfig()
Returns:
Returns the config.

getConnection

public Connection getConnection()
Returns:
Returns the connection.

getRequest

public HttpServletRequest getRequest()
Returns:
Returns the request.

getTable

public Table getTable()
Returns:
Returns the table.


Copyright © 2002-2005 DbForms. All Rights Reserved.