Interface JobTemplate
- All Known Implementing Classes:
JobTemplateImpl
public interface JobTemplate
JobTemplate is the base type for classes that transfer records from DataReaders to DataWriters. The
default implementation can be accessed via the
DEFAULT public field.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiontransfer(DataReader reader, DataWriter writer) Transfers all records from the reader to the writer on the current thread and returns the finished job.<R extends DataReader,W extends DataWriter>
Jobtransfer(R reader, W writer, boolean async, JobCallback<R, W> callback) Transfers all records from the reader to the writer, on a new thread ifasyncis true, reporting progress and the outcome to the callback.
-
Field Details
-
DEFAULT
-
-
Method Details
-
transfer
Transfers all records from the reader to the writer on the current thread and returns the finished job.- Throws:
DataException
-
transfer
<R extends DataReader,W extends DataWriter> Job transfer(R reader, W writer, boolean async, JobCallback<R, W> callback) throws DataExceptionTransfers all records from the reader to the writer, on a new thread ifasyncis true, reporting progress and the outcome to the callback.- Throws:
DataException
-