public class ProcessState extends Object implements ReportState
Modifier and Type | Field and Description |
---|---|
static int |
ARTIFICIAL_EVENT_CODE |
BEFORE_FIRST_GROUP, BEFORE_FIRST_ROW
Constructor and Description |
---|
ProcessState() |
public static final int ARTIFICIAL_EVENT_CODE
public boolean initializeForMasterReport(MasterReport report, ProcessingContext processingContext, OutputFunction outputFunction) throws ReportProcessingException
ReportProcessingException
public void initializeForSubreport(InlineSubreportMarker[] subReports, int subReportIndex, ProcessState parentState) throws ReportProcessingException
ReportProcessingException
public ReportProcessStore getProcessStore()
getProcessStore
in interface ReportState
public int[] getRequiredRuntimeLevels()
public boolean isSubReportExecutable()
public ProcessState returnFromSubReport(LayoutProcess layoutProcess) throws ReportProcessingException
ReportProcessingException
public ProcessState restart() throws ReportProcessingException
ReportProcessingException
public ReportProcessingErrorHandler getErrorHandler()
getErrorHandler
in interface ReportState
public void setErrorHandler(ReportProcessingErrorHandler errorHandler)
setErrorHandler
in interface ReportState
public void setSequenceCounter(int sequenceCounter)
public int getSequenceCounter()
public InlineSubreportMarker getCurrentSubReportMarker()
getCurrentSubReportMarker
in interface ReportState
public boolean isInlineProcess()
isInlineProcess
in interface ReportState
public SubReportProcessType getSubreportProcessingType()
public ProcessState deriveForPagebreak()
public ProcessState deriveForAdvance()
public ProcessState deriveForStorage()
public ProcessState clone() throws CloneNotSupportedException
clone
in interface ReportState
clone
in class Object
CloneNotSupportedException
public AdvanceHandler getAdvanceHandler()
public void setAdvanceHandler(AdvanceHandler advanceHandler)
public final ProcessState advance() throws ReportProcessingException
ReportProcessingException
public final ProcessState commit() throws ReportProcessingException
ReportProcessingException
public int getCurrentRow()
ReportState
getCurrentRow
in interface ReportState
public int getCurrentDataItem()
ReportState
getCurrentDataItem
in interface ReportState
public int getProgressLevel()
getProgressLevel
in interface ReportState
public int getProgressLevelCount()
getProgressLevelCount
in interface ReportState
public boolean isPrepareRun()
isPrepareRun
in interface ReportState
public int getLevel()
getLevel
in interface ReportState
public boolean isFinish()
isFinish
in interface ReportState
public int getEventCode()
ReportState
getEventCode
in interface ReportState
public int getCurrentGroupIndex()
getCurrentGroupIndex
in interface ReportState
public void enterGroup()
public void leaveGroup()
public int getPresentationGroupIndex()
getPresentationGroupIndex
in interface ReportState
public void enterPresentationGroup()
public void leavePresentationGroup()
public ReportDefinition getReport()
getReport
in interface ReportState
public int getCurrentSubReport()
public ReportState getParentState()
getParentState
in interface ReportState
public ReportState getParentSubReportState()
getParentSubReportState
in interface ReportState
public FunctionStorage getStructureFunctionStorage()
public FunctionStorage getFunctionStorage()
public DefaultFlowController getFlowController()
getFlowController
in interface ReportState
public void setFlowController(DefaultFlowController flowController)
public LayoutProcess getLayoutProcess()
getLayoutProcess
in interface ReportState
public ReportStateKey getProcessKey()
getProcessKey
in interface ReportState
public DataRow getDataRow()
getDataRow
in interface ReportState
public int getNumberOfRows()
getNumberOfRows
in interface ReportState
public void firePageStartedEvent(int baseEvent)
firePageStartedEvent
in interface ReportState
baseEvent
- the type of the base event which caused the page start to be triggered.public void firePageFinishedEvent(boolean noParentPassing)
page-finished
' event. The pageFinished(...)
method is called for every report
function.firePageFinishedEvent
in interface ReportState
protected void fireReportEvent()
public static boolean isLastItemInGroup(Group rootGroup, MasterDataRow currentDataRow, MasterDataRow nextDataRow)
rootGroup
- the root group that should be checked.currentDataRow
- the current data row.nextDataRow
- the next data row, or null, if this is the last datarow.public boolean isSubReportEvent()
isSubReportEvent
in interface ReportState
public InlineSubreportMarker[] getSubReports()
public ProcessStateHandle getProcessHandle()
public void setInItemGroup(boolean inItemGroup)
public boolean isInItemGroup()
isInItemGroup
in interface ReportState
public ResourceBundleFactory getResourceBundleFactory()
getResourceBundleFactory
in interface ReportState
public boolean isArtifcialState()
public GroupingState createGroupingState()
createGroupingState
in interface ReportState
public boolean isStructuralPreprocessingNeeded()
isStructuralPreprocessingNeeded
in interface ReportState
public void advanceCursor()
public Integer getPredictedStateCount()
getPredictedStateCount
in interface ReportState
public boolean isCrosstabActive()
isCrosstabActive
in interface ReportState
public ProcessState recordCrosstabRowState()
public ProcessState replayStoredCrosstabRowState()
public int getReplayStoredCrosstabGroup()
public AdvanceHandler getPostSummaryRowAdvanceHandler()
public void setPostSummaryRowAdvanceHandler(AdvanceHandler postSummaryRowAdvanceHandler)
public ProcessState finishReplayingStoredCrosstabRowState() throws ReportProcessingException
ReportProcessingException
public void clearStoredCrosstabRowState()
public long getGroupSequenceCounter(int groupIndex)
getGroupSequenceCounter
in interface ReportState
public long getCrosstabColumnSequenceCounter(int groupIndex)
getCrosstabColumnSequenceCounter
in interface ReportState
public void crosstabResetColumnIndices()
public void crosstabIncrementColumnCounter()
public PerformanceMonitorContext getPerformanceMonitorContext()
getPerformanceMonitorContext
in interface ReportState
Copyright © 2017 Hitachi Vantara. All rights reserved.