Class TableReportDataset
java.lang.Object
net.sf.jasperreports.components.table.fill.TableReportDataset
- All Implemented Interfaces:
Cloneable,JRCloneable,JRDataset,JRIdentifiable,JRPropertiesHolder
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFirstGroup(JRGroup group) voidaddScriptlet(String name, Class<? extends JRAbstractScriptlet> type) clone()JRField[]Returns the dataset's fields.Returns the dataset filter expression.JRGroup[]Returns the dataset's groups.getName()Returns the dataset name.Returns the dataset's parameters.Returns the parent properties holder, whose properties are used as defaults for this object.Returns this object's properties map.Returns the list of dynamic/expression-based properties for this dataset.getQuery()Returns the query of the dataset.Returns the resource bundle base name.The name of the scriptlet class to be used when iterating this dataset.Returns the dataset's scriptlets.Returns the dataset's sort fields.getUUID()Returns the dataset's variables.Returns the resource missing handling type.booleanChecks whether the object has any properties.booleanDecides whether this dataset is the main report dataset or a sub dataset.voidsetWhenResourceMissingType(WhenResourceMissingTypeEnum whenResourceMissingType) Sets the resource missing handling type.
-
Constructor Details
-
TableReportDataset
-
-
Method Details
-
getFields
Description copied from interface:JRDatasetReturns the dataset's fields. -
getFilterExpression
Description copied from interface:JRDatasetReturns the dataset filter expression.This expression is used to filter the rows of the
data sourcethat this dataset will iterate on.This expression (if not null) is evaluated immediately after a new row is
producedby the data source. The evaluation is performed using field and variable values corresponding to the new row. When the result of the evaluation isBoolean.TRUEthe row gets processed by the report filling engine. When the result is null orBoolean.FALSE, the current row will be skipped and the datasource will be asked for the next row.- Specified by:
getFilterExpressionin interfaceJRDataset- Returns:
- the dataset filter expression
-
getTableGroups
-
getGroups
Description copied from interface:JRDatasetReturns the dataset's groups. -
addFirstGroup
-
getUUID
- Specified by:
getUUIDin interfaceJRIdentifiable
-
getName
Description copied from interface:JRDatasetReturns the dataset name. -
getParameters
Description copied from interface:JRDatasetReturns the dataset's parameters.- Specified by:
getParametersin interfaceJRDataset- Returns:
- the dataset's parameters
-
getQuery
Description copied from interface:JRDatasetReturns the query of the dataset.The query is used by passing a connection is passed to the dataset when instantiating.
-
getResourceBundle
Description copied from interface:JRDatasetReturns the resource bundle base name.The resource bundle is used when evaluating expressions.
- Specified by:
getResourceBundlein interfaceJRDataset- Returns:
- the resource bundle base name
-
getScriptletClass
Description copied from interface:JRDatasetThe name of the scriptlet class to be used when iterating this dataset.- Specified by:
getScriptletClassin interfaceJRDataset- Returns:
- the scriplet class name
-
getScriptlets
Description copied from interface:JRDatasetReturns the dataset's scriptlets.- Specified by:
getScriptletsin interfaceJRDataset- Returns:
- the dataset's scriptlets
-
getSortFields
Description copied from interface:JRDatasetReturns the dataset's sort fields.- Specified by:
getSortFieldsin interfaceJRDataset- Returns:
- the dataset's sort fields
-
getVariables
Description copied from interface:JRDatasetReturns the dataset's variables.- Specified by:
getVariablesin interfaceJRDataset- Returns:
- the dataset's variables
-
getWhenResourceMissingType
Description copied from interface:JRDatasetReturns the resource missing handling type.- Specified by:
getWhenResourceMissingTypein interfaceJRDataset- Returns:
- the resource missing handling type
-
isMainDataset
public boolean isMainDataset()Description copied from interface:JRDatasetDecides whether this dataset is the main report dataset or a sub dataset.- Specified by:
isMainDatasetin interfaceJRDataset- Returns:
trueif and only if this dataset is the main report dataset
-
setWhenResourceMissingType
Description copied from interface:JRDatasetSets the resource missing handling type.- Specified by:
setWhenResourceMissingTypein interfaceJRDataset- Parameters:
whenResourceMissingType- the resource missing handling type
-
getParentProperties
Description copied from interface:JRPropertiesHolderReturns the parent properties holder, whose properties are used as defaults for this object.- Specified by:
getParentPropertiesin interfaceJRPropertiesHolder- Returns:
- the parent properties holder, or
nullif no parent
-
getPropertiesMap
Description copied from interface:JRPropertiesHolderReturns this object's properties map.- Specified by:
getPropertiesMapin interfaceJRPropertiesHolder- Returns:
- this object's properties map
-
hasProperties
public boolean hasProperties()Description copied from interface:JRPropertiesHolderChecks whether the object has any properties.- Specified by:
hasPropertiesin interfaceJRPropertiesHolder- Returns:
- whether the object has any properties
-
getPropertyExpressions
Description copied from interface:JRDatasetReturns the list of dynamic/expression-based properties for this dataset.- Specified by:
getPropertyExpressionsin interfaceJRDataset- Returns:
- an array containing the expression-based properties of this dataset
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
addScriptlet
-