public abstract class AbstractNamedDataFactory<T> extends AbstractDataFactory
AbstractDataFactory.DataRowWrapper
DESIGN_TIME
QUERY_LIMIT, QUERY_SORT, QUERY_TIMEOUT
Constructor and Description |
---|
AbstractNamedDataFactory() |
Modifier and Type | Method and Description |
---|---|
Object |
getQueryHash(String query,
DataRow dataRow) |
protected abstract Object |
getQueryHashInternal(T queryObject,
DataRow dataRow) |
String[] |
getQueryNames()
Returns all known query-names.
|
String[] |
getReferencedFields(String query,
DataRow dataRow) |
protected abstract String[] |
getReferencedFieldsInternal(T query,
DataRow dataRow) |
boolean |
isQueryExecutable(String query,
DataRow parameters)
Checks whether the query would be executable by this datafactory.
|
protected T |
mapQuery(String query) |
TableModel |
queryData(String query,
DataRow parameters)
Queries a datasource.
|
protected abstract TableModel |
queryDataInternal(T query,
DataRow parameters) |
calculateQueryLimit, calculateQueryTimeOut, cancelRunningQuery, clone, derive, getConfiguration, getContextKey, getDataFactoryContext, getDisplayConnectionName, getLocale, getMetaData, getResourceBundleFactory, getResourceManager, initialize, queryDesignTimeStructure
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
protected T mapQuery(String query) throws ReportDataFactoryException
ReportDataFactoryException
public final 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.protected abstract TableModel queryDataInternal(T query, DataRow parameters) throws ReportDataFactoryException
ReportDataFactoryException
public boolean isQueryExecutable(String query, DataRow parameters)
DataFactory
query
- the query, never null.parameters
- the parameters, never null.public String[] getQueryNames()
DataFactory
public final String[] getReferencedFields(String query, DataRow dataRow) throws ReportDataFactoryException
getReferencedFields
in interface DataFactoryMetaProvider
getReferencedFields
in class AbstractDataFactory
ReportDataFactoryException
protected abstract String[] getReferencedFieldsInternal(T query, DataRow dataRow) throws ReportDataFactoryException
ReportDataFactoryException
public final Object getQueryHash(String query, DataRow dataRow) throws ReportDataFactoryException
getQueryHash
in interface DataFactoryMetaProvider
getQueryHash
in class AbstractDataFactory
ReportDataFactoryException
protected abstract Object getQueryHashInternal(T queryObject, DataRow dataRow) throws ReportDataFactoryException
ReportDataFactoryException
Copyright © 2017 Hitachi Vantara. All rights reserved.