public class StaticDataFactory extends AbstractDataFactory
AbstractDataFactory.DataRowWrapper
DESIGN_TIME
QUERY_LIMIT, QUERY_SORT, QUERY_TIMEOUT
Constructor and Description |
---|
StaticDataFactory()
DefaultConstructor.
|
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.
|
protected ClassLoader |
getClassLoader()
Returns the current classloader.
|
String[] |
getParameterFields(String query) |
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.
|
String |
translateQuery(String queryName) |
calculateQueryLimit, calculateQueryTimeOut, cancelRunningQuery, clone, getConfiguration, getContextKey, getDataFactoryContext, getDisplayConnectionName, getLocale, getMetaData, getQueryHash, getReferencedFields, getResourceBundleFactory, getResourceManager, initialize, queryDesignTimeStructure
public boolean isQueryExecutable(String query, DataRow parameters)
query
- parameters
- public TableModel queryData(String query, DataRow parameters) throws ReportDataFactoryException
query
- the method call.parameters
- the set of parameters.ReportDataFactoryException
- if an error occured while performing the query.public String[] getParameterFields(String query) throws ReportDataFactoryException
ReportDataFactoryException
protected ClassLoader getClassLoader()
public DataFactory derive()
derive
in interface DataFactory
derive
in class AbstractDataFactory
public void close()
public String[] getQueryNames()
DataFactory
Copyright © 2017 Hitachi Vantara. All rights reserved.