Package org.jfree.report.flow
Class DefaultFlowController
- java.lang.Object
-
- org.jfree.report.flow.DefaultFlowController
-
- All Implemented Interfaces:
FlowController
public class DefaultFlowController extends java.lang.Object implements FlowController
Creation-Date: 20.02.2006, 15:30:21- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultFlowController(DefaultFlowController fc, GlobalMasterRow dataRow)DefaultFlowController(ReportContext reportContext, ReportJob job)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlowControlleractivateExpressions(ExpressionSlot[] expressions)Activates expressions that compute running values.FlowControllercreatePrecomputeInstance()FlowControllerdeactivateExpressions()ExpressionSlot[]getActiveExpressions()Returns the current expression slots of all currently active expressions.java.lang.StringgetExportDescriptor()GlobalMasterRowgetMasterRow()PrecomputedValueRegistrygetPrecomputedValueRegistry()ReportContextgetReportContext()ReportJobgetReportJob()booleanisAdvanceRequested()FlowControllerperformOperation(FlowControlOperation operation)FlowControllerperformQuery(java.lang.String query)This should be called only once per report processing.FlowControllerperformReturnFromQuery()FlowControllerperformSubReportQuery(java.lang.String query, ParameterMapping[] inputParameters, ParameterMapping[] outputParameters)
-
-
-
Constructor Detail
-
DefaultFlowController
public DefaultFlowController(ReportContext reportContext, ReportJob job) throws DataSourceException
- Throws:
DataSourceException
-
DefaultFlowController
protected DefaultFlowController(DefaultFlowController fc, GlobalMasterRow dataRow)
-
-
Method Detail
-
performOperation
public FlowController performOperation(FlowControlOperation operation) throws DataSourceException
- Specified by:
performOperationin interfaceFlowController- Throws:
DataSourceException
-
getMasterRow
public GlobalMasterRow getMasterRow()
- Specified by:
getMasterRowin interfaceFlowController
-
isAdvanceRequested
public boolean isAdvanceRequested()
- Specified by:
isAdvanceRequestedin interfaceFlowController
-
performQuery
public FlowController performQuery(java.lang.String query) throws ReportDataFactoryException, DataSourceException
This should be called only once per report processing. A JFreeReport object defines the global master report - all other reports are subreport instances. The global master report receives its parameter set from the Job-Definition, while subreports will read their parameters from the current datarow state.- Specified by:
performQueryin interfaceFlowController- Parameters:
query-- Returns:
- Throws:
ReportDataFactoryExceptionDataSourceException
-
performSubReportQuery
public FlowController performSubReportQuery(java.lang.String query, ParameterMapping[] inputParameters, ParameterMapping[] outputParameters) throws ReportDataFactoryException, DataSourceException
- Specified by:
performSubReportQueryin interfaceFlowController- Throws:
ReportDataFactoryExceptionDataSourceException
-
activateExpressions
public FlowController activateExpressions(ExpressionSlot[] expressions) throws DataSourceException
Description copied from interface:FlowControllerActivates expressions that compute running values. This does not activate precomputed expressions.- Specified by:
activateExpressionsin interfaceFlowController- Returns:
- Throws:
DataSourceException
-
deactivateExpressions
public FlowController deactivateExpressions() throws DataSourceException
- Specified by:
deactivateExpressionsin interfaceFlowController- Throws:
DataSourceException
-
performReturnFromQuery
public FlowController performReturnFromQuery() throws DataSourceException
- Specified by:
performReturnFromQueryin interfaceFlowController- Throws:
DataSourceException
-
getReportJob
public ReportJob getReportJob()
- Specified by:
getReportJobin interfaceFlowController
-
getExportDescriptor
public java.lang.String getExportDescriptor()
- Specified by:
getExportDescriptorin interfaceFlowController
-
getReportContext
public ReportContext getReportContext()
- Specified by:
getReportContextin interfaceFlowController
-
getActiveExpressions
public ExpressionSlot[] getActiveExpressions() throws DataSourceException
Returns the current expression slots of all currently active expressions.- Specified by:
getActiveExpressionsin interfaceFlowController- Returns:
- Throws:
DataSourceException
-
createPrecomputeInstance
public FlowController createPrecomputeInstance() throws DataSourceException
- Specified by:
createPrecomputeInstancein interfaceFlowController- Throws:
DataSourceException
-
getPrecomputedValueRegistry
public PrecomputedValueRegistry getPrecomputedValueRegistry()
- Specified by:
getPrecomputedValueRegistryin interfaceFlowController
-
-