@Entity public class AdWebShop extends BasicAd
| Constructor and Description |
|---|
AdWebShop() |
| Modifier and Type | Method and Description |
|---|---|
protected AdType |
getAdType() |
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 |
isAllowDecimal() |
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(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) |
addImage, getActualStatus, getAddresses, getAdHistory, getAuthorizationNotes, getCategories, getCreationDate, getCurrency, getCurrentPrice, getCustomFieldValueClass, getCustomValues, getDeletedDate, getDescription, getDiscriminator, getImage, getImageCount, getImages, getLogType, getNetwork, getNumberOfImages, getOwner, getPersistedStatus, getPrice, getPromotionalPeriod, getPromotionalPrice, getPublicationPeriod, getQuestions, getStatus, getType, getUploadedImages, isDoProcess, isExpirationNotified, isHidden, isPromotionalPeriodActive, isRemovedFromOwner, isSentNotification, setAddresses, setAdHistory, setAuthorizationNotes, setCategories, setCreationDate, setCustomValues, setDeletedDate, setDescription, setDoProcess, setExpirationNotified, setImages, setOwner, setPrice, setPromotionalPeriod, setPromotionalPrice, setPublicationPeriod, setQuestions, setRemovedFromOwner, setSentNotification, setStatus, 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.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 boolean isAllowDecimal()
public void setAllowDecimal(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)