@Entity public class InventoryImpl extends Object implements Inventory
| Modifier and Type | Class and Description |
|---|---|
static class |
InventoryImpl.Presentation |
| Modifier and Type | Field and Description |
|---|---|
protected FulfillmentLocation |
fulfillmentLocation |
protected Long |
id |
protected Integer |
quantityAvailable |
protected Integer |
quantityOnHand |
protected org.broadleafcommerce.core.catalog.domain.Sku |
sku |
protected Long |
version |
| Constructor and Description |
|---|
InventoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
FulfillmentLocation |
getFulfillmentLocation()
Retrieves the fulfillment location information related to this inventory
|
Long |
getId()
Retrieves the unique identifier of the Inventory
|
Integer |
getQuantityAvailable()
Retrieves the inventory available for sale.
|
Integer |
getQuantityOnHand()
Retrieves the actual inventory in possession of the business
|
org.broadleafcommerce.core.catalog.domain.Sku |
getSku()
Retrieves the sku for this Inventory
|
Long |
getVersion()
Retrieves the version set by Hibernate.
|
void |
setFulfillmentLocation(FulfillmentLocation fulfillmentLocation)
Sets the fulfillment location information related to this inventory
|
void |
setId(Long id)
Sets the unique identifier of the Inventory
|
void |
setQuantityAvailable(Integer quantityAvailable)
Sets the inventory available for sale.
|
void |
setQuantityOnHand(Integer quantityOnHand)
Sets the actual inventory in possession of the business
|
void |
setSku(org.broadleafcommerce.core.catalog.domain.Sku sku)
Sets the sku for this Inventory
|
protected Long id
protected FulfillmentLocation fulfillmentLocation
protected org.broadleafcommerce.core.catalog.domain.Sku sku
protected Integer quantityAvailable
protected Integer quantityOnHand
protected Long version
public Long getId()
Inventorypublic void setId(Long id)
Inventorypublic FulfillmentLocation getFulfillmentLocation()
InventorygetFulfillmentLocation in interface Inventorypublic void setFulfillmentLocation(FulfillmentLocation fulfillmentLocation)
InventorysetFulfillmentLocation in interface Inventorypublic org.broadleafcommerce.core.catalog.domain.Sku getSku()
Inventorypublic void setSku(org.broadleafcommerce.core.catalog.domain.Sku sku)
Inventorypublic Integer getQuantityAvailable()
InventorygetQuantityAvailable in interface Inventorypublic void setQuantityAvailable(Integer quantityAvailable)
InventorysetQuantityAvailable in interface Inventorypublic Integer getQuantityOnHand()
InventorygetQuantityOnHand in interface Inventorypublic void setQuantityOnHand(Integer quantityOnHand)
InventorysetQuantityOnHand in interface Inventorypublic Long getVersion()
InventorygetVersion in interface InventoryCopyright © 2020. All rights reserved.