Class CascadingDataFactory
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.AbstractDataFactory
-
- org.pentaho.reporting.engine.classic.core.CompoundDataFactory
-
- org.pentaho.reporting.engine.classic.core.states.CascadingDataFactory
-
- All Implemented Interfaces:
Serializable
,Cloneable
,CompoundDataFactorySupport
,DataFactory
,DataFactoryDesignTimeSupport
,DataFactoryMetaProvider
public class CascadingDataFactory extends CompoundDataFactory
The cascading data factory is a collection of data-factories. Each of the child datafactories is queried in the order of their addition to the collection. This is like the CompoundDataFactory but without deriving the datafactories on addition and without forwarding the open and close calls. Implementation note: This is a purely internal class. Any attempt to use this class as a general datafactory implementation will give you a lot of fun and happy exceptions. Just dont do it.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.pentaho.reporting.engine.classic.core.AbstractDataFactory
AbstractDataFactory.DataRowWrapper
-
-
Field Summary
-
Fields inherited from interface org.pentaho.reporting.engine.classic.core.DataFactory
QUERY_LIMIT, QUERY_SORT, QUERY_TIMEOUT
-
Fields inherited from interface org.pentaho.reporting.engine.classic.core.DataFactoryDesignTimeSupport
DESIGN_TIME
-
-
Constructor Summary
Constructors Constructor Description CascadingDataFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(DataFactory factory)
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 TableModel
handleFallThrough(String query)
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.CompoundDataFactory
add, addRaw, deriveEmpty, get, getDataFactoryForQuery, getDataFactoryForQuery, getQueryNames, getReference, indexOfByReference, initialize, isFreeFormQueryExecutable, isNormalized, isQueryExecutable, isStaticQueryExecutable, normalize, normalize, normalizeInternal, postProcess, queryData, queryDesignTimeStructure, queryDesignTimeStructureFreeForm, queryDesignTimeStructureStatic, queryFreeForm, queryStatic, remove, remove, set, size
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.AbstractDataFactory
calculateQueryLimit, calculateQueryTimeOut, cancelRunningQuery, clone, getConfiguration, getContextKey, getDataFactoryContext, getDisplayConnectionName, getLocale, getMetaData, getQueryHash, getReferencedFields, getResourceBundleFactory, getResourceManager
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.reporting.engine.classic.core.DataFactory
cancelRunningQuery, clone, getMetaData
-
-
-
-
Method Detail
-
add
public void add(DataFactory factory)
- Overrides:
add
in classCompoundDataFactory
-
handleFallThrough
protected TableModel handleFallThrough(String query) throws ReportDataFactoryException
- Overrides:
handleFallThrough
in classCompoundDataFactory
- Throws:
ReportDataFactoryException
-
derive
public DataFactory derive()
Returns a copy of the data factory that is not affected by its anchestor and holds no connection to the anchestor anymore. A data-factory will be derived at the beginning of the report processing.- Specified by:
derive
in interfaceDataFactory
- Overrides:
derive
in classCompoundDataFactory
- Returns:
- a copy of the data factory.
-
close
public void close()
Closes the data factory and frees all resources held by this instance.- Specified by:
close
in interfaceDataFactory
- Overrides:
close
in classCompoundDataFactory
-
-