Class ProductPromotionModel
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
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ProductBOGOFPromotionModel,ProductBundlePromotionModel,ProductFixedPricePromotionModel,ProductMultiBuyPromotionModel,ProductOneToOnePerfectPartnerPromotionModel,ProductPercentageDiscountPromotionModel,ProductPerfectPartnerBundlePromotionModel,ProductPerfectPartnerPromotionModel,ProductPriceDiscountPromotionByPaymentTypeModel,ProductSteppedMultiBuyPromotionModel,ProductThresholdPriceDiscountPromotionModel
Generated model class for type ProductPromotion first defined at extension promotions.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated relation code constant for relationCategoryPromotionRelationdefining source attributecategoriesin extensionpromotions.static final StringGenerated relation code constant for relationProductPromotionRelationdefining source attributeproductsin extensionpromotions.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofProductPromotion.categoriesattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofProductPromotion.productBannerattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofProductPromotion.productsattribute defined at extensionpromotions.Fields inherited from class de.hybris.platform.promotions.model.AbstractPromotionModel
_PROMOTIONGROUPPROMOTIONSRELATION, CODE, DESCRIPTION, DETAILSURL, ENABLED, ENDDATE, IMMUTABLEKEY, IMMUTABLEKEYHASH, NAME, PRIORITY, PROMOTIONGROUP, PROMOTIONTYPE, RESTRICTIONS, STARTDATE, TITLEFields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.Generated constructor - Default constructor for creation with existing contextProductPromotionModel(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 parametersProductPromotionModel(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
Modifier and TypeMethodDescriptionGenerated method - Getter of theProductPromotion.categoriesattribute defined at extensionpromotions.Generated method - Getter of theProductPromotion.productBannerattribute defined at extensionpromotions.Generated method - Getter of theProductPromotion.productsattribute defined at extensionpromotions.voidsetCategories(Collection<CategoryModel> value) Generated method - Setter ofProductPromotion.categoriesattribute defined at extensionpromotions.voidsetProductBanner(MediaModel value) Generated method - Setter ofProductPromotion.productBannerattribute defined at extensionpromotions.voidsetProducts(Collection<ProductModel> value) Generated method - Setter ofProductPromotion.productsattribute defined at extensionpromotions.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, setTitleMethods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods 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 Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
_PRODUCTPROMOTIONRELATION
Generated relation code constant for relationProductPromotionRelationdefining source attributeproductsin extensionpromotions.- See Also:
-
_CATEGORYPROMOTIONRELATION
Generated relation code constant for relationCategoryPromotionRelationdefining source attributecategoriesin extensionpromotions.- See Also:
-
PRODUCTBANNER
Generated constant - Attribute key ofProductPromotion.productBannerattribute defined at extensionpromotions.- See Also:
-
PRODUCTS
Generated constant - Attribute key ofProductPromotion.productsattribute defined at extensionpromotions.- See Also:
-
CATEGORIES
Generated constant - Attribute key ofProductPromotion.categoriesattribute defined at extensionpromotions.- See Also:
-
-
Constructor Details
-
ProductPromotionModel
public ProductPromotionModel()Generated constructor - Default constructor for generic creation. -
ProductPromotionModel
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
ProductPromotionModel
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
-
ProductPromotionModel
@Deprecated(since="4.1.1", forRemoval=true) public ProductPromotionModel(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 Details
-
getCategories
Generated method - Getter of theProductPromotion.categoriesattribute defined at extensionpromotions. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the categories - Categories
-
getProductBanner
Generated method - Getter of theProductPromotion.productBannerattribute defined at extensionpromotions.- Returns:
- the productBanner - Media to display on the product page when this promotion is available.
-
getProducts
Generated method - Getter of theProductPromotion.productsattribute defined at extensionpromotions. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the products - Products
-
setCategories
@Accessor(qualifier="categories", type=SETTER) public void setCategories(Collection<CategoryModel> value) Generated method - Setter ofProductPromotion.categoriesattribute defined at extensionpromotions.- Parameters:
value- the categories - Categories
-
setProductBanner
Generated method - Setter ofProductPromotion.productBannerattribute defined at extensionpromotions.- Parameters:
value- the productBanner - Media to display on the product page when this promotion is available.
-
setProducts
@Accessor(qualifier="products", type=SETTER) public void setProducts(Collection<ProductModel> value) Generated method - Setter ofProductPromotion.productsattribute defined at extensionpromotions.- Parameters:
value- the products - Products
-