java.lang.Object
org.broadleafcommerce.openadmin.server.service.persistence.module.DefaultFetchWrapper
All Implemented Interfaces:
FetchWrapper

@Component("blFetchWrapper") public class DefaultFetchWrapper extends Object implements FetchWrapper
Default pass-through implementation of FetchWrapper
Author:
Jeff Fischer
  • Constructor Details

    • DefaultFetchWrapper

      public DefaultFetchWrapper()
  • Method Details

    • getPersistentRecords

      public List<Serializable> getPersistentRecords(FetchRequest fetchRequest)
      Description copied from interface: FetchWrapper
      Retrieve the records from the persistent store given the params in the FetchRequest. Presumably, modifications or state manipulation may be performed to affect an alteration of the resulting SQL select syntax.
      Specified by:
      getPersistentRecords in interface FetchWrapper
      Returns:
    • getTotalRecords

      public Integer getTotalRecords(FetchRequest fetchRequest)
      Description copied from interface: FetchWrapper
      Retrieve the total record count given the params in the FetchRequest. Presumably, modifications or state manipulation may be performed to affect an alteration of the resulting SQL select count syntax.
      Specified by:
      getTotalRecords in interface FetchWrapper
      Returns:
    • getBasicPersistenceModule

      protected BasicPersistenceModule getBasicPersistenceModule()
    • getRecords

      public Entity[] getRecords(FetchExtractionRequest fetchExtractionRequest)
      Description copied from interface: FetchWrapper
      Retrieve the dto representation of persistent records based on the record contents and entity metadata.
      Specified by:
      getRecords in interface FetchWrapper
      Returns: