public interface RecordReader<T extends Model<?>>
Model class instances.| Modifier and Type | Method and Description |
|---|---|
void |
doAfter()
To be executed after the last
readRecord call. |
void |
doBefore(String input)
To be executed before the
readRecord method is called. |
T |
readRecord()
Generates and returns a single
Model entity from the input data source. |
T readRecord() throws DataImportException
Model entity from the input data source.DataImportExceptionvoid doBefore(String input) throws DataImportException
readRecord method is called. Can be configured to handle
tasks like opening a file.input - DataImportExceptionvoid doAfter()
throws DataImportException
readRecord call. Can be configured to handle tasks such
as closing an input file object.DataImportExceptionCopyright © 2016. All rights reserved.