@Entity public class AdWebShop extends BasicAd
| Constructor and Description |
|---|
AdWebShop() |
| Modifier and Type | Method and Description |
|---|---|
protected AdType |
getAdType() |
java.lang.Boolean |
getAllowDecimal() |
java.util.Set<AdDeliveryMethod> |
getDeliveryMethods() |
java.lang.Boolean |
getLowStockNotified() |
java.math.BigDecimal |
getMaxAllowedInCart() |
java.math.BigDecimal |
getMinAllowedInCart() |
java.math.BigDecimal |
getMinimumStockLimit() |
java.lang.String |
getProductNumber() |
java.math.BigDecimal |
getStockQuantity() |
AdWebShopStockType |
getStockType() |
boolean |
isInStock() |
static boolean |
isInStock(AdWebShopStockType stockType,
java.math.BigDecimal stockQuantity)
Returns whether the given stock type / quantity means the product is in stock
|
void |
setAllowDecimal(java.lang.Boolean allowDecimal) |
void |
setDeliveryMethods(java.util.Set<AdDeliveryMethod> deliveryMethods) |
void |
setLowStockNotified(java.lang.Boolean lowStockNotified) |
void |
setMaxAllowedInCart(java.math.BigDecimal maxAllowedInCart) |
void |
setMinAllowedInCart(java.math.BigDecimal minAllowedInCart) |
void |
setMinimumStockLimit(java.math.BigDecimal minimumStockLimit) |
void |
setProductNumber(java.lang.String productNumber) |
void |
setStockQuantity(java.math.BigDecimal stockQuantity) |
void |
setStockType(AdWebShopStockType stockType) |
getAddresses, getAdHistory, getCategoriesIds, getCategory, getCreationDate, getCurrentPrice, getCustomFieldValueClass, getCustomValues, getDeletedDate, getDescription, getDiscriminator, getImage, getImages, getNetwork, getNumberOfImages, getOwner, getPrice, getPromotionalPeriod, getPromotionalPrice, getPublicationPeriod, getQuestions, getStatus, getStatus, getType, getUploadedImages, isDoProcess, isExpirationNotified, isHidden, isPromotionalPeriodActive, isRemovedFromOwner, isSentNotification, setAddresses, setAdHistory, setCategory, setCreationDate, setCustomValues, setDeletedDate, setDescription, setDoProcess, setExpirationNotified, setHidden, setImages, setOwner, setPrice, setPromotionalPeriod, setPromotionalPrice, setPublicationPeriod, setQuestions, setRemovedFromOwner, setSentNotification, setUploadedImagescompareTo, getName, getNames, setName, toStringgetDataTranslationType, getVersion, isGlobal, isPersistent, isTransientclone, equals, getEntityImportance, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCodepublic static boolean isInStock(AdWebShopStockType stockType, java.math.BigDecimal stockQuantity)
public java.lang.Boolean getAllowDecimal()
public java.util.Set<AdDeliveryMethod> getDeliveryMethods()
public java.lang.Boolean getLowStockNotified()
public java.math.BigDecimal getMaxAllowedInCart()
public java.math.BigDecimal getMinAllowedInCart()
public java.math.BigDecimal getMinimumStockLimit()
public java.lang.String getProductNumber()
public java.math.BigDecimal getStockQuantity()
public AdWebShopStockType getStockType()
public void setAllowDecimal(java.lang.Boolean allowDecimal)
public void setDeliveryMethods(java.util.Set<AdDeliveryMethod> deliveryMethods)
public void setLowStockNotified(java.lang.Boolean lowStockNotified)
public void setMaxAllowedInCart(java.math.BigDecimal maxAllowedInCart)
public void setMinAllowedInCart(java.math.BigDecimal minAllowedInCart)
public void setMinimumStockLimit(java.math.BigDecimal minimumStockLimit)
public void setProductNumber(java.lang.String productNumber)
public void setStockQuantity(java.math.BigDecimal stockQuantity)
public void setStockType(AdWebShopStockType stockType)