Package org.exoplatform.perkstore.dao
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>
-
Field Summary
Fields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecountOrderedQuantityByProductId(long productId) doublecountOrderedQuantityByProductIdAndStatus(long productId, ProductOrderStatus status) countOrders(String username, OrderFilter filter, boolean isPerkStoreManager, boolean isProductOwner) doublecountRefundedQuantityByProductId(long productId) longcountRemainingOrdersByIdentityIdAndProductId(long identityId, long productId) longcountRemainingOrdersToProcessByProductId(long productId) doublecountUserOrderedQuantityByStatusInPeriod(long productId, long identityId, long startDate, long endDate, ProductOrderStatus status) doublecountUserPurchasedQuantityInPeriod(long productId, long identityId, long startDate, long endDate) doublecountUserRefundedQuantityInPeriod(long productId, long identityId, long startDate, long endDate) doublecountUserTotalOrderedQuantityByStatus(long productId, long identityId, ProductOrderStatus status) doublecountUserTotalPurchasedQuantity(long productId, long identityId) doublecountUserTotalRefundedQuantity(long productId, long identityId) voidvoiddeleteAll(List<ProductOrderEntity> entities) getOrders(String username, OrderFilter filter, boolean isPerkStoreManager, boolean isProductOwner) Methods inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, create, createAll, delete, find, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAll
-
Constructor Details
-
PerkStoreOrderDAO
public PerkStoreOrderDAO()
-
-
Method Details
-
deleteAll
public void deleteAll()- Specified by:
deleteAllin interfaceorg.exoplatform.commons.api.persistence.GenericDAO<ProductOrderEntity,Long> - Overrides:
deleteAllin classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<ProductOrderEntity,Long>
-
deleteAll
- Specified by:
deleteAllin interfaceorg.exoplatform.commons.api.persistence.GenericDAO<ProductOrderEntity,Long> - Overrides:
deleteAllin classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<ProductOrderEntity,Long>
-
countOrderedQuantityByProductId
public double countOrderedQuantityByProductId(long productId) -
countOrderedQuantityByProductIdAndStatus
-
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
-
findOrderByRefundTransactionHash
-