org.jfree.report.flow

Class DefaultFlowController

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

DefaultFlowController(DefaultFlowController fc, GlobalMasterRow dataRow)
DefaultFlowController(ReportContext reportContext, ReportJob job)

Method Summary

FlowController
activateExpressions(ExpressionSlot[] expressions)
FlowController
createPrecomputeInstance()
FlowController
deactivateExpressions()
ExpressionSlot[]
getActiveExpressions()
Returns the current expression slots of all currently active expressions.
String
getExportDescriptor()
GlobalMasterRow
getMasterRow()
PrecomputedValueRegistry
getPrecomputedValueRegistry()
ReportContext
getReportContext()
ReportJob
getReportJob()
boolean
isAdvanceRequested()
FlowController
performOperation(FlowControlOperation operation)
FlowController
performQuery(String query)
This should be called only once per report processing.
FlowController
performReturnFromQuery()
FlowController
performSubReportQuery(String query, ParameterMapping[] inputParameters, ParameterMapping[] outputParameters)

Constructor Details

DefaultFlowController

protected DefaultFlowController(DefaultFlowController fc,
                                GlobalMasterRow dataRow)

DefaultFlowController

public DefaultFlowController(ReportContext reportContext,
                             ReportJob job)
            throws DataSourceException

Method Details

activateExpressions

public FlowController activateExpressions(ExpressionSlot[] expressions)
            throws DataSourceException
Specified by:
activateExpressions in interface FlowController

createPrecomputeInstance

public FlowController createPrecomputeInstance()
            throws DataSourceException
Specified by:
createPrecomputeInstance in interface FlowController

deactivateExpressions

public FlowController deactivateExpressions()
            throws DataSourceException
Specified by:
deactivateExpressions in interface FlowController

getActiveExpressions

public ExpressionSlot[] getActiveExpressions()
            throws DataSourceException
Returns the current expression slots of all currently active expressions.
Specified by:
getActiveExpressions in interface FlowController
Returns:

getExportDescriptor

public String getExportDescriptor()
Specified by:
getExportDescriptor in interface FlowController

getMasterRow

public GlobalMasterRow getMasterRow()
Specified by:
getMasterRow in interface FlowController

getPrecomputedValueRegistry

public PrecomputedValueRegistry getPrecomputedValueRegistry()
Specified by:
getPrecomputedValueRegistry in interface FlowController

getReportContext

public ReportContext getReportContext()
Specified by:
getReportContext in interface FlowController

getReportJob

public ReportJob getReportJob()
Specified by:
getReportJob in interface FlowController

isAdvanceRequested

public boolean isAdvanceRequested()
Specified by:
isAdvanceRequested in interface FlowController

performOperation

public FlowController performOperation(FlowControlOperation operation)
            throws DataSourceException
Specified by:
performOperation in interface FlowController

performQuery

public FlowController performQuery(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:
performQuery in interface FlowController
Parameters:
query -
Returns:

performReturnFromQuery

public FlowController performReturnFromQuery()
            throws DataSourceException
Specified by:
performReturnFromQuery in interface FlowController

performSubReportQuery

public FlowController performSubReportQuery(String query,
                                            ParameterMapping[] inputParameters,
                                            ParameterMapping[] outputParameters)
            throws ReportDataFactoryException,
                   DataSourceException
Specified by:
performSubReportQuery in interface FlowController