org.broadleafcommerce.core.order.dao
Class FulfillmentGroupDaoImpl

java.lang.Object
  extended by org.broadleafcommerce.core.order.dao.FulfillmentGroupDaoImpl
All Implemented Interfaces:
FulfillmentGroupDao

@Repository(value="blFulfillmentGroupDao")
public class FulfillmentGroupDaoImpl
extends Object
implements FulfillmentGroupDao


Field Summary
protected  javax.persistence.EntityManager em
           
protected  EntityConfiguration entityConfiguration
           
 
Constructor Summary
FulfillmentGroupDaoImpl()
           
 
Method Summary
 FulfillmentGroup create()
           
 FulfillmentGroup createDefault()
           
 FulfillmentGroupFee createFulfillmentGroupFee()
           
 void delete(FulfillmentGroup fulfillmentGroup)
           
 FulfillmentGroupImpl readDefaultFulfillmentGroupForOrder(Order order)
           
 FulfillmentGroup readFulfillmentGroupById(Long fulfillmentGroupId)
           
 List<FulfillmentGroup> readFulfillmentGroupsByStatus(FulfillmentGroupStatusType status, int start, int maxResults)
          Reads FulfillmentGroups by status, ascending according to the date that the order was created.
 List<FulfillmentGroup> readFulfillmentGroupsByStatus(FulfillmentGroupStatusType status, int start, int maxResults, boolean ascending)
          Reads FulfillmentGroups by status, either ascending or descending according to the date that the order was created.
 Integer readNextFulfillmentGroupSequnceForOrder(Order order)
          Reads the max sequnce of fulfillment groups for a particular order and increments by 1.
 List<FulfillmentGroup> readPartiallyFulfilledFulfillmentGroups(int start, int maxResults)
          Reads FulfillmentGroups whose status is PARTIALLY_FULFILLED or PARTIALLY_DELIVERED.
 List<FulfillmentGroup> readUnfulfilledFulfillmentGroups(int start, int maxResults)
          Reads FulfillmentGroups whose status is not FULFILLED or DELIVERED.
 List<FulfillmentGroup> readUnprocessedFulfillmentGroups(int start, int maxResults)
          Returns FulfillmentGroups whose status is null, or where no processing has yet occured.
 FulfillmentGroup save(FulfillmentGroup fulfillmentGroup)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

em

protected javax.persistence.EntityManager em

entityConfiguration

protected EntityConfiguration entityConfiguration
Constructor Detail

FulfillmentGroupDaoImpl

public FulfillmentGroupDaoImpl()
Method Detail

save

public FulfillmentGroup save(FulfillmentGroup fulfillmentGroup)
Specified by:
save in interface FulfillmentGroupDao

readFulfillmentGroupById

public FulfillmentGroup readFulfillmentGroupById(Long fulfillmentGroupId)
Specified by:
readFulfillmentGroupById in interface FulfillmentGroupDao

readDefaultFulfillmentGroupForOrder

public FulfillmentGroupImpl readDefaultFulfillmentGroupForOrder(Order order)
Specified by:
readDefaultFulfillmentGroupForOrder in interface FulfillmentGroupDao

delete

public void delete(FulfillmentGroup fulfillmentGroup)
Specified by:
delete in interface FulfillmentGroupDao

createDefault

public FulfillmentGroup createDefault()
Specified by:
createDefault in interface FulfillmentGroupDao

create

public FulfillmentGroup create()
Specified by:
create in interface FulfillmentGroupDao

createFulfillmentGroupFee

public FulfillmentGroupFee createFulfillmentGroupFee()
Specified by:
createFulfillmentGroupFee in interface FulfillmentGroupDao

readUnfulfilledFulfillmentGroups

public List<FulfillmentGroup> readUnfulfilledFulfillmentGroups(int start,
                                                               int maxResults)
Description copied from interface: FulfillmentGroupDao
Reads FulfillmentGroups whose status is not FULFILLED or DELIVERED.

Specified by:
readUnfulfilledFulfillmentGroups in interface FulfillmentGroupDao
Returns:

readPartiallyFulfilledFulfillmentGroups

public List<FulfillmentGroup> readPartiallyFulfilledFulfillmentGroups(int start,
                                                                      int maxResults)
Description copied from interface: FulfillmentGroupDao
Reads FulfillmentGroups whose status is PARTIALLY_FULFILLED or PARTIALLY_DELIVERED.

Specified by:
readPartiallyFulfilledFulfillmentGroups in interface FulfillmentGroupDao
Returns:

readUnprocessedFulfillmentGroups

public List<FulfillmentGroup> readUnprocessedFulfillmentGroups(int start,
                                                               int maxResults)
Description copied from interface: FulfillmentGroupDao
Returns FulfillmentGroups whose status is null, or where no processing has yet occured. Default returns in ascending order according to date that the order was created.

Specified by:
readUnprocessedFulfillmentGroups in interface FulfillmentGroupDao
Returns:

readFulfillmentGroupsByStatus

public List<FulfillmentGroup> readFulfillmentGroupsByStatus(FulfillmentGroupStatusType status,
                                                            int start,
                                                            int maxResults,
                                                            boolean ascending)
Description copied from interface: FulfillmentGroupDao
Reads FulfillmentGroups by status, either ascending or descending according to the date that the order was created.

Specified by:
readFulfillmentGroupsByStatus in interface FulfillmentGroupDao
Returns:

readFulfillmentGroupsByStatus

public List<FulfillmentGroup> readFulfillmentGroupsByStatus(FulfillmentGroupStatusType status,
                                                            int start,
                                                            int maxResults)
Description copied from interface: FulfillmentGroupDao
Reads FulfillmentGroups by status, ascending according to the date that the order was created.

Specified by:
readFulfillmentGroupsByStatus in interface FulfillmentGroupDao
Returns:

readNextFulfillmentGroupSequnceForOrder

public Integer readNextFulfillmentGroupSequnceForOrder(Order order)
Description copied from interface: FulfillmentGroupDao
Reads the max sequnce of fulfillment groups for a particular order and increments by 1.

Specified by:
readNextFulfillmentGroupSequnceForOrder in interface FulfillmentGroupDao
Returns:


Copyright © 2013. All Rights Reserved.