|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.core.inventory.domain.SkuAvailabilityImpl
@Entity public class SkuAvailabilityImpl
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
Sku},
Serialized Form| Field Summary | |
|---|---|
protected Date |
availabilityDate
The date this product will be available. |
protected String |
availabilityStatus
The description. |
protected Long |
id
The id. |
protected Long |
locationId
The retail price. |
protected Integer |
quantityOnHand
The quantity on hand. |
protected Integer |
reserveQuantity
The reserve quantity. |
protected Long |
skuId
The sale price. |
| Constructor Summary | |
|---|---|
SkuAvailabilityImpl()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Date |
getAvailabilityDate()
Returns the data the SKU will be available. |
AvailabilityStatusType |
getAvailabilityStatus()
Returns an implementation specific availability status. |
Integer |
getAvailableQuantity()
Returns the getQuantityOnHand() - getReserveQuantity(). |
Long |
getId()
Returns the id of this SkuAvailability |
Long |
getLocationId()
Returns the USPSLocation id of this skuAvailability. |
Integer |
getQuantityOnHand()
Returns the number of this items that are currently in stock and available for sell. |
Integer |
getReserveQuantity()
Returns the reserve quantity. |
Long |
getSkuId()
Returns the id of this SKU associated with SkuAvailability record |
int |
hashCode()
|
void |
setAvailabilityDate(Date availabilityDate)
Sets the date the SKU will be available. |
void |
setAvailabilityStatus(AvailabilityStatusType availabilityStatus)
Sets the availability status. |
void |
setId(Long id)
Sets the id of this SkuAvailability record |
void |
setLocationId(Long locationId)
Sets the USPSLocation id of this skuAvailability. |
void |
setQuantityOnHand(Integer qoh)
Sets the quantity on hand. |
void |
setReserveQuantity(Integer reserveQuantity)
Sets the reserve quantity. |
void |
setSkuId(Long skuId)
Sets the id of this SKU |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Long id
protected Long skuId
protected Long locationId
protected Integer quantityOnHand
protected Integer reserveQuantity
protected String availabilityStatus
protected Date availabilityDate
| Constructor Detail |
|---|
public SkuAvailabilityImpl()
| Method Detail |
|---|
public Long getId()
SkuAvailability
getId in interface SkuAvailabilitypublic Long getLocationId()
SkuAvailability
getLocationId in interface SkuAvailabilitypublic Integer getQuantityOnHand()
SkuAvailability
getQuantityOnHand in interface SkuAvailabilitypublic Long getSkuId()
SkuAvailability
getSkuId in interface SkuAvailabilitypublic void setId(Long id)
SkuAvailability
setId in interface SkuAvailabilitypublic void setLocationId(Long locationId)
SkuAvailability
setLocationId in interface SkuAvailabilitypublic void setQuantityOnHand(Integer qoh)
SkuAvailability
setQuantityOnHand in interface SkuAvailabilitypublic void setSkuId(Long skuId)
SkuAvailability
setSkuId in interface SkuAvailabilitypublic Date getAvailabilityDate()
SkuAvailability
getAvailabilityDate in interface SkuAvailabilitypublic void setAvailabilityDate(Date availabilityDate)
SkuAvailability
setAvailabilityDate in interface SkuAvailabilitypublic AvailabilityStatusType getAvailabilityStatus()
SkuAvailability
getAvailabilityStatus in interface SkuAvailabilitypublic void setAvailabilityStatus(AvailabilityStatusType availabilityStatus)
SkuAvailability
setAvailabilityStatus in interface SkuAvailabilitypublic Integer getReserveQuantity()
getReserveQuantity in interface SkuAvailabilitypublic void setReserveQuantity(Integer reserveQuantity)
setReserveQuantity in interface SkuAvailabilitypublic Integer getAvailableQuantity()
getAvailableQuantity in interface SkuAvailabilitypublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||