Class DefaultReturnRequestDao

java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.returns.dao.impl.DefaultReturnRequestDao
All Implemented Interfaces:
ReturnRequestDao, Dao

public class DefaultReturnRequestDao extends AbstractItemDao implements ReturnRequestDao
Default implementation for ReturnRequestDao.
  • Constructor Details

    • DefaultReturnRequestDao

      public DefaultReturnRequestDao()
  • Method Details

    • createReturnRequest

      public ReturnRequestModel createReturnRequest(OrderModel order)
      Creates an "authorization" object (@link ReturnRequest} for the order to be returned, if there doesn't exists one for that order so far
      Specified by:
      createReturnRequest in interface ReturnRequestDao
      Parameters:
      order - the order which should be returned
      Returns:
      ReturnRequest instance, which will deliver among others the RMA code of every processed "return order".
    • getReturnRequests

      public List<ReturnRequestModel> getReturnRequests(String code)
      Description copied from interface: ReturnRequestDao
      Returns the "return request" for the specified order
      Specified by:
      getReturnRequests in interface ReturnRequestDao
      Parameters:
      code - code of the order we ask for the "return request"
      Returns:
      "return request" of the order
    • getOrderByCode

      protected OrderModel getOrderByCode(String code)
      Returns an order by its code
      Parameters:
      code - the code of the order
      Returns:
      the order