org.dbforms.interfaces
Class DbEventInterceptorData

java.lang.Object
  extended by org.dbforms.interfaces.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 FORMTAG
          filled with the current form during select 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()
           
 ISqlFilter getSqlFilterTag()
           
 Table getTable()
           
 void removeAttribute(String key)
          Removes a value in the attributes list
 void setAttribute(String key, Object value)
          Stores a value in the attributes list
 void setSqlFilterTag(ISqlFilter sqlFilterTag)
           
 
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

FORMTAG

public static final String FORMTAG
filled with the current form 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

removeAttribute

public void removeAttribute(String key)
Removes a value in the attributes list

Parameters:
key - key for the value

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.

getSqlFilterTag

public ISqlFilter getSqlFilterTag()

setSqlFilterTag

public void setSqlFilterTag(ISqlFilter sqlFilterTag)


Copyright © 2002-2006 DbForms. All Rights Reserved.