public class DiscountModel extends ItemModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
_ORDERDISCOUNTRELATION
Generated relation code constant for relation
OrderDiscountRelation defining source attribute orders in extension core. |
static String |
_TYPECODE
Generated model type code constant.
|
static String |
ABSOLUTE
Generated constant - Attribute key of
Discount.absolute attribute defined at extension core. |
static String |
CODE
Generated constant - Attribute key of
Discount.code attribute defined at extension core. |
static String |
CURRENCY
Generated constant - Attribute key of
Discount.currency attribute defined at extension core. |
static String |
DISCOUNTSTRING
Generated constant - Attribute key of
Discount.discountString attribute defined at extension core. |
static String |
GLOBAL
Generated constant - Attribute key of
Discount.global attribute defined at extension core. |
static String |
NAME
Generated constant - Attribute key of
Discount.name attribute defined at extension core. |
static String |
ORDERS
Generated constant - Attribute key of
Discount.orders attribute defined at extension core. |
static String |
PRIORITY
Generated constant - Attribute key of
Discount.priority attribute defined at extension core. |
static String |
VALUE
Generated constant - Attribute key of
Discount.value attribute defined at extension core. |
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PKLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
DiscountModel()
Generated constructor - Default constructor for generic creation.
|
DiscountModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
DiscountModel(String _code)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
DiscountModel(String _code,
ItemModel _owner)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getAbsolute()
Generated method - Getter of the
Discount.absolute attribute defined at extension core. |
String |
getCode()
Generated method - Getter of the
Discount.code attribute defined at extension core. |
CurrencyModel |
getCurrency()
Generated method - Getter of the
Discount.currency attribute defined at extension core. |
String |
getDiscountstring()
Deprecated.
use
getDiscountString() instead |
String |
getDiscountString()
Generated method - Getter of the
Discount.discountString attribute defined at extension core. |
Boolean |
getGlobal()
Generated method - Getter of the
Discount.global attribute defined at extension core. |
String |
getName()
Generated method - Getter of the
Discount.name attribute defined at extension core. |
String |
getName(Locale loc)
Generated method - Getter of the
Discount.name attribute defined at extension core. |
Collection<AbstractOrderModel> |
getOrders()
Generated method - Getter of the
Discount.orders attribute defined at extension core. |
Integer |
getPriority()
Generated method - Getter of the
Discount.priority attribute defined at extension core. |
Double |
getValue()
Generated method - Getter of the
Discount.value attribute defined at extension core. |
void |
setCode(String value)
Generated method - Setter of
Discount.code attribute defined at extension core. |
void |
setCurrency(CurrencyModel value)
Generated method - Setter of
Discount.currency attribute defined at extension core. |
void |
setGlobal(Boolean value)
Generated method - Setter of
Discount.global attribute defined at extension core. |
void |
setName(String value)
Generated method - Setter of
Discount.name attribute defined at extension core. |
void |
setName(String value,
Locale loc)
Generated method - Setter of
Discount.name attribute defined at extension core. |
void |
setOrders(Collection<AbstractOrderModel> value)
Generated method - Setter of
Discount.orders attribute defined at extension core. |
void |
setPriority(Integer value)
Generated method - Setter of
Discount.priority attribute defined at extension core. |
void |
setValue(Double value)
Generated method - Setter of
Discount.value attribute defined at extension core. |
getComments, getCreationtime, getModifiedtime, getOwner, 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 String _TYPECODE
public static final String _ORDERDISCOUNTRELATION
OrderDiscountRelation defining source attribute orders in extension core.public static final String ABSOLUTE
Discount.absolute attribute defined at extension core.public static final String CODE
Discount.code attribute defined at extension core.public static final String CURRENCY
Discount.currency attribute defined at extension core.public static final String GLOBAL
Discount.global attribute defined at extension core.public static final String NAME
Discount.name attribute defined at extension core.public static final String PRIORITY
Discount.priority attribute defined at extension core.public static final String VALUE
Discount.value attribute defined at extension core.public static final String DISCOUNTSTRING
Discount.discountString attribute defined at extension core.public static final String ORDERS
Discount.orders attribute defined at extension core.public DiscountModel()
public DiscountModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public DiscountModel(String _code)
_code - initial attribute declared by type Discount at extension core@Deprecated public DiscountModel(String _code, ItemModel _owner)
_code - initial attribute declared by type Discount at extension core_owner - initial attribute declared by type Item at extension core@Accessor(qualifier="absolute", type=GETTER) public Boolean getAbsolute()
Discount.absolute attribute defined at extension core.@Accessor(qualifier="code", type=GETTER) public String getCode()
Discount.code attribute defined at extension core.@Accessor(qualifier="currency", type=GETTER) public CurrencyModel getCurrency()
Discount.currency attribute defined at extension core.@Deprecated public String getDiscountstring()
getDiscountString() insteadDiscount.discountString attribute defined at extension core.@Accessor(qualifier="discountString", type=GETTER) public String getDiscountString()
Discount.discountString attribute defined at extension core.@Accessor(qualifier="global", type=GETTER) public Boolean getGlobal()
Discount.global attribute defined at extension core.@Accessor(qualifier="name", type=GETTER) public String getName()
Discount.name attribute defined at extension core.@Accessor(qualifier="name", type=GETTER) public String getName(Locale loc)
Discount.name attribute defined at extension core.loc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="orders", type=GETTER) public Collection<AbstractOrderModel> getOrders()
Discount.orders attribute defined at extension core.
Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.@Accessor(qualifier="priority", type=GETTER) public Integer getPriority()
Discount.priority attribute defined at extension core.@Accessor(qualifier="value", type=GETTER) public Double getValue()
Discount.value attribute defined at extension core.@Accessor(qualifier="code", type=SETTER) public void setCode(String value)
Discount.code attribute defined at extension core.value - the code@Accessor(qualifier="currency", type=SETTER) public void setCurrency(CurrencyModel value)
Discount.currency attribute defined at extension core.value - the currency@Accessor(qualifier="global", type=SETTER) public void setGlobal(Boolean value)
Discount.global attribute defined at extension core.value - the global@Accessor(qualifier="name", type=SETTER) public void setName(String value)
Discount.name attribute defined at extension core.value - the name@Accessor(qualifier="name", type=SETTER) public void setName(String value, Locale loc)
Discount.name attribute defined at extension core.value - the nameloc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="orders", type=SETTER) public void setOrders(Collection<AbstractOrderModel> value)
Discount.orders attribute defined at extension core.value - the orders@Accessor(qualifier="priority", type=SETTER) public void setPriority(Integer value)
Discount.priority attribute defined at extension core.value - the priorityCopyright © 2017 SAP SE. All Rights Reserved.