Class PerkStoreOrderDAO

java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<ProductOrderEntity,Long>
org.exoplatform.perkstore.dao.PerkStoreOrderDAO
All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<ProductOrderEntity,Long>

public class PerkStoreOrderDAO extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<ProductOrderEntity,Long>
  • Constructor Details

    • PerkStoreOrderDAO

      public PerkStoreOrderDAO()
  • Method Details

    • deleteAll

      public void deleteAll()
      Specified by:
      deleteAll in interface org.exoplatform.commons.api.persistence.GenericDAO<ProductOrderEntity,Long>
      Overrides:
      deleteAll in class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<ProductOrderEntity,Long>
    • deleteAll

      public void deleteAll(List<ProductOrderEntity> entities)
      Specified by:
      deleteAll in interface org.exoplatform.commons.api.persistence.GenericDAO<ProductOrderEntity,Long>
      Overrides:
      deleteAll in class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<ProductOrderEntity,Long>
    • countOrderedQuantityByProductId

      public double countOrderedQuantityByProductId(long productId)
    • countOrderedQuantityByProductIdAndStatus

      public double countOrderedQuantityByProductIdAndStatus(long productId, ProductOrderStatus status)
    • countRefundedQuantityByProductId

      public double countRefundedQuantityByProductId(long productId)
    • countRemainingOrdersToProcessByProductId

      public long countRemainingOrdersToProcessByProductId(long productId)
    • countRemainingOrdersByIdentityIdAndProductId

      public long countRemainingOrdersByIdentityIdAndProductId(long identityId, long productId)
    • countUserTotalPurchasedQuantity

      public double countUserTotalPurchasedQuantity(long productId, long identityId)
    • countUserTotalRefundedQuantity

      public double countUserTotalRefundedQuantity(long productId, long identityId)
    • countUserTotalOrderedQuantityByStatus

      public double countUserTotalOrderedQuantityByStatus(long productId, long identityId, ProductOrderStatus status)
    • countUserPurchasedQuantityInPeriod

      public double countUserPurchasedQuantityInPeriod(long productId, long identityId, long startDate, long endDate)
    • countUserRefundedQuantityInPeriod

      public double countUserRefundedQuantityInPeriod(long productId, long identityId, long startDate, long endDate)
    • countUserOrderedQuantityByStatusInPeriod

      public double countUserOrderedQuantityByStatusInPeriod(long productId, long identityId, long startDate, long endDate, ProductOrderStatus status)
    • getOrders

      public List<ProductOrderEntity> getOrders(String username, OrderFilter filter, boolean isPerkStoreManager, boolean isProductOwner)
    • countOrders

      public Long countOrders(String username, OrderFilter filter, boolean isPerkStoreManager, boolean isProductOwner)
    • findOrderByTransactionHash

      public ProductOrderEntity findOrderByTransactionHash(String hash)
    • findOrderByRefundTransactionHash

      public ProductOrderEntity findOrderByRefundTransactionHash(String hash)