@Repository(value="blFulfillmentLocationDao") public class FulfillmentLocationDaoImpl extends Object implements FulfillmentLocationDao
| Modifier and Type | Field and Description |
|---|---|
static String |
BC_UPDATE_DEFAULT_LOCATION |
protected javax.persistence.EntityManager |
em |
protected org.broadleafcommerce.common.persistence.EntityConfiguration |
entityConfiguration |
protected FulfillmentTypeHelper |
fulfillmentTypeHelper |
protected org.broadleafcommerce.common.sandbox.SandBoxHelper |
sandBoxHelper |
| Constructor and Description |
|---|
FulfillmentLocationDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
FulfillmentLocation |
createNew()
Creates a new instance.
|
void |
delete(FulfillmentLocation fulfillmentLocation)
Deletes the passed
FulfillmentLocation |
List<FulfillmentLocation> |
readAll()
Retrieves all of the fulfillment locations
|
List<FulfillmentLocation> |
readAllFulfillmentLocations(org.broadleafcommerce.core.order.service.type.FulfillmentType fulfillmentType) |
List<FulfillmentLocation> |
readAllFulfillmentLocationsForSku(Long skuId) |
List<FulfillmentLocation> |
readAllFulfillmentLocationsForSku(Long skuId,
org.broadleafcommerce.core.order.service.type.FulfillmentType fulfillmentType)
Reads all fulfillment locations associated with a sku
|
List<FulfillmentLocation> |
readAllFulfillmentLocationsForSku(Long skuId,
org.broadleafcommerce.core.order.service.type.FulfillmentType fulfillmentType,
int minimumQuantity) |
FulfillmentLocation |
readById(Long fulfillmentLocationId)
Retrieves a
FulfillmentLocation from the given id |
FulfillmentLocation |
readDefaultFulfillmentLocation()
Reads the first fulfillment location that it finds that is flagged as default
|
FulfillmentLocation |
save(FulfillmentLocation fulfillmentLocation)
Persists the
FulfillmentLocation |
int |
updateOtherDefaultLocationToFalse(FulfillmentLocation fulfillmentLocation)
Sets the defaultLocation flag to false for all fulfillmentLocations
|
public static final String BC_UPDATE_DEFAULT_LOCATION
protected FulfillmentTypeHelper fulfillmentTypeHelper
protected org.broadleafcommerce.common.persistence.EntityConfiguration entityConfiguration
protected org.broadleafcommerce.common.sandbox.SandBoxHelper sandBoxHelper
protected javax.persistence.EntityManager em
public List<FulfillmentLocation> readAll()
FulfillmentLocationDaoreadAll in interface FulfillmentLocationDaoList of org.broadleafcommerce.inventory.domain.FulfillmentLocationpublic FulfillmentLocation readById(Long fulfillmentLocationId)
FulfillmentLocationDaoFulfillmentLocation from the given idreadById in interface FulfillmentLocationDaoFulfillmentLocationpublic FulfillmentLocation save(FulfillmentLocation fulfillmentLocation)
FulfillmentLocationDaoFulfillmentLocationsave in interface FulfillmentLocationDaoFulfillmentLocationpublic void delete(FulfillmentLocation fulfillmentLocation)
FulfillmentLocationDaoFulfillmentLocationdelete in interface FulfillmentLocationDaopublic int updateOtherDefaultLocationToFalse(FulfillmentLocation fulfillmentLocation)
FulfillmentLocationDaoupdateOtherDefaultLocationToFalse in interface FulfillmentLocationDaopublic FulfillmentLocation readDefaultFulfillmentLocation()
FulfillmentLocationDaoreadDefaultFulfillmentLocation in interface FulfillmentLocationDaopublic List<FulfillmentLocation> readAllFulfillmentLocationsForSku(Long skuId)
readAllFulfillmentLocationsForSku in interface FulfillmentLocationDaopublic List<FulfillmentLocation> readAllFulfillmentLocationsForSku(Long skuId, org.broadleafcommerce.core.order.service.type.FulfillmentType fulfillmentType)
FulfillmentLocationDaoreadAllFulfillmentLocationsForSku in interface FulfillmentLocationDaopublic List<FulfillmentLocation> readAllFulfillmentLocationsForSku(Long skuId, org.broadleafcommerce.core.order.service.type.FulfillmentType fulfillmentType, int minimumQuantity)
readAllFulfillmentLocationsForSku in interface FulfillmentLocationDaopublic List<FulfillmentLocation> readAllFulfillmentLocations(org.broadleafcommerce.core.order.service.type.FulfillmentType fulfillmentType)
readAllFulfillmentLocations in interface FulfillmentLocationDaopublic FulfillmentLocation createNew()
FulfillmentLocationDaocreateNew in interface FulfillmentLocationDaoCopyright © 2020. All rights reserved.