Class FulfillmentGroupDaoImpl
java.lang.Object
org.broadleafcommerce.core.order.dao.FulfillmentGroupDaoImpl
- All Implemented Interfaces:
FulfillmentGroupDao
@Repository("blFulfillmentGroupDao")
public class FulfillmentGroupDaoImpl
extends Object
implements FulfillmentGroupDao
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.persistence.EntityManagerprotected EntityConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()voiddelete(FulfillmentGroup fulfillmentGroup) readFulfillmentGroupById(Long fulfillmentGroupId) readFulfillmentGroupsByStatus(FulfillmentGroupStatusType status, int start, int maxResults) Reads FulfillmentGroups by status, ascending according to the date that the order was created.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.Reads the max sequnce of fulfillment groups for a particular order and increments by 1.readPartiallyFulfilledFulfillmentGroups(int start, int maxResults) Reads FulfillmentGroups whose status is PARTIALLY_FULFILLED or PARTIALLY_DELIVERED.readUnfulfilledFulfillmentGroups(int start, int maxResults) Reads FulfillmentGroups whose status is not FULFILLED or DELIVERED.readUnprocessedFulfillmentGroups(int start, int maxResults) Returns FulfillmentGroups whose status is null, or where no processing has yet occured.save(FulfillmentGroup fulfillmentGroup)
-
Field Details
-
em
protected jakarta.persistence.EntityManager em -
entityConfiguration
-
-
Constructor Details
-
FulfillmentGroupDaoImpl
public FulfillmentGroupDaoImpl()
-
-
Method Details
-
save
- Specified by:
savein interfaceFulfillmentGroupDao
-
readFulfillmentGroupById
- Specified by:
readFulfillmentGroupByIdin interfaceFulfillmentGroupDao
-
readDefaultFulfillmentGroupForOrder
- Specified by:
readDefaultFulfillmentGroupForOrderin interfaceFulfillmentGroupDao
-
delete
- Specified by:
deletein interfaceFulfillmentGroupDao
-
createDefault
- Specified by:
createDefaultin interfaceFulfillmentGroupDao
-
create
- Specified by:
createin interfaceFulfillmentGroupDao
-
createFulfillmentGroupFee
- Specified by:
createFulfillmentGroupFeein interfaceFulfillmentGroupDao
-
readUnfulfilledFulfillmentGroups
Description copied from interface:FulfillmentGroupDaoReads FulfillmentGroups whose status is not FULFILLED or DELIVERED.- Specified by:
readUnfulfilledFulfillmentGroupsin interfaceFulfillmentGroupDao- Returns:
-
readPartiallyFulfilledFulfillmentGroups
Description copied from interface:FulfillmentGroupDaoReads FulfillmentGroups whose status is PARTIALLY_FULFILLED or PARTIALLY_DELIVERED.- Specified by:
readPartiallyFulfilledFulfillmentGroupsin interfaceFulfillmentGroupDao- Returns:
-
readUnprocessedFulfillmentGroups
Description copied from interface:FulfillmentGroupDaoReturns 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:
readUnprocessedFulfillmentGroupsin interfaceFulfillmentGroupDao- Returns:
-
readFulfillmentGroupsByStatus
public List<FulfillmentGroup> readFulfillmentGroupsByStatus(FulfillmentGroupStatusType status, int start, int maxResults, boolean ascending) Description copied from interface:FulfillmentGroupDaoReads FulfillmentGroups by status, either ascending or descending according to the date that the order was created.- Specified by:
readFulfillmentGroupsByStatusin interfaceFulfillmentGroupDao- Returns:
-
readFulfillmentGroupsByStatus
public List<FulfillmentGroup> readFulfillmentGroupsByStatus(FulfillmentGroupStatusType status, int start, int maxResults) Description copied from interface:FulfillmentGroupDaoReads FulfillmentGroups by status, ascending according to the date that the order was created.- Specified by:
readFulfillmentGroupsByStatusin interfaceFulfillmentGroupDao- Returns:
-
readNextFulfillmentGroupSequnceForOrder
Description copied from interface:FulfillmentGroupDaoReads the max sequnce of fulfillment groups for a particular order and increments by 1.- Specified by:
readNextFulfillmentGroupSequnceForOrderin interfaceFulfillmentGroupDao- Returns:
-