public class RecordCollectionReader<T extends Model<?>> extends Object implements RecordReader<T>
RecordReader implementation that iterates through a collection if Model
records, rather than reading from a data source.| Constructor and Description |
|---|
RecordCollectionReader(List<T> records) |
| Modifier and Type | Method and Description |
|---|---|
void |
doAfter(Object... args)
To be executed after the main component method is called for the last time.
|
void |
doBefore(Object... args)
To be executed before the main component method is first called.
|
T |
readRecord()
Generates and returns a single
Model entity from the input data source. |
public T readRecord() throws DataImportException
RecordReaderModel entity from the input data source.readRecord in interface RecordReader<T extends Model<?>>DataImportExceptionpublic void doBefore(Object... args) throws DataImportException
DataImportComponentdoBefore in interface DataImportComponentargs - an array of objects of any type.DataImportExceptionpublic void doAfter(Object... args) throws DataImportException
DataImportComponentdoAfter in interface DataImportComponentargs - an array of objects of any type.DataImportExceptionCopyright © 2016. All rights reserved.