public interface RecordWriter<T extends Model<?>>
Model records to a temporary file or
RepositoryOperations implementation.| Modifier and Type | Method and Description |
|---|---|
void |
doAfter()
Executes after the last
writeRecord call. |
void |
doBefore(String destination)
Executes before the first
writeRecord method call. |
void |
writeRecord(T record)
Writes a single
Model entity to the target destination. |
void writeRecord(T record) throws DataImportException
Model entity to the target destination.record - DataImportExceptionvoid doBefore(String destination) throws DataImportException
writeRecord method call. Can be configured to perform tasks,
such as opening an output file object.destination - DataImportExceptionvoid doAfter()
throws DataImportException
writeRecord call. Can be configured to perform tasks, such as
closing output file objects.DataImportExceptionCopyright © 2016. All rights reserved.