org.broadleafcommerce.inventory.domain
Interface Inventory

All Superinterfaces:
Serializable
All Known Implementing Classes:
InventoryImpl

public interface Inventory
extends Serializable


Method Summary
 Date getExpectedAvailabilityDate()
          Retrieves the expected availability date
 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 setExpectedAvailabilityDate(Date expectedAvailabilityDate)
          Sets the expected availability date
 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 quantity)
          Sets the inventory available for sale.
 void setQuantityOnHand(Integer quantity)
          Sets the actual inventory in possession of the business
 void setSku(org.broadleafcommerce.core.catalog.domain.Sku sku)
          Sets the sku for this Inventory
 

Method Detail

getId

Long getId()
Retrieves the unique identifier of the Inventory

Returns:
id

setId

void setId(Long id)
Sets the unique identifier of the Inventory

Parameters:
id -

getFulfillmentLocation

FulfillmentLocation getFulfillmentLocation()
Retrieves the fulfillment location information related to this inventory

Returns:
FulfillmentLocation

setFulfillmentLocation

void setFulfillmentLocation(FulfillmentLocation fulfillmentLocation)
Sets the fulfillment location information related to this inventory

Parameters:
fulfillmentLocation -

getSku

org.broadleafcommerce.core.catalog.domain.Sku getSku()
Retrieves the sku for this Inventory

Returns:
sku

setSku

void setSku(org.broadleafcommerce.core.catalog.domain.Sku sku)
Sets the sku for this Inventory

Parameters:
sku -

getQuantityOnHand

Integer getQuantityOnHand()
Retrieves the actual inventory in possession of the business

Returns:
quantity

setQuantityOnHand

void setQuantityOnHand(Integer quantity)
Sets the actual inventory in possession of the business

Parameters:
quantity -

getQuantityAvailable

Integer getQuantityAvailable()
Retrieves the inventory available for sale. This is typically the difference of quantity on hand reduced by the inventory allocated for existing orders.

Returns:
quantityAvailable

setQuantityAvailable

void setQuantityAvailable(Integer quantity)
Sets the inventory available for sale.

Parameters:
quantity -

getExpectedAvailabilityDate

Date getExpectedAvailabilityDate()
Retrieves the expected availability date

Returns:
Date

setExpectedAvailabilityDate

void setExpectedAvailabilityDate(Date expectedAvailabilityDate)
Sets the expected availability date

Parameters:
expectedAvailabilityDate -

getVersion

Long getVersion()
Retrieves the version set by Hibernate. Version has a getter only.

Returns:


Copyright © 2013. All Rights Reserved.