Class JpaBatchingQueryUtils.BatchRequestConfig

java.lang.Object
com.broadleafcommerce.catalog.provider.jpa.repository.support.JpaBatchingQueryUtils.BatchRequestConfig
Enclosing class:
JpaBatchingQueryUtils

public static class JpaBatchingQueryUtils.BatchRequestConfig extends Object
Describes details that are provided to the operation responsible for fetching a batch of results from the datastore.
  • Constructor Details

    • BatchRequestConfig

      public BatchRequestConfig()
  • Method Details

    • getBatchSize

      public int getBatchSize()
      The maximum amount of results to return.
    • getPreviousBatchLastId

      @Nullable public String getPreviousBatchLastId()

      The last ID (according to sort order) that was fetched in the previous batch. The current batch should include this information in its query criteria to ensure it only fetches results sorted after this ID.

      If this is the first batch being fetched, this value will be null.

      See the Javadocs of JpaBatchingQueryUtils.queryResultListInBatches(int, Function, Function) for more details.

    • setBatchSize

      public void setBatchSize(int batchSize)
      The maximum amount of results to return.
    • setPreviousBatchLastId

      public void setPreviousBatchLastId(@Nullable String previousBatchLastId)

      The last ID (according to sort order) that was fetched in the previous batch. The current batch should include this information in its query criteria to ensure it only fetches results sorted after this ID.

      If this is the first batch being fetched, this value will be null.

      See the Javadocs of JpaBatchingQueryUtils.queryResultListInBatches(int, Function, Function) for more details.

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object