org.apache.jetspeed.modules.actions.portlets.browser
Interface BrowserQuery

All Known Implementing Classes:
DatabaseBrowserAction

public interface BrowserQuery

Browser Query Fetch Interface

Version:
$Id: BrowserQuery.java,v 1.9 2004/02/23 02:51:19 jford Exp $
Author:
David Sean Taylor

Method Summary
 boolean filter(java.util.List row, org.apache.turbine.util.RunData rundata)
          Filter the row programmatically on a query.
 java.lang.String getQueryString(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          This method returns the query to be executed to get the results which will be opened in the browser.
 java.util.List getSQLParameters()
           
 void setSQLParameters(java.util.List parameters)
           
 

Method Detail

getQueryString

public java.lang.String getQueryString(org.apache.turbine.util.RunData rundata,
                                       org.apache.velocity.context.Context context)
This method returns the query to be executed to get the results which will be opened in the browser.


filter

public boolean filter(java.util.List row,
                      org.apache.turbine.util.RunData rundata)
Filter the row programmatically on a query. By returning true, instruct the database browser to filter the row. By returning false, instruct the database browser to keep the row. (Filtering means removing the row from the final result set).

Parameters:
row - The row being inspected for filtration.
Returns:
True to filter the row, false to keep it.

setSQLParameters

public void setSQLParameters(java.util.List parameters)

getSQLParameters

public java.util.List getSQLParameters()


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.