Package net.sf.jasperreports.data.random
Class RandomDataSource
- java.lang.Object
-
- net.sf.jasperreports.data.random.RandomDataSource
-
- All Implemented Interfaces:
JRDataSource,JRRewindableDataSource
public class RandomDataSource extends Object implements JRRewindableDataSource
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description RandomDataSource(int count)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetFieldValue(JRField field)voidmoveFirst()booleannext()
-
-
-
Method Detail
-
next
public boolean next() throws JRException- Specified by:
nextin interfaceJRDataSource- Throws:
JRException
-
getFieldValue
public Object getFieldValue(JRField field) throws JRException
- Specified by:
getFieldValuein interfaceJRDataSource- Throws:
JRException
-
moveFirst
public void moveFirst() throws JRException- Specified by:
moveFirstin interfaceJRRewindableDataSource- Throws:
JRException
-
-