public class EmptyDataFactory extends AbstractDataFactory
AbstractDataFactory.DataRowWrapper
DESIGN_TIME
QUERY_LIMIT, QUERY_SORT, QUERY_TIMEOUT
Constructor and Description |
---|
EmptyDataFactory() |
Modifier and Type | Method and Description |
---|---|
EmptyDataFactory |
clone() |
void |
close()
Closes the data factory and frees all resources held by this instance.
|
String[] |
getQueryNames()
Returns all known query-names.
|
boolean |
isQueryExecutable(String query,
DataRow parameters)
Checks whether the query would be executable by this datafactory.
|
TableModel |
queryData(String query,
DataRow parameters)
Queries a datasource.
|
calculateQueryLimit, calculateQueryTimeOut, cancelRunningQuery, derive, getConfiguration, getContextKey, getDataFactoryContext, getDisplayConnectionName, getLocale, getMetaData, getQueryHash, getReferencedFields, getResourceBundleFactory, getResourceManager, initialize, queryDesignTimeStructure
public TableModel queryData(String query, DataRow parameters) throws ReportDataFactoryException
query
- the query stringparameters
- the parameters for the queryReportDataFactoryException
- if an error occured while performing the query.public void close()
public boolean isQueryExecutable(String query, DataRow parameters)
query
- parameters
- public String[] getQueryNames()
DataFactory
public EmptyDataFactory clone()
clone
in interface DataFactory
clone
in class AbstractDataFactory
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.