@Repository(value="blResourcePurgeDao") public class ResourcePurgeDaoImpl extends Object implements ResourcePurgeDao
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
| Constructor and Description |
|---|
ResourcePurgeDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> javax.persistence.TypedQuery<T> |
buildCartQuery(String[] names,
OrderStatus[] statuses,
Date dateCreatedMinThreshold,
Boolean isPreview,
Class<T> returnType) |
protected <T> javax.persistence.TypedQuery<T> |
buildCustomerQuery(Date dateCreatedMinThreshold,
Boolean registered,
Boolean deactivated,
Boolean isPreview,
Class<T> returnType) |
List<Order> |
findCarts(String[] names,
OrderStatus[] statuses,
Date dateCreatedMinThreshold,
Boolean isPreview)
Finds carts from the database.
|
List<Order> |
findCarts(String[] names,
OrderStatus[] statuses,
Date dateCreatedMinThreshold,
Boolean isPreview,
int startPos,
int length)
Finds carts from the database.
|
Long |
findCartsCount(String[] names,
OrderStatus[] statuses,
Date dateCreatedMinThreshold,
Boolean isPreview)
Finds the count of carts from the database.
|
List<Customer> |
findCustomers(Date dateCreatedMinThreshold,
Boolean registered,
Boolean deactivated,
Boolean isPreview)
Find customers in the database.
|
List<Customer> |
findCustomers(Date dateCreatedMinThreshold,
Boolean registered,
Boolean deactivated,
Boolean isPreview,
int startPos,
int length)
Find customers in the database.
|
Long |
findCustomersCount(Date dateCreatedMinThreshold,
Boolean registered,
Boolean deactivated,
Boolean isPreview)
Find count of customers in the database.
|
public List<Order> findCarts(String[] names, OrderStatus[] statuses, Date dateCreatedMinThreshold, Boolean isPreview)
ResourcePurgeDaofindCarts in interface ResourcePurgeDaonames - One or more order names to restrict the select by. Can be null.statuses - One or more order statuses to restrict the select by. Can be null.dateCreatedMinThreshold - Min creation date to restrict the select by. Orders created before this date
are retrieved. Can be null.isPreview - whether or not the results should be preview orders. Can be null.public List<Order> findCarts(String[] names, OrderStatus[] statuses, Date dateCreatedMinThreshold, Boolean isPreview, int startPos, int length)
ResourcePurgeDaofindCarts in interface ResourcePurgeDaonames - One or more order names to restrict the select by. Can be null.statuses - One or more order statuses to restrict the select by. Can be null.dateCreatedMinThreshold - Min creation date to restrict the select by. Orders created before this date
are retrieved. Can be null.isPreview - whether or not the results should be preview orders. Can be null.startPos - the position in the overall result set from which to start the returned list.length - the max number of results to include in the returned list.public Long findCartsCount(String[] names, OrderStatus[] statuses, Date dateCreatedMinThreshold, Boolean isPreview)
ResourcePurgeDaofindCartsCount in interface ResourcePurgeDaonames - One or more order names to restrict the select by. Can be null.statuses - One or more order statuses to restrict the select by. Can be null.dateCreatedMinThreshold - Min creation date to restrict the select by. Orders created before this date
are retrieved. Can be null.isPreview - whether or not the results should be preview orders. Can be null.public List<Customer> findCustomers(Date dateCreatedMinThreshold, Boolean registered, Boolean deactivated, Boolean isPreview)
ResourcePurgeDaofindCustomers in interface ResourcePurgeDaodateCreatedMinThreshold - Min creation date to restrict the select by. Customers created before this date
are retrieved. Can be null.registered - Whether or not the results should be registered customers. Can be null.deactivated - Whether or not the results should be deactivated customers. Can be null.isPreview - Whether or not the results should be preview customers. Can be null.public List<Customer> findCustomers(Date dateCreatedMinThreshold, Boolean registered, Boolean deactivated, Boolean isPreview, int startPos, int length)
ResourcePurgeDaofindCustomers in interface ResourcePurgeDaodateCreatedMinThreshold - Min creation date to restrict the select by. Customers created before this date
are retrieved. Can be null.registered - Whether or not the results should be registered customers. Can be null.deactivated - Whether or not the results should be deactivated customers. Can be null.isPreview - Whether or not the results should be preview customers. Can be null.startPos - the position in the overall result set from which to start the returned list.length - the max number of results to include in the returned list.public Long findCustomersCount(Date dateCreatedMinThreshold, Boolean registered, Boolean deactivated, Boolean isPreview)
ResourcePurgeDaofindCustomersCount in interface ResourcePurgeDaodateCreatedMinThreshold - Min creation date to restrict the select by. Customers created before this date
are retrieved. Can be null.registered - Whether or not the results should be registered customers. Can be null.deactivated - Whether or not the results should be deactivated customers. Can be null.isPreview - Whether or not the results should be preview customers. Can be null.protected <T> javax.persistence.TypedQuery<T> buildCustomerQuery(Date dateCreatedMinThreshold, Boolean registered, Boolean deactivated, Boolean isPreview, Class<T> returnType)
protected <T> javax.persistence.TypedQuery<T> buildCartQuery(String[] names, OrderStatus[] statuses, Date dateCreatedMinThreshold, Boolean isPreview, Class<T> returnType)
Copyright © 2014. All Rights Reserved.