Class EntityUtils

java.lang.Object
com.broadleafcommerce.billing.service.impl.EntityUtils

public final class EntityUtils extends Object
  • Method Details

    • findByIdUsingPartitioning

      public static <I, O, C> List<O> findByIdUsingPartitioning(List<I> ids, Integer partitionSize, I pad, @Nullable C contextInfo, BiFunction<List<I>,C,List<O>> baseFindByIds)
      Find records with given ids using partitioning to batch the requests.
    • partitionWithPadding

      public static <T> List<List<T>> partitionWithPadding(List<T> fieldValues, Integer partitionSize, T pad)
      Partition the incoming list with the given padding.
    • findByIdSilent

      @Nullable public static <T> T findByIdSilent(Supplier<T> supplier)
      A utility method to run a findById while silently handling EntityMissingException by returning null