Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * #%L
   * BroadleafCommerce Framework
   * %%
   * Copyright (C) 2009 - 2014 Broadleaf Commerce
   * %%
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
  * 
  *       http://www.apache.org/licenses/LICENSE-2.0
  * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  * #L%
  */
 package org.broadleafcommerce.core.util.dao;
 
 import java.util.Date;
 import java.util.List;
 
Adds capability to delete old or defunct entities from the persistence layer (e.g. Carts and anonymous Customers)

Author(s):
Jeff Fischer
 
 public interface ResourcePurgeDao {

    
Finds carts from the database. Carts are generally considered orders that have not made it to the submitted status. The method parameters can be left null, or included to refine the select criteria. Note, if statuses are null, the query defaults to selecting only orders that have a status of IN_PROCESS.

Parameters:
names 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.
Returns:
the list of found carts
 
     List<OrderfindCarts(String[] namesOrderStatus[] statusesDate dateCreatedMinThresholdBoolean isPreview);

    
Finds carts from the database. Carts are generally considered orders that have not made it to the submitted status. The method parameters can be left null, or included to refine the select criteria. Note, if statuses are null, the query defaults to selecting only orders that have a status of IN_PROCESS. This overloaded version of the method is capable of retrieving a portion or "page" of the total results.

Parameters:
names 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.
Returns:
the list of found carts
 
     List<OrderfindCarts(String[] namesOrderStatus[] statusesDate dateCreatedMinThresholdBoolean isPreviewint startPosint length);

    
Finds the count of carts from the database. Carts are generally considered orders that have not made it to the submitted status. The method parameters can be left null, or included to refine the select criteria. Note, if statuses are null, the query defaults to selecting only orders that have a status of IN_PROCESS.

Parameters:
names 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.
Returns:
the number of carts found
 
     Long findCartsCount(String[] namesOrderStatus[] statusesDate dateCreatedMinThresholdBoolean isPreview);

    
Find customers in the database. The method parameters can be left null, or included to refine the select criteria.

Parameters:
dateCreatedMinThreshold 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.
Returns:
the list of found customers
 
     List<CustomerfindCustomers(Date dateCreatedMinThresholdBoolean registeredBoolean deactivatedBoolean isPreview);

    
Find customers in the database. The method parameters can be left null, or included to refine the select criteria. This overloaded version of the method is capable of retrieving a portion or "page" of the total results.

Parameters:
dateCreatedMinThreshold 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.
Returns:
the list of found customers
    List<CustomerfindCustomers(Date dateCreatedMinThresholdBoolean registeredBoolean deactivatedBoolean isPreviewint startPosint length);

    
Find count of customers in the database. The method parameters can be left null, or included to refine the select criteria.

Parameters:
dateCreatedMinThreshold 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.
Returns:
the count of found customers
    Long findCustomersCount(Date dateCreatedMinThresholdBoolean registeredBoolean deactivatedBoolean isPreview);
New to GrepCode? Check out our FAQ X