Package de.hybris.platform.voucher.model
Class ProductQuantityRestrictionModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.voucher.model.RestrictionModel
-
- de.hybris.platform.voucher.model.ProductRestrictionModel
-
- de.hybris.platform.voucher.model.ProductQuantityRestrictionModel
-
- All Implemented Interfaces:
java.io.Serializable
public class ProductQuantityRestrictionModel extends ProductRestrictionModel
Generated model class for type ProductQuantityRestriction first defined at extension voucher.- 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
_TYPECODE
Generated model type code constant.static java.lang.String
QUANTITY
Generated constant - Attribute key ofProductQuantityRestriction.quantity
attribute defined at extensionvoucher
.static java.lang.String
UNIT
Generated constant - Attribute key ofProductQuantityRestriction.unit
attribute defined at extensionvoucher
.-
Fields inherited from class de.hybris.platform.voucher.model.ProductRestrictionModel
PRODUCTS
-
Fields inherited from class de.hybris.platform.voucher.model.RestrictionModel
_VOUCHERRESTRICTIONSRELATION, DESCRIPTION, POSITIVE, RESTRICTIONTYPE, VIOLATIONMESSAGE, VOUCHER, VOUCHERPOS
-
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 ProductQuantityRestrictionModel()
Generated constructor - Default constructor for generic creation.ProductQuantityRestrictionModel(ItemModel _owner, java.lang.Long _quantity, UnitModel _unit, VoucherModel _voucher)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersProductQuantityRestrictionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing contextProductQuantityRestrictionModel(java.lang.Long _quantity, UnitModel _unit, VoucherModel _voucher)
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.Long
getQuantity()
Generated method - Getter of theProductQuantityRestriction.quantity
attribute defined at extensionvoucher
.UnitModel
getUnit()
Generated method - Getter of theProductQuantityRestriction.unit
attribute defined at extensionvoucher
.void
setQuantity(java.lang.Long value)
Generated method - Setter ofProductQuantityRestriction.quantity
attribute defined at extensionvoucher
.void
setUnit(UnitModel value)
Generated method - Setter ofProductQuantityRestriction.unit
attribute defined at extensionvoucher
.-
Methods inherited from class de.hybris.platform.voucher.model.ProductRestrictionModel
getProducts, setProducts
-
Methods inherited from class de.hybris.platform.voucher.model.RestrictionModel
getDescription, getDescription, getPositive, getRestrictionType, getRestrictionType, getViolationMessage, getViolationMessage, getVoucher, setDescription, setDescription, setPositive, setViolationMessage, setViolationMessage, setVoucher
-
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
-
QUANTITY
public static final java.lang.String QUANTITY
Generated constant - Attribute key ofProductQuantityRestriction.quantity
attribute defined at extensionvoucher
.- See Also:
- Constant Field Values
-
UNIT
public static final java.lang.String UNIT
Generated constant - Attribute key ofProductQuantityRestriction.unit
attribute defined at extensionvoucher
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProductQuantityRestrictionModel
public ProductQuantityRestrictionModel()
Generated constructor - Default constructor for generic creation.
-
ProductQuantityRestrictionModel
public ProductQuantityRestrictionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx
- the model context to be injected, must not be null
-
ProductQuantityRestrictionModel
@Deprecated(since="4.1.1", forRemoval=true) public ProductQuantityRestrictionModel(java.lang.Long _quantity, UnitModel _unit, VoucherModel _voucher)
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:
_quantity
- initial attribute declared by typeProductQuantityRestriction
at extensionvoucher
_unit
- initial attribute declared by typeProductQuantityRestriction
at extensionvoucher
_voucher
- initial attribute declared by typeRestriction
at extensionvoucher
-
ProductQuantityRestrictionModel
@Deprecated(since="4.1.1", forRemoval=true) public ProductQuantityRestrictionModel(ItemModel _owner, java.lang.Long _quantity, UnitModel _unit, VoucherModel _voucher)
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:
_owner
- initial attribute declared by typeItem
at extensioncore
_quantity
- initial attribute declared by typeProductQuantityRestriction
at extensionvoucher
_unit
- initial attribute declared by typeProductQuantityRestriction
at extensionvoucher
_voucher
- initial attribute declared by typeRestriction
at extensionvoucher
-
-
Method Detail
-
getQuantity
@Accessor(qualifier="quantity", type=GETTER) public java.lang.Long getQuantity()
Generated method - Getter of theProductQuantityRestriction.quantity
attribute defined at extensionvoucher
.- Returns:
- the quantity - the quantity of products the given voucher is valid for.
-
getUnit
@Accessor(qualifier="unit", type=GETTER) public UnitModel getUnit()
Generated method - Getter of theProductQuantityRestriction.unit
attribute defined at extensionvoucher
.- Returns:
- the unit - the unit for the quantity of products the given voucher is valid for.
-
setQuantity
@Accessor(qualifier="quantity", type=SETTER) public void setQuantity(java.lang.Long value)
Generated method - Setter ofProductQuantityRestriction.quantity
attribute defined at extensionvoucher
.- Parameters:
value
- the quantity - the quantity of products the given voucher is valid for.
-
-