public class ProductQuantityRestrictionModel extends ProductRestrictionModel
AbstractItemModel.NewModelContextFactory| 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, SEALEDLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| 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, setOwnerequals, 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, writeReplacepublic 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 voucher@Accessor(qualifier="quantity", type=GETTER) public java.lang.Long getQuantity()
ProductQuantityRestriction.quantity attribute defined at extension voucher.@Accessor(qualifier="unit", type=GETTER) public UnitModel getUnit()
ProductQuantityRestriction.unit attribute defined at extension voucher.@Accessor(qualifier="quantity", type=SETTER) 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.Copyright © 2018 SAP SE. All Rights Reserved.