Class ReportDataRow
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.states.datarow.ReportDataRow
-
public final class ReportDataRow extends Object
-
-
Constructor Summary
Constructors Constructor Description ReportDataRow(TableModel reportData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportDataRow
advance()
Advances to the next row and attaches the given master row to the objects contained in that client data row.Object
get(int col)
Returns the value of the expression or column in the tablemodel using the given column number as index.int
getColumnCount()
Returns the number of columns, expressions and functions and marked ReportProperties in the report.String
getColumnName(int col)
Returns the name of the column, expression or function.int
getCursor()
TableModel
getReportData()
boolean
isAdvanceable()
boolean
isReadable()
-
-
-
Constructor Detail
-
ReportDataRow
public ReportDataRow(TableModel reportData)
-
-
Method Detail
-
get
public Object get(int col)
Returns the value of the expression or column in the tablemodel using the given column number as index. For functions and expressions, thegetValue()
method is called and for columns from the tablemodel the tablemodel methodgetValueAt(row, column)
gets called.- Parameters:
col
- the item index.- Returns:
- the value.
- Throws:
IllegalStateException
- if the datarow detected a deadlock.
-
getColumnName
public String getColumnName(int col)
Returns the name of the column, expression or function. For columns from the tablemodel, the tablemodelsgetColumnName
method is called. For functions, expressions and report properties the assigned name is returned.- Parameters:
col
- the item index.- Returns:
- the name.
-
getColumnCount
public int getColumnCount()
Returns the number of columns, expressions and functions and marked ReportProperties in the report.- Returns:
- the item count.
-
advance
public ReportDataRow advance()
Advances to the next row and attaches the given master row to the objects contained in that client data row.- Returns:
-
isAdvanceable
public boolean isAdvanceable()
-
isReadable
public boolean isReadable()
-
getReportData
public TableModel getReportData()
-
getCursor
public int getCursor()
-
-