Class DefaultTmaCommerceCartDao

java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.commerceservices.order.dao.impl.DefaultCommerceCartDao
de.hybris.platform.b2ctelcoservices.daos.impl.DefaultTmaCommerceCartDao
All Implemented Interfaces:
TmaCommerceCartDao, de.hybris.platform.commerceservices.order.dao.CommerceCartDao, de.hybris.platform.servicelayer.internal.dao.Dao

public class DefaultTmaCommerceCartDao extends de.hybris.platform.commerceservices.order.dao.impl.DefaultCommerceCartDao implements TmaCommerceCartDao
Default implementation for TmaCommerceCartDao.
Since:
2205
  • Field Summary

    Fields inherited from class de.hybris.platform.commerceservices.order.dao.impl.DefaultCommerceCartDao

    FIND_CART_FOR_GUID_AND_SITE, FIND_CART_FOR_GUID_AND_USER_AND_SITE, FIND_CART_FOR_SITE_AND_USER_AND_EXCLUDED_GUID, FIND_CART_FOR_USER_AND_SITE, FIND_CARTS_FOR_SITE_AND_USER, FIND_EXPIRED_SAVED_CARTS_FOR_SITE_AND_USER, FIND_OLD_CARTS_FOR_SITE, FIND_OLD_CARTS_FOR_SITE_AND_USER, NOT_QUOTE_CART_CLAUSE, NOT_SAVED_CART_CLAUSE, ORDERBYCLAUSE, SELECTCLAUSE

    Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao

    flexibleSearchService, modelService
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the cart for site and code.
    Retrieves the carts for site.
    Gets the carts for site and user (including saved carts and quote carts).

    Methods inherited from class de.hybris.platform.commerceservices.order.dao.impl.DefaultCommerceCartDao

    createSearchQuery, doSearch, doSearch, getCartForCodeAndUser, getCartForGuidAndSite, getCartForGuidAndSiteAndUser, getCartForSiteAndUser, getCartsForRemovalForSiteAndUser

    Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao

    getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.hybris.platform.commerceservices.order.dao.CommerceCartDao

    getCartForCodeAndUser, getCartForGuidAndSite, getCartForGuidAndSiteAndUser, getCartForSiteAndUser, getCartsForRemovalForSiteAndUser
  • Constructor Details

    • DefaultTmaCommerceCartDao

      public DefaultTmaCommerceCartDao()
  • Method Details

    • getCartForSiteAndCode

      public CartModel getCartForSiteAndCode(BaseSiteModel site, String code)
      Description copied from interface: TmaCommerceCartDao
      Retrieves the cart for site and code.
      Specified by:
      getCartForSiteAndCode in interface TmaCommerceCartDao
      Parameters:
      site - the site
      code - the code
      Returns:
      the cart for site and code
    • getCartsForSite

      public List<CartModel> getCartsForSite(BaseSiteModel site, Integer offset, Integer limit)
      Description copied from interface: TmaCommerceCartDao
      Retrieves the carts for site. Excluding saved carts and quote carts.
      Specified by:
      getCartsForSite in interface TmaCommerceCartDao
      Parameters:
      site - the site
      offset - the offset represents the position in list from where the result list will start.
      limit - the limit represents the number of entries that will be selected for the result list.
      Returns:
      the carts for site
    • getCartsForSiteAndUser

      public List<CartModel> getCartsForSiteAndUser(BaseSiteModel site, UserModel user)
      Gets the carts for site and user (including saved carts and quote carts).
      Specified by:
      getCartsForSiteAndUser in interface de.hybris.platform.commerceservices.order.dao.CommerceCartDao
      Overrides:
      getCartsForSiteAndUser in class de.hybris.platform.commerceservices.order.dao.impl.DefaultCommerceCartDao