public class RandomDataSource extends Object implements JRRewindableDataSource
| Constructor and Description |
|---|
RandomDataSource(int count) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getFieldValue(JRField field)
Gets the field value for the current position.
|
void |
moveFirst()
Moves back to the first element in the data source.
|
boolean |
next()
Tries to position the cursor on the next element in the data source.
|
public boolean next()
throws JRException
JRDataSourcenext in interface JRDataSourceJRException - if any error occurs while trying to move to the next elementpublic Object getFieldValue(JRField field) throws JRException
JRDataSourcegetFieldValue in interface JRDataSourceJRExceptionpublic void moveFirst()
throws JRException
JRRewindableDataSourcemoveFirst in interface JRRewindableDataSourceJRExceptionCopyright © 2019 TIBCO Software Inc.. All rights reserved.