public class JRBaseDataset extends Object implements JRDataset, Serializable, JRChangeEventsSupport
JRDataset.| Modifier and Type | Field and Description |
|---|---|
protected JRField[] |
fields |
protected JRExpression |
filterExpression |
protected JRGroup[] |
groups |
protected boolean |
isMain |
protected String |
name |
protected JRParameter[] |
parameters |
protected JRPropertiesMap |
propertiesMap |
static String |
PROPERTY_WHEN_RESOURCE_MISSING_TYPE |
protected JRQuery |
query |
protected String |
resourceBundle |
protected String |
scriptletClass |
protected JRScriptlet[] |
scriptlets |
protected JRSortField[] |
sortFields |
protected UUID |
uuid |
protected JRVariable[] |
variables |
protected WhenResourceMissingTypeEnum |
whenResourceMissingTypeValue |
| Modifier | Constructor and Description |
|---|---|
protected |
JRBaseDataset(boolean isMain) |
protected |
JRBaseDataset(JRDataset dataset,
JRBaseObjectFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
JRPropertyChangeSupport |
getEventSupport()
Returns the property change support object for this instance.
|
JRField[] |
getFields()
Returns the dataset's fields.
|
JRExpression |
getFilterExpression()
Returns the dataset filter expression.
|
JRGroup[] |
getGroups()
Returns the dataset's groups.
|
String |
getName()
Returns the dataset name.
|
JRParameter[] |
getParameters()
Returns the dataset's parameters.
|
JRPropertiesHolder |
getParentProperties()
Returns the parent properties holder, whose properties are used as defaults
for this object.
|
JRPropertiesMap |
getPropertiesMap()
Returns this object's properties map.
|
JRQuery |
getQuery()
Returns the query of the dataset.
|
String |
getResourceBundle()
Returns the resource bundle base name.
|
String |
getScriptletClass()
The name of the scriptlet class to be used when iterating this dataset.
|
JRScriptlet[] |
getScriptlets()
Returns the dataset's scriptlets.
|
JRSortField[] |
getSortFields()
Returns the dataset's sort fields.
|
UUID |
getUUID() |
JRVariable[] |
getVariables()
Returns the dataset's variables.
|
WhenResourceMissingTypeEnum |
getWhenResourceMissingTypeValue()
Returns the resource missing handling type.
|
boolean |
hasProperties()
Checks whether the object has any properties.
|
boolean |
isMainDataset()
Decides whether this dataset is the main report dataset or a sub dataset.
|
void |
setWhenResourceMissingType(WhenResourceMissingTypeEnum whenResourceMissingTypeValue)
Sets the resource missing handling type.
|
public static final String PROPERTY_WHEN_RESOURCE_MISSING_TYPE
protected final boolean isMain
protected UUID uuid
protected String name
protected String scriptletClass
protected JRScriptlet[] scriptlets
protected JRParameter[] parameters
protected JRQuery query
protected JRField[] fields
protected JRSortField[] sortFields
protected JRVariable[] variables
protected JRGroup[] groups
protected String resourceBundle
protected WhenResourceMissingTypeEnum whenResourceMissingTypeValue
protected JRPropertiesMap propertiesMap
protected JRExpression filterExpression
protected JRBaseDataset(boolean isMain)
protected JRBaseDataset(JRDataset dataset, JRBaseObjectFactory factory)
public UUID getUUID()
getUUID in interface JRIdentifiablepublic String getName()
JRDatasetpublic String getScriptletClass()
JRDatasetgetScriptletClass in interface JRDatasetpublic JRQuery getQuery()
JRDatasetThe query is used by passing a connection is passed to the dataset when instantiating.
public JRScriptlet[] getScriptlets()
JRDatasetgetScriptlets in interface JRDatasetpublic JRParameter[] getParameters()
JRDatasetgetParameters in interface JRDatasetpublic JRField[] getFields()
JRDatasetpublic JRSortField[] getSortFields()
JRDatasetgetSortFields in interface JRDatasetpublic JRVariable[] getVariables()
JRDatasetgetVariables in interface JRDatasetpublic JRGroup[] getGroups()
JRDatasetpublic boolean isMainDataset()
JRDatasetisMainDataset in interface JRDatasettrue if and only if this dataset is the main report datasetpublic String getResourceBundle()
JRDatasetThe resource bundle is used when evaluating expressions.
getResourceBundle in interface JRDatasetpublic WhenResourceMissingTypeEnum getWhenResourceMissingTypeValue()
JRDatasetgetWhenResourceMissingTypeValue in interface JRDatasetpublic void setWhenResourceMissingType(WhenResourceMissingTypeEnum whenResourceMissingTypeValue)
JRDatasetsetWhenResourceMissingType in interface JRDatasetwhenResourceMissingTypeValue - the resource missing handling typepublic boolean hasProperties()
JRPropertiesHolderhasProperties in interface JRPropertiesHolderpublic JRPropertiesMap getPropertiesMap()
JRPropertiesHoldergetPropertiesMap in interface JRPropertiesHolderpublic JRPropertiesHolder getParentProperties()
JRPropertiesHoldergetParentProperties in interface JRPropertiesHoldernull if no parentpublic JRExpression getFilterExpression()
JRDataset
This expression is used to filter the rows of the
data source that this dataset will iterate on.
This expression (if not null) is evaluated immediately after a new row is
produced by the data source.
The evaluation is performed using field and variable values corresponding to the new row.
When the result of the evaluation is Boolean.TRUE the row gets processed by the report
filling engine.
When the result is null or Boolean.FALSE, the current row will be skipped and the datasource will be asked for the next row.
getFilterExpression in interface JRDatasetpublic Object clone()
clone in interface JRCloneableclone in class Objectpublic JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupportgetEventSupport in interface JRChangeEventsSupportCopyright © 2017. All rights reserved.