org.dbforms.event
Class NavCopyEvent

java.lang.Object
  extended by org.dbforms.event.AbstractWebEvent
      extended by org.dbforms.event.AbstractNavigationEvent
          extended by org.dbforms.event.NavCopyEvent

public class NavCopyEvent
extends AbstractNavigationEvent

This event signalizes to the framework that the user wants to initialize a new dataset with values coming from current row

#fixme: lousy description

Version:
$Revision: 1.14 $
Author:
Stefano Borghi

Constructor Summary
NavCopyEvent(String action, HttpServletRequest request, DbFormsConfig config)
          Creates a new NavCopyEvent object.
NavCopyEvent(Table table, HttpServletRequest request, DbFormsConfig config)
          Creates a new NavCopyEvent object.
 
Method Summary
 ResultSetVector processEvent(FieldValue[] childFieldValues, FieldValue[] orderConstraint, String sqlFilter, FieldValue[] sqlFilterParams, int count, String firstPosition, String lastPosition, DbEventInterceptorData interceptorData)
          Process the current event.
 
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
 

Constructor Detail

NavCopyEvent

public NavCopyEvent(String action,
                    HttpServletRequest request,
                    DbFormsConfig config)
Creates a new NavCopyEvent object.

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

NavCopyEvent

public NavCopyEvent(Table table,
                    HttpServletRequest request,
                    DbFormsConfig config)
Creates a new NavCopyEvent object.

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

processEvent

public ResultSetVector processEvent(FieldValue[] childFieldValues,
                                    FieldValue[] orderConstraint,
                                    String sqlFilter,
                                    FieldValue[] sqlFilterParams,
                                    int count,
                                    String firstPosition,
                                    String lastPosition,
                                    DbEventInterceptorData interceptorData)
                             throws SQLException
Process the current event.

Specified by:
processEvent in class AbstractNavigationEvent
Parameters:
childFieldValues - FieldValue array used to restrict a set of data
orderConstraint - FieldValue array used to build a cumulation of rules for ordering (sorting) and restricting fields to the actual block of data
sqlFilter - DOCUMENT ME!
sqlFilterParams - DOCUMENT ME!
count - record count
firstPosition - a string identifying the first resultset position
lastPosition - a string identifying the last resultset position
dbConnectionName - name of the used db connection. Can be used to get an own db connection, e.g. to hold it during the session (see DataSourceJDBC for example!)
con - the JDBC Connection object
Returns:
a ResultSetVector object
Throws:
SQLException - if any error occurs


Copyright © 2002-2006 DbForms. All Rights Reserved.