1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.modules.actions.portlets.browser;
18
19 import java.util.List;
20
21 import org.apache.turbine.util.RunData;
22
23 import org.apache.velocity.context.Context;
24
25 /***
26 * Browser Query Fetch Interface
27 *
28 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
29 * @version $Id: BrowserQuery.java,v 1.9 2004/02/23 02:51:19 jford Exp $
30 *
31 */
32 public interface BrowserQuery
33 {
34
35 /***
36 * This method returns the query to be executed to get the results which will
37 * be opened in the browser.
38 *
39 */
40 public String getQueryString(RunData rundata, Context context);
41
42 /***
43 * Filter the row programmatically on a query.
44 * By returning true, instruct the database browser to filter the row.
45 * By returning false, instruct the database browser to keep the row.
46 * (Filtering means removing the row from the final result set).
47 *
48 * @param row The row being inspected for filtration.
49 * @return True to filter the row, false to keep it.
50 */
51 public boolean filter(List row, RunData rundata);
52
53
54
55
56
57
58
59 public void setSQLParameters(List parameters);
60
61 public List getSQLParameters();
62
63
64 }