T - the type of the data that is added locally and that has to be
written back to the original data source.public interface WriteBackListProvider<T>
DataProvider that is capable of receiving lists
of entities, and that wants to write new entries (added locally) back to the
original data source.| Modifier and Type | Method and Description |
|---|---|
void |
setAddEntryHandler(WriteBackHandler<T> handler)
Set the
WriteBackHandler for this provider to the specified
handler. |
void setAddEntryHandler(WriteBackHandler<T> handler)
WriteBackHandler for this provider to the specified
handler. When the provider decides to add data back to the original
datasource (that is, when data has been added locally), the
WriteBackHandler.createDataSource(java.lang.Object) method will
be called. This method returns a WritableDataReader
that will be used to send the data to the origin, by calling the
WritableDataReader.writeBack() method.handler - the handler that will be used when the provider decides to
write data back to the original source.