Interface BatchCreator<T>

Type Parameters:
T - the type of the entity to create
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface BatchCreator<T>
Utilized in ImportBatchHandler to perform the creation and persistence of entities.

Most commonly, this interface is implemented by passing a reference to CrudEntityService.createAllAllowingPartialSuccess(List, ContextInfo).

Author:
Phillip Verheyden (phillipuniverse)
  • Method Summary

    Modifier and Type
    Method
    Description
    com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse<T>
    createAllAllowingPartialSuccess(List<T> businessInstances, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
     
  • Method Details

    • createAllAllowingPartialSuccess

      com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse<T> createAllAllowingPartialSuccess(@NonNull List<T> businessInstances, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)