public class ProductQuantityRestrictionModel extends ProductRestrictionModel
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_TYPECODE
Generated model type code constant.
|
static java.lang.String |
QUANTITY
Generated constant - Attribute key of
ProductQuantityRestriction.quantity attribute defined at extension voucher. |
static java.lang.String |
UNIT
Generated constant - Attribute key of
ProductQuantityRestriction.unit attribute defined at extension voucher. |
PRODUCTS_VOUCHERRESTRICTIONSRELATION, DESCRIPTION, POSITIVE, RESTRICTIONTYPE, VIOLATIONMESSAGE, VOUCHER, VOUCHERPOS_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED| Constructor and Description |
|---|
ProductQuantityRestrictionModel()
Generated constructor - Default constructor for generic creation.
|
ProductQuantityRestrictionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
ProductQuantityRestrictionModel(ItemModel _owner,
java.lang.Long _quantity,
UnitModel _unit,
VoucherModel _voucher)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
ProductQuantityRestrictionModel(java.lang.Long _quantity,
UnitModel _unit,
VoucherModel _voucher)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getQuantity()
Generated method - Getter of the
ProductQuantityRestriction.quantity attribute defined at extension voucher. |
UnitModel |
getUnit()
Generated method - Getter of the
ProductQuantityRestriction.unit attribute defined at extension voucher. |
void |
setQuantity(java.lang.Long value)
Generated method - Setter of
ProductQuantityRestriction.quantity attribute defined at extension voucher. |
void |
setUnit(UnitModel value)
Generated method - Setter of
ProductQuantityRestriction.unit attribute defined at extension voucher. |
getProducts, setProductsgetDescription, getDescription, getPositive, getRestrictionType, getRestrictionType, getViolationMessage, getViolationMessage, getVoucher, setDescription, setDescription, setPositive, setViolationMessage, setViolationMessage, setVouchergetComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerpublic static final java.lang.String _TYPECODE
public static final java.lang.String QUANTITY
ProductQuantityRestriction.quantity attribute defined at extension voucher.public static final java.lang.String UNIT
ProductQuantityRestriction.unit attribute defined at extension voucher.public ProductQuantityRestrictionModel()
public ProductQuantityRestrictionModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated
public ProductQuantityRestrictionModel(java.lang.Long _quantity,
UnitModel _unit,
VoucherModel _voucher)
_quantity - initial attribute declared by type ProductQuantityRestriction at extension voucher_unit - initial attribute declared by type ProductQuantityRestriction at extension voucher_voucher - initial attribute declared by type Restriction at extension voucher@Deprecated public ProductQuantityRestrictionModel(ItemModel _owner, java.lang.Long _quantity, UnitModel _unit, VoucherModel _voucher)
_owner - initial attribute declared by type Item at extension core_quantity - initial attribute declared by type ProductQuantityRestriction at extension voucher_unit - initial attribute declared by type ProductQuantityRestriction at extension voucher_voucher - initial attribute declared by type Restriction at extension voucherpublic java.lang.Long getQuantity()
ProductQuantityRestriction.quantity attribute defined at extension voucher.public UnitModel getUnit()
ProductQuantityRestriction.unit attribute defined at extension voucher.public void setQuantity(java.lang.Long value)
ProductQuantityRestriction.quantity attribute defined at extension voucher.value - the quantity - the quantity of products the given voucher is valid for.public void setUnit(UnitModel value)
ProductQuantityRestriction.unit attribute defined at extension voucher.value - the unit - the unit for the quantity of products the given voucher is valid for.Copyright © 2018 SAP SE. All Rights Reserved.