Package net.solarnetwork.dao
Interface BatchableDao<T>
- Type Parameters:
T- the domain object type
public interface BatchableDao<T>
An API for batch processing domain objects.
- Since:
- 1.74
- Version:
- 1.0
- Author:
- matt
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceHandler for batch processing.static enumThe result for a single batch operation.static interfaceBatch processing options.static interfaceThe result of the entire batch processing. -
Method Summary
Modifier and TypeMethodDescriptionbatchProcess(BatchableDao.BatchCallback<T> callback, BatchableDao.BatchOptions options) Process a set of domain objects in batch.
-
Method Details
-
batchProcess
BatchableDao.BatchResult batchProcess(BatchableDao.BatchCallback<T> callback, BatchableDao.BatchOptions options) Process a set of domain objects in batch.- Parameters:
callback- the batch callback handleroptions- the batch processing options- Returns:
- the batch results
-