Class AdWebShopVO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.EntityModel
-
- org.cyclos.model.EntityVO
-
- org.cyclos.model.NamedEntityVO
-
- org.cyclos.model.marketplace.advertisements.BasicAdVO
-
- org.cyclos.model.marketplace.advertisements.AdWebShopVO
-
- All Implemented Interfaces:
Serializable,Comparable<NamedEntityVO>,IEntity,INamedEntity
public class AdWebShopVO extends BasicAdVO
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BasicProperty<Boolean,AdWebShopVO>ALLOW_DECIMALstatic BasicProperty<Boolean,AdWebShopVO>CAN_ADD_TO_CARTstatic StringCLASS_NAMEstatic BasicProperty<Boolean,AdWebShopVO>IN_STOCKstatic BasicProperty<BigDecimal,AdWebShopVO>MAX_ALLOWED_IN_CARTstatic BasicProperty<BigDecimal,AdWebShopVO>MIN_ALLOWED_IN_CARTstatic BasicProperty<String,AdWebShopVO>PRODUCT_NUMBERstatic BasicProperty<BigDecimal,AdWebShopVO>STOCK_QUANTITYstatic BasicProperty<AdWebShopStockType,AdWebShopVO>STOCK_TYPE-
Fields inherited from class org.cyclos.model.marketplace.advertisements.BasicAdVO
ADDRESS, CATEGORIES, CREATION_DATE, CURRENT_PRICE, DESCRIPTION, EDITABLE, FAVORITE_FOR_VIEWER, IMAGE, OWNER, PRICE, PROMOTIONAL_PERIOD_ACTIVE, PROMOTIONAL_PRICE, PUBLICATION_PERIOD, STATUS, TYPE
-
Fields inherited from class org.cyclos.model.NamedEntityVO
NAME
-
Fields inherited from class org.cyclos.model.EntityModel
ID
-
-
Constructor Summary
Constructors Constructor Description AdWebShopVO()AdWebShopVO(Long id)AdWebShopVO(Property<T,? super AdWebShopVO> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassName()protected List<Property<?,?>>doGetProperties()BigDecimalgetMaxAllowedInCart()BigDecimalgetMinAllowedInCart()StringgetProductNumber()BigDecimalgetStockQuantity()AdWebShopStockTypegetStockType()booleanisAllowDecimal()booleanisCanAddToCart()booleanisInStock()voidsetAllowDecimal(boolean allowDecimal)voidsetCanAddToCart(boolean canAddToCart)voidsetInStock(boolean inStock)voidsetMaxAllowedInCart(BigDecimal maxAllowedInCart)voidsetMinAllowedInCart(BigDecimal minAllowedInCart)voidsetProductNumber(String productNumber)voidsetStockQuantity(BigDecimal stockQuantity)voidsetStockType(AdWebShopStockType stockType)-
Methods inherited from class org.cyclos.model.marketplace.advertisements.BasicAdVO
getAddress, getCategories, getCreationDate, getCurrentPrice, getDescription, getImage, getOwner, getPrice, getPromotionalPrice, getPublicationPeriod, getStatus, getType, isEditable, isFavoriteForViewer, isPromotionalPeriodActive, setAddress, setCategories, setCreationDate, setCurrentPrice, setDescription, setEditable, setFavoriteForViewer, setImage, setOwner, setPrice, setPromotionalPeriodActive, setPromotionalPrice, setPublicationPeriod, setStatus, setType
-
Methods inherited from class org.cyclos.model.NamedEntityVO
compareTo, getName, setName, toString
-
Methods inherited from class org.cyclos.model.EntityModel
getId, setId
-
Methods inherited from class org.cyclos.model.Bean
addPropertyChangeListener, addPropertyChangeListener, attributeNames, backup, changes, clearAttributes, copyPropertiesTo, copyPropertiesTo, copyPropertiesTo, dataAccessor, firePropertyChange, get, getAttribute, initDataAccessor, properties, property, propertyMap, removeAttribute, removePropertyChangeListener, removePropertyChangeListener, restore, set, set, setAttribute, setWithPropagationId, values
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
ALLOW_DECIMAL
public static final BasicProperty<Boolean,AdWebShopVO> ALLOW_DECIMAL
-
CAN_ADD_TO_CART
public static final BasicProperty<Boolean,AdWebShopVO> CAN_ADD_TO_CART
-
IN_STOCK
public static final BasicProperty<Boolean,AdWebShopVO> IN_STOCK
-
MAX_ALLOWED_IN_CART
public static final BasicProperty<BigDecimal,AdWebShopVO> MAX_ALLOWED_IN_CART
-
MIN_ALLOWED_IN_CART
public static final BasicProperty<BigDecimal,AdWebShopVO> MIN_ALLOWED_IN_CART
-
PRODUCT_NUMBER
public static final BasicProperty<String,AdWebShopVO> PRODUCT_NUMBER
-
STOCK_QUANTITY
public static final BasicProperty<BigDecimal,AdWebShopVO> STOCK_QUANTITY
-
STOCK_TYPE
public static final BasicProperty<AdWebShopStockType,AdWebShopVO> STOCK_TYPE
-
-
Constructor Detail
-
AdWebShopVO
public AdWebShopVO()
-
AdWebShopVO
public AdWebShopVO(Long id)
-
AdWebShopVO
public AdWebShopVO(Property<T,? super AdWebShopVO> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classBasicAdVO
-
isAllowDecimal
public boolean isAllowDecimal()
-
setAllowDecimal
public void setAllowDecimal(boolean allowDecimal)
-
isCanAddToCart
public boolean isCanAddToCart()
-
setCanAddToCart
public void setCanAddToCart(boolean canAddToCart)
-
isInStock
public boolean isInStock()
-
setInStock
public void setInStock(boolean inStock)
-
getMaxAllowedInCart
public BigDecimal getMaxAllowedInCart()
-
setMaxAllowedInCart
public void setMaxAllowedInCart(BigDecimal maxAllowedInCart)
-
getMinAllowedInCart
public BigDecimal getMinAllowedInCart()
-
setMinAllowedInCart
public void setMinAllowedInCart(BigDecimal minAllowedInCart)
-
getProductNumber
public String getProductNumber()
-
setProductNumber
public void setProductNumber(String productNumber)
-
getStockQuantity
public BigDecimal getStockQuantity()
-
setStockQuantity
public void setStockQuantity(BigDecimal stockQuantity)
-
getStockType
public AdWebShopStockType getStockType()
-
setStockType
public void setStockType(AdWebShopStockType stockType)
-
-