Class SkuAvailabilityImpl

java.lang.Object
org.broadleafcommerce.core.inventory.domain.SkuAvailabilityImpl
All Implemented Interfaces:
Serializable, SkuAvailability

@Deprecated @Entity public class SkuAvailabilityImpl extends Object implements SkuAvailability
Deprecated.
This is no longer required and is instead implemented as a third-party inventory module
The Class SkuAvailabilityImpl is the default implementation of SkuAvailability.

This class is retrieved using the AvailabilityService. The service allows availability to be be location specific (e.g. for store specific inventory availability)

This implementation uses a Hibernate implementation of JPA configured through annotations. The Entity references the following tables: BLC_SKU_AVAILABILITY
Author:
bpolster
See Also:
  • Field Details

    • id

      protected Long id
      Deprecated.
      The id.
    • skuId

      protected Long skuId
      Deprecated.
      The sale price.
    • locationId

      protected Long locationId
      Deprecated.
      The retail price.
    • quantityOnHand

      protected Integer quantityOnHand
      Deprecated.
      The quantity on hand.
    • reserveQuantity

      protected Integer reserveQuantity
      Deprecated.
      The reserve quantity.
    • availabilityStatus

      protected String availabilityStatus
      Deprecated.
      The description.
    • availabilityDate

      protected Date availabilityDate
      Deprecated.
      The date this product will be available.
  • Constructor Details

    • SkuAvailabilityImpl

      public SkuAvailabilityImpl()
      Deprecated.
  • Method Details

    • getId

      public Long getId()
      Deprecated.
      Description copied from interface: SkuAvailability
      Returns the id of this SkuAvailability
      Specified by:
      getId in interface SkuAvailability
    • setId

      public void setId(Long id)
      Deprecated.
      Description copied from interface: SkuAvailability
      Sets the id of this SkuAvailability record
      Specified by:
      setId in interface SkuAvailability
    • getLocationId

      public Long getLocationId()
      Deprecated.
      Description copied from interface: SkuAvailability
      Returns the USPSLocation id of this skuAvailability. SKU availability records may or may not be location specific and using null locations are a common implementation model.
      Specified by:
      getLocationId in interface SkuAvailability
    • setLocationId

      public void setLocationId(Long locationId)
      Deprecated.
      Description copied from interface: SkuAvailability
      Sets the USPSLocation id of this skuAvailability. SKU availability records may or may not be location specific and using null locations are a common implementation model.
      Specified by:
      setLocationId in interface SkuAvailability
    • getQuantityOnHand

      public Integer getQuantityOnHand()
      Deprecated.
      Description copied from interface: SkuAvailability
      Returns the number of this items that are currently in stock and available for sell. Returning null has an implementation specific meaning.
      Specified by:
      getQuantityOnHand in interface SkuAvailability
    • setQuantityOnHand

      public void setQuantityOnHand(Integer qoh)
      Deprecated.
      Description copied from interface: SkuAvailability
      Sets the quantity on hand. Setting to null is allowed and has an implementation specific meaning.
      Specified by:
      setQuantityOnHand in interface SkuAvailability
    • getSkuId

      public Long getSkuId()
      Deprecated.
      Description copied from interface: SkuAvailability
      Returns the id of this SKU associated with SkuAvailability record
      Specified by:
      getSkuId in interface SkuAvailability
    • setSkuId

      public void setSkuId(Long skuId)
      Deprecated.
      Description copied from interface: SkuAvailability
      Sets the id of this SKU
      Specified by:
      setSkuId in interface SkuAvailability
    • getAvailabilityDate

      public Date getAvailabilityDate()
      Deprecated.
      Description copied from interface: SkuAvailability
      Returns the data the SKU will be available. This property may return null which has an implementation specific meaning.
      Specified by:
      getAvailabilityDate in interface SkuAvailability
    • setAvailabilityDate

      public void setAvailabilityDate(Date availabilityDate)
      Deprecated.
      Description copied from interface: SkuAvailability
      Sets the date the SKU will be available. Setting to null is allowed and has an implementation specific meaning.
      Specified by:
      setAvailabilityDate in interface SkuAvailability
    • getAvailabilityStatus

      public AvailabilityStatusType getAvailabilityStatus()
      Deprecated.
      Description copied from interface: SkuAvailability
      Returns an implementation specific availability status. This property can return null.
      Specified by:
      getAvailabilityStatus in interface SkuAvailability
    • setAvailabilityStatus

      public void setAvailabilityStatus(AvailabilityStatusType availabilityStatus)
      Deprecated.
      Description copied from interface: SkuAvailability
      Sets the availability status.
      Specified by:
      setAvailabilityStatus in interface SkuAvailability
    • getReserveQuantity

      public Integer getReserveQuantity()
      Deprecated.
      Returns the reserve quantity. Nulls will be treated the same as 0. Implementations may want to manage a reserve quantity at each location so that the available quantity for purchases is the quantityOnHand - reserveQuantity.
      Specified by:
      getReserveQuantity in interface SkuAvailability
    • setReserveQuantity

      public void setReserveQuantity(Integer reserveQuantity)
      Deprecated.
      Sets the reserve quantity. Implementations may want to manage a reserve quantity at each location so that the available quantity for purchases is the quantityOnHand - reserveQuantity.
      Specified by:
      setReserveQuantity in interface SkuAvailability
    • getAvailableQuantity

      public Integer getAvailableQuantity()
      Deprecated.
      Returns the getQuantityOnHand() - getReserveQuantity(). Preferred implementation is to return null if getQuantityOnHand() is null and to treat a null in getReserveQuantity() as ZERO.
      Specified by:
      getAvailableQuantity in interface SkuAvailability
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class Object