Class ProductPercentageDiscountPromotionModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.promotions.model.AbstractPromotionModel
-
- de.hybris.platform.promotions.model.ProductPromotionModel
-
- de.hybris.platform.promotions.model.ProductPercentageDiscountPromotionModel
-
- All Implemented Interfaces:
java.io.Serializable
public class ProductPercentageDiscountPromotionModel extends ProductPromotionModel
Generated model class for type ProductPercentageDiscountPromotion first defined at extension promotions.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringMESSAGEFIREDGenerated constant - Attribute key ofProductPercentageDiscountPromotion.messageFiredattribute defined at extensionpromotions.static java.lang.StringPERCENTAGEDISCOUNTGenerated constant - Attribute key ofProductPercentageDiscountPromotion.percentageDiscountattribute defined at extensionpromotions.-
Fields inherited from class de.hybris.platform.promotions.model.ProductPromotionModel
_CATEGORYPROMOTIONRELATION, _PRODUCTPROMOTIONRELATION, CATEGORIES, PRODUCTBANNER, PRODUCTS
-
Fields inherited from class de.hybris.platform.promotions.model.AbstractPromotionModel
_PROMOTIONGROUPPROMOTIONSRELATION, CODE, DESCRIPTION, DETAILSURL, ENABLED, ENDDATE, IMMUTABLEKEY, IMMUTABLEKEYHASH, NAME, PRIORITY, PROMOTIONGROUP, PROMOTIONTYPE, RESTRICTIONS, STARTDATE, TITLE
-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description ProductPercentageDiscountPromotionModel()Generated constructor - Default constructor for generic creation.ProductPercentageDiscountPromotionModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextProductPercentageDiscountPromotionModel(java.lang.String _code)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersProductPercentageDiscountPromotionModel(java.lang.String _code, ItemModel _owner)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessageFired()Generated method - Getter of theProductPercentageDiscountPromotion.messageFiredattribute defined at extensionpromotions.java.lang.StringgetMessageFired(java.util.Locale loc)Generated method - Getter of theProductPercentageDiscountPromotion.messageFiredattribute defined at extensionpromotions.java.lang.DoublegetPercentageDiscount()Generated method - Getter of theProductPercentageDiscountPromotion.percentageDiscountattribute defined at extensionpromotions.voidsetMessageFired(java.lang.String value)Generated method - Setter ofProductPercentageDiscountPromotion.messageFiredattribute defined at extensionpromotions.voidsetMessageFired(java.lang.String value, java.util.Locale loc)Generated method - Setter ofProductPercentageDiscountPromotion.messageFiredattribute defined at extensionpromotions.voidsetPercentageDiscount(java.lang.Double value)Generated method - Setter ofProductPercentageDiscountPromotion.percentageDiscountattribute defined at extensionpromotions.-
Methods inherited from class de.hybris.platform.promotions.model.ProductPromotionModel
getCategories, getProductBanner, getProducts, setCategories, setProductBanner, setProducts
-
Methods inherited from class de.hybris.platform.promotions.model.AbstractPromotionModel
getCode, getDescription, getDetailsURL, getEnabled, getEndDate, getImmutableKey, getImmutableKeyHash, getName, getName, getPriority, getPromotionGroup, getPromotionType, getPromotionType, getRestrictions, getStartDate, getTitle, setCode, setDescription, setDetailsURL, setEnabled, setEndDate, setImmutableKey, setImmutableKeyHash, setName, setName, setPriority, setPromotionGroup, setRestrictions, setStartDate, setTitle
-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
PERCENTAGEDISCOUNT
public static final java.lang.String PERCENTAGEDISCOUNT
Generated constant - Attribute key ofProductPercentageDiscountPromotion.percentageDiscountattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
MESSAGEFIRED
public static final java.lang.String MESSAGEFIRED
Generated constant - Attribute key ofProductPercentageDiscountPromotion.messageFiredattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProductPercentageDiscountPromotionModel
public ProductPercentageDiscountPromotionModel()
Generated constructor - Default constructor for generic creation.
-
ProductPercentageDiscountPromotionModel
public ProductPercentageDiscountPromotionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
ProductPercentageDiscountPromotionModel
@Deprecated(since="4.1.1", forRemoval=true) public ProductPercentageDiscountPromotionModel(java.lang.String _code)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_code- initial attribute declared by typeAbstractPromotionat extensionpromotions
-
ProductPercentageDiscountPromotionModel
@Deprecated(since="4.1.1", forRemoval=true) public ProductPercentageDiscountPromotionModel(java.lang.String _code, ItemModel _owner)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_code- initial attribute declared by typeAbstractPromotionat extensionpromotions_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getMessageFired
@Accessor(qualifier="messageFired", type=GETTER) public java.lang.String getMessageFired()
Generated method - Getter of theProductPercentageDiscountPromotion.messageFiredattribute defined at extensionpromotions.- Returns:
- the messageFired - The message to show when the promotion has fired.
-
getMessageFired
@Accessor(qualifier="messageFired", type=GETTER) public java.lang.String getMessageFired(java.util.Locale loc)
Generated method - Getter of theProductPercentageDiscountPromotion.messageFiredattribute defined at extensionpromotions.- Parameters:
loc- the value localization key- Returns:
- the messageFired - The message to show when the promotion has fired.
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getPercentageDiscount
@Accessor(qualifier="percentageDiscount", type=GETTER) public java.lang.Double getPercentageDiscount()
Generated method - Getter of theProductPercentageDiscountPromotion.percentageDiscountattribute defined at extensionpromotions.- Returns:
- the percentageDiscount - Percentage discount.
-
setMessageFired
@Accessor(qualifier="messageFired", type=SETTER) public void setMessageFired(java.lang.String value)
Generated method - Setter ofProductPercentageDiscountPromotion.messageFiredattribute defined at extensionpromotions.- Parameters:
value- the messageFired - The message to show when the promotion has fired.
-
setMessageFired
@Accessor(qualifier="messageFired", type=SETTER) public void setMessageFired(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofProductPercentageDiscountPromotion.messageFiredattribute defined at extensionpromotions.- Parameters:
value- the messageFired - The message to show when the promotion has fired.loc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setPercentageDiscount
@Accessor(qualifier="percentageDiscount", type=SETTER) public void setPercentageDiscount(java.lang.Double value)
Generated method - Setter ofProductPercentageDiscountPromotion.percentageDiscountattribute defined at extensionpromotions.- Parameters:
value- the percentageDiscount - Percentage discount.
-
-