|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.inventory.dao.InventoryDaoImpl
@Repository(value="blInventoryDao") public class InventoryDaoImpl
| Field Summary | |
|---|---|
protected javax.persistence.EntityManager |
em
|
| Constructor Summary | |
|---|---|
InventoryDaoImpl()
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.persistence.EntityManager em
| Constructor Detail |
|---|
public InventoryDaoImpl()
| Method Detail |
|---|
public Inventory save(Inventory inventory)
throws ConcurrentInventoryModificationException
InventoryDaoInventory
save in interface InventoryDaoinventory - Inventory
Inventory
ConcurrentInventoryModificationException
public Inventory readInventory(org.broadleafcommerce.core.catalog.domain.Sku sku,
FulfillmentLocation fulfillmentLocation)
InventoryDaoInventory for the given Sku and FulfillmentLocation
readInventory in interface InventoryDaosku - SkufulfillmentLocation - FulfillmentLocation
Inventory
public Inventory readInventoryForUpdate(org.broadleafcommerce.core.catalog.domain.Sku sku,
FulfillmentLocation fulfillmentLocation)
throws ConcurrentInventoryModificationException
InventoryDao
readInventoryForUpdate in interface InventoryDaoConcurrentInventoryModificationExceptionpublic Inventory readInventoryForDefaultFulfillmentLocation(org.broadleafcommerce.core.catalog.domain.Sku sku)
InventoryDaoInventory for the given Sku
readInventoryForDefaultFulfillmentLocation in interface InventoryDaosku - Sku
List
public Inventory readInventoryForUpdateForDefaultFulfillmentLocation(org.broadleafcommerce.core.catalog.domain.Sku sku)
throws ConcurrentInventoryModificationException
InventoryDao
readInventoryForUpdateForDefaultFulfillmentLocation in interface InventoryDaoConcurrentInventoryModificationExceptionpublic void delete(Inventory inventory)
InventoryDaoInventory
delete in interface InventoryDaopublic Inventory readById(Long id)
readById in interface InventoryDao
public Inventory readForUpdateById(Long id)
throws ConcurrentInventoryModificationException
InventoryDao
readForUpdateById in interface InventoryDaoConcurrentInventoryModificationExceptionpublic List<Inventory> readInventoryForFulfillmentLocation(FulfillmentLocation fulfillmentLocation)
InventoryDao
readInventoryForFulfillmentLocation in interface InventoryDaoInventorypublic List<org.broadleafcommerce.core.catalog.domain.Sku> readSkusNotAtFulfillmentLocation(FulfillmentLocation fulfillmentLocation)
InventoryDao
readSkusNotAtFulfillmentLocation in interface InventoryDao
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||