Package net.solarnetwork.central.dao
Interface BulkLoadingDao<T extends net.solarnetwork.dao.Entity<PK>,PK extends Serializable>
- Type Parameters:
T- the domain object typePK- the primary key type
public interface BulkLoadingDao<T extends net.solarnetwork.dao.Entity<PK>,PK extends Serializable>
API for entity batch loading DAO operations.
- Since:
- 1.43
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBulkLoadingDao.LoadingContext<T extends net.solarnetwork.dao.Entity<PK>,PK extends Serializable> API for a bulk loading operational context.static interfaceBulkLoadingDao.LoadingExceptionHandler<T extends net.solarnetwork.dao.Entity<PK>,PK extends Serializable> API for handling an exception thrown during a bulk loading operation.static interfaceBulk loading options.static enumBatch loading transaction mode. -
Method Summary
Modifier and TypeMethodDescriptioncreateBulkLoadingContext(BulkLoadingDao.LoadingOptions options, BulkLoadingDao.LoadingExceptionHandler<T, PK> exceptionHandler) Initiate a bulk loading operation.
-
Method Details
-
createBulkLoadingContext
BulkLoadingDao.LoadingContext<T,PK> createBulkLoadingContext(BulkLoadingDao.LoadingOptions options, BulkLoadingDao.LoadingExceptionHandler<T, PK> exceptionHandler) Initiate a bulk loading operation.The bulk loading operation works by calling this method to obtain a
BulkLoadingDao.LoadingContextinstance. You must callBulkLoadingDao.LoadingContext.commit()when the load is complete to finish the operation.- Parameters:
options- the bulk loading optionsexceptionHandler- an exception handler- Returns:
- the bulk loading context
-