public abstract class GeneratedVoucher extends Discount
Voucher.GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
DESCRIPTION
Qualifier of the
Voucher.description attribute |
static String |
FREESHIPPING
Qualifier of the
Voucher.freeShipping attribute |
static String |
INVALIDATIONS
Qualifier of the
Voucher.invalidations attribute |
protected static OneToManyHandler<VoucherInvalidation> |
INVALIDATIONSHANDLER
OneToManyHandler for handling 1:n INVALIDATIONS's relation attributes from 'many' side. |
static String |
RESTRICTIONS
Qualifier of the
Voucher.restrictions attribute |
protected static OneToManyHandler<Restriction> |
RESTRICTIONSHANDLER
OneToManyHandler for handling 1:n RESTRICTIONS's relation attributes from 'many' side. |
static String |
VALUESTRING
Qualifier of the
Voucher.valueString attribute |
EXTERNAL_KEY, GLOBAL, VALUE_END, VALUE_STARTABSOLUTE, CODE, CURRENCY, DISCOUNTSTRING, NAME, ORDERDISCOUNTRELATION_MARKMODIFIED, ORDERDISCOUNTRELATION_SRC_ORDERED, ORDERDISCOUNTRELATION_TGT_ORDERED, ORDERS, PRIORITY, VALUELANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
GeneratedVoucher() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToInvalidations(SessionContext ctx,
VoucherInvalidation value)
Generated method - Adds
value to invalidations. |
void |
addToInvalidations(VoucherInvalidation value)
Generated method - Adds
value to invalidations. |
void |
addToRestrictions(Restriction value)
Generated method - Adds
value to restrictions. |
void |
addToRestrictions(SessionContext ctx,
Restriction value)
Generated method - Adds
value to restrictions. |
Map<Language,String> |
getAllDescription()
Generated method - Getter of the
Voucher.description attribute. |
Map<Language,String> |
getAllDescription(SessionContext ctx)
Generated method - Getter of the
Voucher.description attribute. |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
String |
getDescription()
Generated method - Getter of the
Voucher.description attribute. |
String |
getDescription(SessionContext ctx)
Generated method - Getter of the
Voucher.description attribute. |
Collection<VoucherInvalidation> |
getInvalidations()
Generated method - Getter of the
Voucher.invalidations attribute. |
Collection<VoucherInvalidation> |
getInvalidations(SessionContext ctx)
Generated method - Getter of the
Voucher.invalidations attribute. |
Set<Restriction> |
getRestrictions()
Generated method - Getter of the
Voucher.restrictions attribute. |
Set<Restriction> |
getRestrictions(SessionContext ctx)
Generated method - Getter of the
Voucher.restrictions attribute. |
String |
getValueString()
Generated method - Getter of the
Voucher.valueString attribute. |
abstract String |
getValueString(SessionContext ctx)
Generated method - Getter of the
Voucher.valueString attribute. |
Boolean |
isFreeShipping()
Generated method - Getter of the
Voucher.freeShipping attribute. |
Boolean |
isFreeShipping(SessionContext ctx)
Generated method - Getter of the
Voucher.freeShipping attribute. |
boolean |
isFreeShippingAsPrimitive()
Generated method - Getter of the
Voucher.freeShipping attribute. |
boolean |
isFreeShippingAsPrimitive(SessionContext ctx)
Generated method - Getter of the
Voucher.freeShipping attribute. |
void |
removeFromInvalidations(SessionContext ctx,
VoucherInvalidation value)
Generated method - Removes
value from invalidations. |
void |
removeFromInvalidations(VoucherInvalidation value)
Generated method - Removes
value from invalidations. |
void |
removeFromRestrictions(Restriction value)
Generated method - Removes
value from restrictions. |
void |
removeFromRestrictions(SessionContext ctx,
Restriction value)
Generated method - Removes
value from restrictions. |
void |
setAllDescription(Map<Language,String> value)
Generated method - Setter of the
Voucher.description attribute. |
void |
setAllDescription(SessionContext ctx,
Map<Language,String> value)
Generated method - Setter of the
Voucher.description attribute. |
void |
setDescription(SessionContext ctx,
String value)
Generated method - Setter of the
Voucher.description attribute. |
void |
setDescription(String value)
Generated method - Setter of the
Voucher.description attribute. |
void |
setFreeShipping(boolean value)
Generated method - Setter of the
Voucher.freeShipping attribute. |
void |
setFreeShipping(Boolean value)
Generated method - Setter of the
Voucher.freeShipping attribute. |
void |
setFreeShipping(SessionContext ctx,
boolean value)
Generated method - Setter of the
Voucher.freeShipping attribute. |
void |
setFreeShipping(SessionContext ctx,
Boolean value)
Generated method - Setter of the
Voucher.freeShipping attribute. |
void |
setInvalidations(Collection<VoucherInvalidation> value)
Generated method - Setter of the
Voucher.invalidations attribute. |
void |
setInvalidations(SessionContext ctx,
Collection<VoucherInvalidation> value)
Generated method - Setter of the
Voucher.invalidations attribute. |
void |
setRestrictions(SessionContext ctx,
Set<Restriction> value)
Generated method - Setter of the
Voucher.restrictions attribute. |
void |
setRestrictions(Set<Restriction> value)
Generated method - Setter of the
Voucher.restrictions attribute. |
addOrder, createItem, getAllNames, getDiscountstring, getDiscountString, getDiscountValue, getPriority, getValue, isAbsolute, notifyOrderCalculated, notifyOrderRemoval, removeOrder, setAllNames, setCodeaddToOrders, addToOrders, getAllName, getAllName, getCode, getCode, getCurrency, getCurrency, getDiscountString, getName, getName, getOrders, getOrders, getOrdersCount, getOrdersCount, getPriority, getPriorityAsPrimitive, getPriorityAsPrimitive, getValue, getValueAsPrimitive, getValueAsPrimitive, isAbsolute, isAbsoluteAsPrimitive, isAbsoluteAsPrimitive, isGlobal, isGlobal, isGlobalAsPrimitive, isGlobalAsPrimitive, removeFromOrders, removeFromOrders, setAllName, setAllName, setCode, setCurrency, setCurrency, setGlobal, setGlobal, setGlobal, setGlobal, setName, setName, setOrders, setOrders, setPriority, setPriority, setPriority, setPriority, setValue, setValue, setValue, setValuegetInitialProperties, getNonInitialAttributesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, readResolve, refreshRemote, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, toString, useTA, writeReplacegetImplementation, setTenantpublic static final String DESCRIPTION
Voucher.description attributepublic static final String FREESHIPPING
Voucher.freeShipping attributepublic static final String VALUESTRING
Voucher.valueString attributepublic static final String RESTRICTIONS
Voucher.restrictions attributepublic static final String INVALIDATIONS
Voucher.invalidations attributeprotected static final OneToManyHandler<Restriction> RESTRICTIONSHANDLER
OneToManyHandler for handling 1:n RESTRICTIONS's relation attributes from 'many' side.protected static final OneToManyHandler<VoucherInvalidation> INVALIDATIONSHANDLER
OneToManyHandler for handling 1:n INVALIDATIONS's relation attributes from 'many' side.protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class GeneratedDiscountpublic String getDescription(SessionContext ctx)
Voucher.description attribute.public String getDescription()
Voucher.description attribute.public Map<Language,String> getAllDescription(SessionContext ctx)
Voucher.description attribute.public Map<Language,String> getAllDescription()
Voucher.description attribute.public void setDescription(SessionContext ctx, String value)
Voucher.description attribute.value - the description - the description of the voucher.public void setDescription(String value)
Voucher.description attribute.value - the description - the description of the voucher.public void setAllDescription(SessionContext ctx, Map<Language,String> value)
Voucher.description attribute.value - the description - the description of the voucher.public void setAllDescription(Map<Language,String> value)
Voucher.description attribute.value - the description - the description of the voucher.public Boolean isFreeShipping(SessionContext ctx)
Voucher.freeShipping attribute.public Boolean isFreeShipping()
Voucher.freeShipping attribute.public boolean isFreeShippingAsPrimitive(SessionContext ctx)
Voucher.freeShipping attribute.public boolean isFreeShippingAsPrimitive()
Voucher.freeShipping attribute.public void setFreeShipping(SessionContext ctx, Boolean value)
Voucher.freeShipping attribute.value - the freeShipping - Specifies if the order this voucher is applied to is shipped
for free (true) or not (false). Default is not (false).public void setFreeShipping(Boolean value)
Voucher.freeShipping attribute.value - the freeShipping - Specifies if the order this voucher is applied to is shipped
for free (true) or not (false). Default is not (false).public void setFreeShipping(SessionContext ctx, boolean value)
Voucher.freeShipping attribute.value - the freeShipping - Specifies if the order this voucher is applied to is shipped
for free (true) or not (false). Default is not (false).public void setFreeShipping(boolean value)
Voucher.freeShipping attribute.value - the freeShipping - Specifies if the order this voucher is applied to is shipped
for free (true) or not (false). Default is not (false).public Collection<VoucherInvalidation> getInvalidations(SessionContext ctx)
Voucher.invalidations attribute.public Collection<VoucherInvalidation> getInvalidations()
Voucher.invalidations attribute.public void setInvalidations(SessionContext ctx, Collection<VoucherInvalidation> value)
Voucher.invalidations attribute.value - the invalidationspublic void setInvalidations(Collection<VoucherInvalidation> value)
Voucher.invalidations attribute.value - the invalidationspublic void addToInvalidations(SessionContext ctx, VoucherInvalidation value)
value to invalidations.value - the item to add to invalidationspublic void addToInvalidations(VoucherInvalidation value)
value to invalidations.value - the item to add to invalidationspublic void removeFromInvalidations(SessionContext ctx, VoucherInvalidation value)
value from invalidations.value - the item to remove from invalidationspublic void removeFromInvalidations(VoucherInvalidation value)
value from invalidations.value - the item to remove from invalidationspublic Set<Restriction> getRestrictions(SessionContext ctx)
Voucher.restrictions attribute.public Set<Restriction> getRestrictions()
Voucher.restrictions attribute.public void setRestrictions(SessionContext ctx, Set<Restriction> value)
Voucher.restrictions attribute.value - the restrictionspublic void setRestrictions(Set<Restriction> value)
Voucher.restrictions attribute.value - the restrictionspublic void addToRestrictions(SessionContext ctx, Restriction value)
value to restrictions.value - the item to add to restrictionspublic void addToRestrictions(Restriction value)
value to restrictions.value - the item to add to restrictionspublic void removeFromRestrictions(SessionContext ctx, Restriction value)
value from restrictions.value - the item to remove from restrictionspublic void removeFromRestrictions(Restriction value)
value from restrictions.value - the item to remove from restrictionspublic abstract String getValueString(SessionContext ctx)
Voucher.valueString attribute.public String getValueString()
Voucher.valueString attribute.Copyright © 2017 SAP SE. All Rights Reserved.