@Entity public class InventoryReservationImpl extends Object implements InventoryReservation
| Modifier and Type | Field and Description |
|---|---|
protected Long |
id |
protected org.broadleafcommerce.core.order.domain.FulfillmentGroupItem |
item |
protected FulfillmentLocation |
location |
protected Integer |
quantity |
protected org.broadleafcommerce.core.catalog.domain.Sku |
sku |
| Constructor and Description |
|---|
InventoryReservationImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Long |
getId()
Gets the primary key
|
org.broadleafcommerce.core.order.domain.FulfillmentGroupItem |
getItem()
The fulfillment item from the order that this inventory was reserved for.
|
FulfillmentLocation |
getLocation()
The location for which the inventory is actually coming out of
|
Integer |
getQuantity()
Obtains the quantity that was reserved at the fulfillment location for the fulfillment item.
|
org.broadleafcommerce.core.catalog.domain.Sku |
getSku()
A transient value representing the Sku that the
InventoryReservation.getItem() was used to lookup quantity. |
int |
hashCode() |
void |
setId(Long id)
Sets the primary key for this reservation
|
void |
setItem(org.broadleafcommerce.core.order.domain.FulfillmentGroupItem item)
Sets the item that this inventory was reserved for
|
void |
setLocation(FulfillmentLocation location)
Sets the location where this inventory should be decremented from
|
void |
setQuantity(Integer quantity)
Sets the quantity.
|
void |
setSku(org.broadleafcommerce.core.catalog.domain.Sku sku)
Sets the transient value representing the Sku that the
InventoryReservation.getItem() was used to lookup quantity for |
protected Long id
protected Integer quantity
protected FulfillmentLocation location
protected org.broadleafcommerce.core.order.domain.FulfillmentGroupItem item
protected org.broadleafcommerce.core.catalog.domain.Sku sku
public Long getId()
InventoryReservationgetId in interface InventoryReservationpublic void setId(Long id)
InventoryReservationsetId in interface InventoryReservationid - the new primary keypublic FulfillmentLocation getLocation()
InventoryReservationgetLocation in interface InventoryReservationpublic void setLocation(FulfillmentLocation location)
InventoryReservationsetLocation in interface InventoryReservationlocation - the FulfillmentLocation that was used to reserve InventoryReservation.getQuantity()public Integer getQuantity()
InventoryReservationFulfillmentGroupItem.getQuantity(), as it is possible that a single FulfillmentGroupItem
has reserved inventory in multiple FulfillmentLocationgetQuantity in interface InventoryReservationpublic void setQuantity(Integer quantity)
InventoryReservationsetQuantity in interface InventoryReservationpublic org.broadleafcommerce.core.order.domain.FulfillmentGroupItem getItem()
InventoryReservationgetItem in interface InventoryReservationpublic void setItem(org.broadleafcommerce.core.order.domain.FulfillmentGroupItem item)
InventoryReservationsetItem in interface InventoryReservationpublic org.broadleafcommerce.core.catalog.domain.Sku getSku()
InventoryReservationInventoryReservation.getItem() was used to lookup quantity. This is determined
from the FulfillmentGroupItem and is set when first creating the reservationgetSku in interface InventoryReservationSku that inventory should come frompublic void setSku(org.broadleafcommerce.core.catalog.domain.Sku sku)
InventoryReservationInventoryReservation.getItem() was used to lookup quantity forsetSku in interface InventoryReservationCopyright © 2020. All rights reserved.