1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  package org.dbforms.event.classic;
25  
26  import org.apache.commons.logging.Log;
27  import org.apache.commons.logging.LogFactory;
28  
29  import org.dbforms.config.*;
30  
31  import org.dbforms.event.AbstractNavigationEvent;
32  import org.dbforms.interfaces.DbEventInterceptorData;
33  
34  import java.sql.*;
35  
36  import javax.servlet.http.*;
37  
38  
39  
40  /***
41   * DOCUMENT ME!
42   *
43   * @author Joe Peer
44   *
45   * @deprecated <p>
46   */
47  public class NavFirstEvent extends AbstractNavigationEvent {
48     static Log logCat = LogFactory.getLog(NavFirstEvent.class.getName()); 
49  
50     /***
51      * Creates a new NavFirstEvent object.
52      *
53      * @param action DOCUMENT ME!
54      * @param request DOCUMENT ME!
55      * @param config DOCUMENT ME!
56      */
57     public NavFirstEvent(String             action,
58                          HttpServletRequest request,
59                          DbFormsConfig      config) {
60        super(action, request, config);
61     }
62  
63  
64     /***
65      * Creates a new NavFirstEvent object.
66      *
67      * @param table DOCUMENT ME!
68      * @param request DOCUMENT ME!
69      * @param config DOCUMENT ME!
70      */
71     public NavFirstEvent(Table              table,
72                          HttpServletRequest request,
73                          DbFormsConfig      config) {
74        super(table, request, config);
75     }
76  
77     /***
78      * Process the current event.
79      *
80      * @param childFieldValues FieldValue array used to restrict a set of data
81      * @param orderConstraint FieldValue array used to build a cumulation of
82      *        rules for ordering (sorting) and restricting fields to the actual
83      *        block of data
84      * @param firstPosition DOCUMENT ME!
85      * @param sqlFilterParams a string identifying the last resultset position
86      * @param count record count
87      * @param firstPosition a string identifying the first resultset position
88      * @param lastPosition DOCUMENT ME!
89      * @param dbConnectionName name of the used db connection. Can be used to
90      *        get an own db connection, e.g. to hold it during the session (see
91      *        DataSourceJDBC for example!)
92      * @param con the JDBC Connection object
93      *
94      * @return a ResultSetVector object
95      *
96      * @exception SQLException if any error occurs
97      */
98     public ResultSetVector processEvent(FieldValue[] childFieldValues,
99                                         FieldValue[] orderConstraint,
100                                        String       sqlFilter,
101                                        FieldValue[] sqlFilterParams,
102                                        int          count,
103                                        String       firstPosition,
104                                        String       lastPosition,
105                                        DbEventInterceptorData interceptorData)
106                                 throws SQLException {
107       
108       return getTable()
109                 .doConstrainedSelect(childFieldValues,
110                                      orderConstraint, sqlFilter,
111                                      sqlFilterParams, Constants.COMPARE_NONE,
112                                      count, interceptorData);
113    }
114 }