Class SkuAvailabilityImpl
java.lang.Object
org.broadleafcommerce.core.inventory.domain.SkuAvailabilityImpl
- All Implemented Interfaces:
Serializable,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
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
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 Summary
FieldsModifier and TypeFieldDescriptionprotected DateDeprecated.The date this product will be available.protected StringDeprecated.The description.protected LongDeprecated.The id.protected LongDeprecated.The retail price.protected IntegerDeprecated.The quantity on hand.protected IntegerDeprecated.The reserve quantity.protected LongDeprecated.The sale price. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Deprecated.Returns the data the SKU will be available.Deprecated.Returns an implementation specific availability status.Deprecated.Returns the getQuantityOnHand() - getReserveQuantity().getId()Deprecated.Returns the id of this SkuAvailabilityDeprecated.Returns the USPSLocation id of this skuAvailability.Deprecated.Returns the number of this items that are currently in stock and available for sell.Deprecated.Returns the reserve quantity.getSkuId()Deprecated.Returns the id of this SKU associated with SkuAvailability recordinthashCode()Deprecated.voidsetAvailabilityDate(Date availabilityDate) Deprecated.Sets the date the SKU will be available.voidsetAvailabilityStatus(AvailabilityStatusType availabilityStatus) Deprecated.Sets the availability status.voidDeprecated.Sets the id of this SkuAvailability recordvoidsetLocationId(Long locationId) Deprecated.Sets the USPSLocation id of this skuAvailability.voidsetQuantityOnHand(Integer qoh) Deprecated.Sets the quantity on hand.voidsetReserveQuantity(Integer reserveQuantity) Deprecated.Sets the reserve quantity.voidDeprecated.Sets the id of this SKU
-
Field Details
-
id
Deprecated.The id. -
skuId
Deprecated.The sale price. -
locationId
Deprecated.The retail price. -
quantityOnHand
Deprecated.The quantity on hand. -
reserveQuantity
Deprecated.The reserve quantity. -
availabilityStatus
Deprecated.The description. -
availabilityDate
Deprecated.The date this product will be available.
-
-
Constructor Details
-
SkuAvailabilityImpl
public SkuAvailabilityImpl()Deprecated.
-
-
Method Details
-
getId
Deprecated.Description copied from interface:SkuAvailabilityReturns the id of this SkuAvailability- Specified by:
getIdin interfaceSkuAvailability
-
setId
Deprecated.Description copied from interface:SkuAvailabilitySets the id of this SkuAvailability record- Specified by:
setIdin interfaceSkuAvailability
-
getLocationId
Deprecated.Description copied from interface:SkuAvailabilityReturns 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:
getLocationIdin interfaceSkuAvailability
-
setLocationId
Deprecated.Description copied from interface:SkuAvailabilitySets 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:
setLocationIdin interfaceSkuAvailability
-
getQuantityOnHand
Deprecated.Description copied from interface:SkuAvailabilityReturns the number of this items that are currently in stock and available for sell. Returning null has an implementation specific meaning.- Specified by:
getQuantityOnHandin interfaceSkuAvailability
-
setQuantityOnHand
Deprecated.Description copied from interface:SkuAvailabilitySets the quantity on hand. Setting to null is allowed and has an implementation specific meaning.- Specified by:
setQuantityOnHandin interfaceSkuAvailability
-
getSkuId
Deprecated.Description copied from interface:SkuAvailabilityReturns the id of this SKU associated with SkuAvailability record- Specified by:
getSkuIdin interfaceSkuAvailability
-
setSkuId
Deprecated.Description copied from interface:SkuAvailabilitySets the id of this SKU- Specified by:
setSkuIdin interfaceSkuAvailability
-
getAvailabilityDate
Deprecated.Description copied from interface:SkuAvailabilityReturns the data the SKU will be available. This property may return null which has an implementation specific meaning.- Specified by:
getAvailabilityDatein interfaceSkuAvailability
-
setAvailabilityDate
Deprecated.Description copied from interface:SkuAvailabilitySets the date the SKU will be available. Setting to null is allowed and has an implementation specific meaning.- Specified by:
setAvailabilityDatein interfaceSkuAvailability
-
getAvailabilityStatus
Deprecated.Description copied from interface:SkuAvailabilityReturns an implementation specific availability status. This property can return null.- Specified by:
getAvailabilityStatusin interfaceSkuAvailability
-
setAvailabilityStatus
Deprecated.Description copied from interface:SkuAvailabilitySets the availability status.- Specified by:
setAvailabilityStatusin interfaceSkuAvailability
-
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:
getReserveQuantityin interfaceSkuAvailability
-
setReserveQuantity
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:
setReserveQuantityin interfaceSkuAvailability
-
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:
getAvailableQuantityin interfaceSkuAvailability
-
hashCode
public int hashCode()Deprecated. -
equals
Deprecated.
-