public class DesignTimeDataFactory extends AbstractDataFactory
AbstractDataFactory.DataRowWrapper
DESIGN_TIME
QUERY_LIMIT, QUERY_SORT, QUERY_TIMEOUT
Constructor and Description |
---|
DesignTimeDataFactory() |
Modifier and Type | Method and Description |
---|---|
DataFactory |
clone() |
void |
close()
Closes the data factory and frees all resources held by this instance.
|
DataFactory |
derive()
Returns a copy of the data factory that is not affected by its anchestor and holds no connection to the anchestor
anymore.
|
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, getConfiguration, getContextKey, getDataFactoryContext, getDisplayConnectionName, getLocale, getMetaData, getQueryHash, getReferencedFields, getResourceBundleFactory, getResourceManager, initialize, queryDesignTimeStructure
public TableModel queryData(String query, DataRow parameters) throws ReportDataFactoryException
DataFactory
query
- the query string, never null.parameters
- the parameters for the query, never null.ReportDataFactoryException
- if an error occured while performing the query.public DataFactory derive()
DataFactory
derive
in interface DataFactory
derive
in class AbstractDataFactory
public DataFactory clone()
clone
in interface DataFactory
clone
in class AbstractDataFactory
public void close()
DataFactory
public boolean isQueryExecutable(String query, DataRow parameters)
DataFactory
query
- the query, never null.parameters
- the parameters, never null.public String[] getQueryNames()
DataFactory
Copyright © 2017 Hitachi Vantara. All rights reserved.