org.broadleafcommerce.inventory.dao
Interface FulfillmentLocationDao

All Known Implementing Classes:
FulfillmentLocationDaoImpl

public interface FulfillmentLocationDao


Method Summary
 void delete(FulfillmentLocation fulfillmentLocation)
          Deletes the passed FulfillmentLocation
 List<FulfillmentLocation> readAll()
          Retrieves all of the fulfillment locations
 List<FulfillmentLocation> readAllFulfillmentLocationsForSku(Long skuId)
          Reads all fulfillment locations associated with a sku
 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
 void updateOtherDefaultLocationToFalse(FulfillmentLocation fulfillmentLocation)
          Sets the defaultLocation flag to false for all fulfillmentLocations
 

Method Detail

readAll

List<FulfillmentLocation> readAll()
Retrieves all of the fulfillment locations

Returns:
List of FulfillmentLocation

readById

FulfillmentLocation readById(Long fulfillmentLocationId)
Retrieves a FulfillmentLocation from the given id

Parameters:
fulfillmentLocationId -
Returns:
FulfillmentLocation

save

FulfillmentLocation save(FulfillmentLocation fulfillmentLocation)
Persists the FulfillmentLocation

Parameters:
fulfillmentLocation -
Returns:
the persisted FulfillmentLocation

delete

void delete(FulfillmentLocation fulfillmentLocation)
Deletes the passed FulfillmentLocation

Parameters:
fulfillmentLocation -

updateOtherDefaultLocationToFalse

void updateOtherDefaultLocationToFalse(FulfillmentLocation fulfillmentLocation)
Sets the defaultLocation flag to false for all fulfillmentLocations


readDefaultFulfillmentLocation

FulfillmentLocation readDefaultFulfillmentLocation()
Reads the first fulfillment location that it finds that is flagged as default


readAllFulfillmentLocationsForSku

List<FulfillmentLocation> readAllFulfillmentLocationsForSku(Long skuId)
Reads all fulfillment locations associated with a sku

Parameters:
skuId -
Returns:


Copyright © 2013. All Rights Reserved.