GigaSpaces XAP 7.0 API

com.gigaspaces.datasource
Interface BulkDataPersister

All Known Subinterfaces:
ExternalDataSource<T>, MapDataSource<K,V>
All Known Implementing Classes:
BulkDataPersisterExceptionHandler, BulkDataPersisterSplitter, CriteriaHibernateExternalDataSource, DataProviderSplitter, DefaultHibernateExternalDataSource, HibernateDataSource, HibernateMapDataSource, 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

Method Summary
 void executeBulk(List<BulkItem> bulk)
          Execute given bulk of operations.
 

Method Detail

executeBulk

void executeBulk(List<BulkItem> bulk)
                 throws DataSourceException
Execute given bulk of operations.
Each BulkItem contains 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

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.