com.gigaspaces.datasource
Interface BulkDataPersister
- All Known Subinterfaces: 
- ExternalDataSource<T>
- All Known Implementing Classes: 
- BulkDataPersisterExceptionHandler, BulkDataPersisterSplitter, CriteriaHibernateExternalDataSource, DataProviderSplitter, DefaultHibernateExternalDataSource, SQLDataProviderExceptionHandler, SQLDataProviderSplitter, StatelessHibernateExternalDataSource
- public interface BulkDataPersister 
BulkDataPersister is responsible for  executing bulk operations
 
 
 This interface should be implemented when using mirror space 
 or space transactions.
- Since:
- 6.0
- Author:
- anna
 
executeBulk
void executeBulk(List<BulkItem> bulk)
                 throws DataSourceException
- Execute given bulk of operations.
 EachBulkItemcontains one of the following operation -
 
 WRITE - given object should be inserted to the data store,
 UPDATE - given object should be updated in the data store,
 REMOVE - given object should be deleted from the data store
 
 If the implementation uses transactions,
 all the bulk operations must be executed in one  transaction.
 
 
- 
- Parameters:
- bulk- list of data object and the operation to apply on that object
- Throws:
- DataSourceException- when the data store fails to persist the given list of objects
 
Copyright © GigaSpaces.