|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InventoryDao
| Method Summary | |
|---|---|
void |
delete(Inventory inventory)
Deletes the Inventory |
Inventory |
readById(Long id)
|
Inventory |
readForUpdateById(Long id)
Same as read, but refreshes and handles locking for concurrent updates |
Inventory |
readInventory(org.broadleafcommerce.core.catalog.domain.Sku sku,
FulfillmentLocation fulfillmentLocation)
Retrieves the Inventory for the given Sku and FulfillmentLocation |
Inventory |
readInventoryForDefaultFulfillmentLocation(org.broadleafcommerce.core.catalog.domain.Sku sku)
Retrieves the Inventory for the given Sku |
List<Inventory> |
readInventoryForFulfillmentLocation(FulfillmentLocation fulfillmentLocation)
Retrieves all instances of Inventory for this fulfillmentLocation |
Inventory |
readInventoryForUpdate(org.broadleafcommerce.core.catalog.domain.Sku sku,
FulfillmentLocation fulfillmentLocation)
Same as readInventory but refreshes and locks the object. |
Inventory |
readInventoryForUpdateForDefaultFulfillmentLocation(org.broadleafcommerce.core.catalog.domain.Sku sku)
Same as readInventoryForDefaultFulfillmentLocation but refreshes and locks the object. |
List<org.broadleafcommerce.core.catalog.domain.Sku> |
readSkusNotAtFulfillmentLocation(FulfillmentLocation fulfillmentLocation)
Retrieves skus that do not have inventory records at a particular fulfillment location |
Inventory |
save(Inventory inventory)
Persists the Inventory |
| Method Detail |
|---|
Inventory readById(Long id)
Inventory readForUpdateById(Long id)
throws ConcurrentInventoryModificationException
id -
ConcurrentInventoryModificationException
Inventory readInventory(org.broadleafcommerce.core.catalog.domain.Sku sku,
FulfillmentLocation fulfillmentLocation)
Inventory for the given Sku and FulfillmentLocation
sku - SkufulfillmentLocation - FulfillmentLocation
Inventory
Inventory readInventoryForUpdate(org.broadleafcommerce.core.catalog.domain.Sku sku,
FulfillmentLocation fulfillmentLocation)
throws ConcurrentInventoryModificationException
sku - fulfillmentLocation -
ConcurrentInventoryModificationExceptionInventory readInventoryForDefaultFulfillmentLocation(org.broadleafcommerce.core.catalog.domain.Sku sku)
Inventory for the given Sku
sku - Sku
List
Inventory readInventoryForUpdateForDefaultFulfillmentLocation(org.broadleafcommerce.core.catalog.domain.Sku sku)
throws ConcurrentInventoryModificationException
sku -
ConcurrentInventoryModificationException
Inventory save(Inventory inventory)
throws ConcurrentInventoryModificationException
Inventory
inventory - Inventory
Inventory
ConcurrentInventoryModificationExceptionvoid delete(Inventory inventory)
Inventory
inventory - List<Inventory> readInventoryForFulfillmentLocation(FulfillmentLocation fulfillmentLocation)
fulfillmentLocation -
InventoryList<org.broadleafcommerce.core.catalog.domain.Sku> readSkusNotAtFulfillmentLocation(FulfillmentLocation fulfillmentLocation)
fulfillmentLocation -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||