Class GlobalMasterRow
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.states.datarow.GlobalMasterRow
-
- All Implemented Interfaces:
MasterDataRow
public final class GlobalMasterRow extends Object implements MasterDataRow
-
-
Method Summary
-
-
-
Method Detail
-
createReportRow
public static GlobalMasterRow createReportRow(ProcessingContext reportContext, DataSchemaDefinition schemaDefinition, ParameterDataRow parameterDataRow)
Creates a new master-row. This is called only once when the report processing starts for the very first time.- Parameters:
reportContext
-schemaDefinition
-parameterDataRow
-- Returns:
-
requireStructuralProcessing
public void requireStructuralProcessing()
- Specified by:
requireStructuralProcessing
in interfaceMasterDataRow
-
deriveSubDataRow
public MasterDataRow deriveSubDataRow(ProcessingContext reportContext, DataFactory reportFactory, ParameterDataRow parameterDataRow, ResourceBundleFactory resourceBundleFactory)
- Specified by:
deriveSubDataRow
in interfaceMasterDataRow
-
deriveWithQueryData
public MasterDataRow deriveWithQueryData(TableModel tableData)
- Specified by:
deriveWithQueryData
in interfaceMasterDataRow
-
deriveWithReturnFromQuery
public MasterDataRow deriveWithReturnFromQuery()
- Specified by:
deriveWithReturnFromQuery
in interfaceMasterDataRow
-
getDataFactory
public DataFactory getDataFactory()
- Specified by:
getDataFactory
in interfaceMasterDataRow
-
getDataSchema
public DataSchema getDataSchema()
- Specified by:
getDataSchema
in interfaceMasterDataRow
-
getReportDataRow
public ReportDataRow getReportDataRow()
- Specified by:
getReportDataRow
in interfaceMasterDataRow
-
getExpressionDataRow
public ExpressionDataRow getExpressionDataRow()
- Specified by:
getExpressionDataRow
in interfaceMasterDataRow
-
getParameterDataRow
public ParameterDataRow getParameterDataRow()
- Specified by:
getParameterDataRow
in interfaceMasterDataRow
-
getGlobalView
public DataRow getGlobalView()
- Specified by:
getGlobalView
in interfaceMasterDataRow
-
isAdvanceable
public boolean isAdvanceable()
- Specified by:
isAdvanceable
in interfaceMasterDataRow
-
derive
public GlobalMasterRow derive()
- Specified by:
derive
in interfaceMasterDataRow
-
setImportedDataRow
public void setImportedDataRow(ImportedVariablesDataRow dataRow)
- Specified by:
setImportedDataRow
in interfaceMasterDataRow
-
getParentDataRow
public MasterDataRow getParentDataRow()
- Specified by:
getParentDataRow
in interfaceMasterDataRow
-
advance
public MasterDataRow advance()
This advances the cursor by one row and updates the flags.- Specified by:
advance
in interfaceMasterDataRow
- Returns:
-
advanceRecursively
public GlobalMasterRow advanceRecursively(boolean deepTraversingOnly, MasterDataRow subReportRow)
This method is public as a implementation side effect. It is only intended to be used internally and no matter what you intend: If you are not calling it from a MasterDataRow implementation, then you are on the wrong track.- Specified by:
advanceRecursively
in interfaceMasterDataRow
- Parameters:
deepTraversingOnly
-subReportRow
-- Returns:
-
fireReportEvent
public void fireReportEvent(ReportEvent event)
- Specified by:
fireReportEvent
in interfaceMasterDataRow
-
startCrosstabMode
public MasterDataRow startCrosstabMode(CrosstabSpecification crosstabSpecification)
- Specified by:
startCrosstabMode
in interfaceMasterDataRow
-
endCrosstabMode
public MasterDataRow endCrosstabMode()
- Specified by:
endCrosstabMode
in interfaceMasterDataRow
-
resetRowCursor
public MasterDataRow resetRowCursor()
- Specified by:
resetRowCursor
in interfaceMasterDataRow
-
clearExportedParameters
public MasterDataRow clearExportedParameters()
- Specified by:
clearExportedParameters
in interfaceMasterDataRow
-
getResourceBundleFactory
public ResourceBundleFactory getResourceBundleFactory()
- Specified by:
getResourceBundleFactory
in interfaceMasterDataRow
-
resetDataSchema
public void resetDataSchema()
- Specified by:
resetDataSchema
in interfaceMasterDataRow
-
rebuild
public GlobalMasterRow rebuild()
- Specified by:
rebuild
in interfaceMasterDataRow
-
updateDataSchema
public MasterDataRow updateDataSchema(DataSchemaDefinition dataSchemaDefinition)
- Specified by:
updateDataSchema
in interfaceMasterDataRow
-
getDataSchemaDefinition
public DataSchemaDefinition getDataSchemaDefinition()
- Specified by:
getDataSchemaDefinition
in interfaceMasterDataRow
-
refresh
public void refresh()
- Specified by:
refresh
in interfaceMasterDataRow
-
getImportedDataRow
public ImportedVariablesDataRow getImportedDataRow()
- Specified by:
getImportedDataRow
in interfaceMasterDataRow
-
getReportData
public TableModel getReportData()
- Specified by:
getReportData
in interfaceMasterDataRow
-
getCursor
public int getCursor()
- Specified by:
getCursor
in interfaceMasterDataRow
-
getRawDataCursor
public int getRawDataCursor()
- Specified by:
getRawDataCursor
in interfaceMasterDataRow
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interfaceMasterDataRow
-
getCrosstabSpecification
public CrosstabSpecification getCrosstabSpecification()
- Specified by:
getCrosstabSpecification
in interfaceMasterDataRow
-
isCrosstabActive
public boolean isCrosstabActive()
- Specified by:
isCrosstabActive
in interfaceMasterDataRow
-
recordCrosstabRowState
public MasterDataRow recordCrosstabRowState()
- Specified by:
recordCrosstabRowState
in interfaceMasterDataRow
-
clearRecordedCrosstabRowState
public MasterDataRow clearRecordedCrosstabRowState()
- Specified by:
clearRecordedCrosstabRowState
in interfaceMasterDataRow
-
replayStoredCrosstabRowState
public MasterDataRow replayStoredCrosstabRowState()
- Specified by:
replayStoredCrosstabRowState
in interfaceMasterDataRow
-
validateReplayFinished
public void validateReplayFinished() throws ReportProcessingException
- Specified by:
validateReplayFinished
in interfaceMasterDataRow
- Throws:
ReportProcessingException
-
-