public class ExternalDataFactory extends AbstractDataFactory
DESIGN_TIME
QUERY_LIMIT, QUERY_SORT, QUERY_TIMEOUT
Constructor and Description |
---|
ExternalDataFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
cancelRunningQuery, clone, 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 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