|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 DataFactory
configuration
- 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 DataFactory
ReportDataFactoryException
- if an error occured while opening the datafactory resources.public boolean isQueryExecutable(String query, DataRow parameters)
DataFactory
isQueryExecutable
in interface DataFactory
query
- 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 CompoundDataFactorySupport
ReportDataFactoryException
public TableModel queryFreeForm(String query, DataRow parameters) throws ReportDataFactoryException
queryFreeForm
in interface CompoundDataFactorySupport
ReportDataFactoryException
public boolean isStaticQueryExecutable(String query, DataRow parameters)
isStaticQueryExecutable
in interface CompoundDataFactorySupport
public TableModel queryData(String query, DataRow parameters) throws ReportDataFactoryException
queryData
in interface DataFactory
query
- parameters
-
ReportDataFactoryException
- if an error occured while performing the query.public void close()
close
in interface DataFactory
public DataFactory derive()
derive
in interface DataFactory
UnsupportedOperationException
- as this class is not derivable.public static void printTableModelContents(TableModel mod)
mod
- the model.public String[] getQueryNames()
DataFactory
getQueryNames
in interface DataFactory
public void cancelRunningQuery()
DataFactory
cancelRunningQuery
in interface DataFactory
public Object clone()
clone
in interface DataFactory
clone
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 |