org.broadleafcommerce.inventory.domain
Class InventoryImpl

java.lang.Object
  extended by org.broadleafcommerce.inventory.domain.InventoryImpl
All Implemented Interfaces:
Serializable, Inventory

@Entity
public class InventoryImpl
extends Object
implements Inventory

See Also:
Serialized Form

Field Summary
protected  Date expectedAvailabilityDate
           
protected  FulfillmentLocation fulfillmentLocation
           
protected  Long id
           
protected  Integer quantityAvailable
           
protected  Integer quantityOnHand
           
protected  org.broadleafcommerce.core.catalog.domain.Sku sku
           
protected  Long version
           
 
Constructor Summary
InventoryImpl()
           
 
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 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

fulfillmentLocation

protected FulfillmentLocation fulfillmentLocation

sku

protected org.broadleafcommerce.core.catalog.domain.Sku sku

quantityAvailable

protected Integer quantityAvailable

quantityOnHand

protected Integer quantityOnHand

expectedAvailabilityDate

protected Date expectedAvailabilityDate

version

protected Long version
Constructor Detail

InventoryImpl

public InventoryImpl()
Method Detail

getId

public Long getId()
Description copied from interface: Inventory
Retrieves the unique identifier of the Inventory

Specified by:
getId in interface Inventory
Returns:
id

setId

public void setId(Long id)
Description copied from interface: Inventory
Sets the unique identifier of the Inventory

Specified by:
setId in interface Inventory

getFulfillmentLocation

public FulfillmentLocation getFulfillmentLocation()
Description copied from interface: Inventory
Retrieves the fulfillment location information related to this inventory

Specified by:
getFulfillmentLocation in interface Inventory
Returns:
FulfillmentLocation

setFulfillmentLocation

public void setFulfillmentLocation(FulfillmentLocation fulfillmentLocation)
Description copied from interface: Inventory
Sets the fulfillment location information related to this inventory

Specified by:
setFulfillmentLocation in interface Inventory

getSku

public org.broadleafcommerce.core.catalog.domain.Sku getSku()
Description copied from interface: Inventory
Retrieves the sku for this Inventory

Specified by:
getSku in interface Inventory
Returns:
sku

setSku

public void setSku(org.broadleafcommerce.core.catalog.domain.Sku sku)
Description copied from interface: Inventory
Sets the sku for this Inventory

Specified by:
setSku in interface Inventory

getQuantityAvailable

public Integer getQuantityAvailable()
Description copied from interface: Inventory
Retrieves the inventory available for sale. This is typically the difference of quantity on hand reduced by the inventory allocated for existing orders.

Specified by:
getQuantityAvailable in interface Inventory
Returns:
quantityAvailable

setQuantityAvailable

public void setQuantityAvailable(Integer quantityAvailable)
Description copied from interface: Inventory
Sets the inventory available for sale.

Specified by:
setQuantityAvailable in interface Inventory

getQuantityOnHand

public Integer getQuantityOnHand()
Description copied from interface: Inventory
Retrieves the actual inventory in possession of the business

Specified by:
getQuantityOnHand in interface Inventory
Returns:
quantity

setQuantityOnHand

public void setQuantityOnHand(Integer quantityOnHand)
Description copied from interface: Inventory
Sets the actual inventory in possession of the business

Specified by:
setQuantityOnHand in interface Inventory

getExpectedAvailabilityDate

public Date getExpectedAvailabilityDate()
Description copied from interface: Inventory
Retrieves the expected availability date

Specified by:
getExpectedAvailabilityDate in interface Inventory
Returns:
Date

setExpectedAvailabilityDate

public void setExpectedAvailabilityDate(Date expectedAvailabilityDate)
Description copied from interface: Inventory
Sets the expected availability date

Specified by:
setExpectedAvailabilityDate in interface Inventory

getVersion

public Long getVersion()
Description copied from interface: Inventory
Retrieves the version set by Hibernate. Version has a getter only.

Specified by:
getVersion in interface Inventory
Returns:


Copyright © 2013. All Rights Reserved.