Queries a datasource. The string 'query' defines the name of the query. The Parameterset given here may contain more data than actually needed for the query.
The parameter-dataset may change between two calls, do not assume anything, and do not hold references to the parameter-dataset or the position of the columns in the dataset.
@param query the query string, never null.
@param parameters the parameters for the query, never null.
@return the result of the query as table model.
@throws ReportDataFactoryException if an error occured while performing the query.