com.google.visualization.datasource
Interface DataTableGenerator

All Known Implementing Classes:
DataSourceServlet

public interface DataTableGenerator

An interface for a class that can generate a DataTable.

Author:
Yaniv S.

Method Summary
 DataTable generateDataTable(Query query, javax.servlet.http.HttpServletRequest request)
          Generates the data table.
 Capabilities getCapabilities()
          Returns the capabilities supported by this data table generator.
 

Method Detail

generateDataTable

DataTable generateDataTable(Query query,
                            javax.servlet.http.HttpServletRequest request)
                            throws DataSourceException
Generates the data table.

Parameters:
query - The query to execute on the underlying data. Ignore this parameter for a data source that does not support any capabilities.
request - The http request. May contain information that is relevant to generating the data table.
Returns:
The generated data table.
Throws:
DataSourceException - If the data could not be generated for any reason.

getCapabilities

Capabilities getCapabilities()
Returns the capabilities supported by this data table generator. The query that generateDataTable accepts will only contain clauses corresponding to these capabilities. (see Capabilities).

Returns:
The capabilities supported by this datasource.


Copyright © 2009 Google. All Rights Reserved.