public abstract class AbstractNamedDataFactory<T> extends AbstractDataFactory
DESIGN_TIME
QUERY_LIMIT, QUERY_SORT, QUERY_TIMEOUT
Constructor and Description |
---|
AbstractNamedDataFactory() |
Modifier and Type | Method and Description |
---|---|
Object |
getQueryHash(String query,
DataRow dataRow) |
String[] |
getQueryNames()
Returns all known query-names.
|
String[] |
getReferencedFields(String query,
DataRow dataRow) |
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, derive, getConfiguration, getContextKey, getDataFactoryContext, getDisplayConnectionName, getLocale, getMetaData, getResourceBundleFactory, getResourceManager, initialize, queryDesignTimeStructure
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
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.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
public final Object getQueryHash(String query, DataRow dataRow) throws ReportDataFactoryException
getQueryHash
in interface DataFactoryMetaProvider
getQueryHash
in class AbstractDataFactory
ReportDataFactoryException