|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.engine.classic.core.cache.CachingDataFactory
public class CachingDataFactory
| Field Summary |
|---|
| Fields inherited from interface org.pentaho.reporting.engine.classic.core.DataFactory |
|---|
QUERY_LIMIT, QUERY_TIMEOUT |
| Constructor Summary | |
|---|---|
CachingDataFactory(DataFactory backend,
boolean dataCacheEnabled)
|
|
CachingDataFactory(DataFactory backend,
boolean noClose,
boolean dataCacheEnabled)
|
|
| Method Summary | |
|---|---|
void |
cancelRunningQuery()
Attempts to cancel the query process that is generating the data for this data factory. |
Object |
clone()
|
void |
close()
Closes the report data factory and all report data instances that have been returned by this instance. |
DataFactory |
derive()
Derives a freshly initialized report data factory, which is independend of the original data factory. |
DataFactory |
getDataFactoryForQuery(String queryName,
boolean freeform)
|
String[] |
getQueryNames()
Returns all known query-names. |
void |
initialize(org.pentaho.reporting.libraries.base.config.Configuration configuration,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey contextKey,
ResourceBundleFactory resourceBundleFactory)
Initializes the data factory and provides new context information. |
boolean |
isFreeFormQueryExecutable(String query,
DataRow parameter)
|
boolean |
isQueryExecutable(String query,
DataRow parameters)
Checks whether the query would be executable by this datafactory. |
boolean |
isStaticQueryExecutable(String query,
DataRow parameters)
|
void |
open()
Opens the data factory. |
static void |
printTableModelContents(TableModel mod)
Prints a table model to standard output. |
TableModel |
queryData(String query,
DataRow parameters)
Queries a datasource. |
TableModel |
queryFreeForm(String query,
DataRow parameters)
|
TableModel |
queryStatic(String query,
DataRow parameters)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachingDataFactory(DataFactory backend,
boolean dataCacheEnabled)
public CachingDataFactory(DataFactory backend,
boolean noClose,
boolean dataCacheEnabled)
| Method Detail |
|---|
public void initialize(org.pentaho.reporting.libraries.base.config.Configuration configuration,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey contextKey,
ResourceBundleFactory resourceBundleFactory)
throws ReportDataFactoryException
DataFactory
initialize in interface DataFactoryconfiguration - the current report configuration.resourceManager - the report's resource manager.contextKey - the report's context key to access resources relative to the report location.resourceBundleFactory - the report's resource-bundle factory to access localization information.
ReportDataFactoryException
public void open()
throws ReportDataFactoryException
DataFactory
open in interface DataFactoryReportDataFactoryException - if an error occured while opening the datafactory resources.
public boolean isQueryExecutable(String query,
DataRow parameters)
DataFactory
isQueryExecutable in interface DataFactoryquery - the query, never null.parameters - the parameters, never null.
public boolean isFreeFormQueryExecutable(String query,
DataRow parameter)
isFreeFormQueryExecutable in interface CompoundDataFactorySupport
public TableModel queryStatic(String query,
DataRow parameters)
throws ReportDataFactoryException
queryStatic in interface CompoundDataFactorySupportReportDataFactoryException
public TableModel queryFreeForm(String query,
DataRow parameters)
throws ReportDataFactoryException
queryFreeForm in interface CompoundDataFactorySupportReportDataFactoryException
public boolean isStaticQueryExecutable(String query,
DataRow parameters)
isStaticQueryExecutable in interface CompoundDataFactorySupport
public TableModel queryData(String query,
DataRow parameters)
throws ReportDataFactoryException
queryData in interface DataFactoryquery - parameters -
ReportDataFactoryException - if an error occured while performing the query.public void close()
close in interface DataFactorypublic DataFactory derive()
derive in interface DataFactoryUnsupportedOperationException - as this class is not derivable.public static void printTableModelContents(TableModel mod)
mod - the model.public String[] getQueryNames()
DataFactory
getQueryNames in interface DataFactorypublic void cancelRunningQuery()
DataFactory
cancelRunningQuery in interface DataFactorypublic Object clone()
clone in interface DataFactoryclone in class Object
public DataFactory getDataFactoryForQuery(String queryName,
boolean freeform)
getDataFactoryForQuery in interface CompoundDataFactorySupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||