| java.lang.Object org.jfree.report.modules.misc.datafactory.StaticDataFactory org.jfree.report.modules.misc.datafactory.NamedStaticDataFactory
NamedStaticDataFactory | public class NamedStaticDataFactory extends StaticDataFactory (Code) | | A NamedStaticDataFactory provides an query-aliasing facility to decouple
the report definitions from the underlying datasource implentation. The
reports no longer need to specify the raw-query (which is in fact just an
implementation detail) and can use a symbolic name in the report definition
instead.
author: Thomas Morgner |
NamedStaticDataFactory | public NamedStaticDataFactory()(Code) | | Defaultconstructor.
|
getQuery | public String getQuery(String name)(Code) | | Returns the query for the given alias-name or null, if there is no such alias
defined.
Parameters: name - the alias name. the real query or null. |
getQueryNames | public String[] getQueryNames()(Code) | | Returns all known alias-names.
all alias-names as string-array. |
queryData | public TableModel queryData(String query, DataRow parameters) throws ReportDataFactoryException(Code) | | Queries a datasource. The string 'query' defines the name of the query. The
Parameterset given here may contain more data than actually needed.
The dataset may change between two calls, do not assume anything!
Parameters: query - the alias-name of the query. Parameters: parameters - the set of parameters. the tablemodel. |
setQuery | public void setQuery(String alias, String queryString)(Code) | | Adds an query-alias to this factory.
Parameters: alias - the alias Parameters: queryString - the real query string that should be used when thealias is specified as query. |
|
|