public abstract class GeneratedProductQuantityRestriction extends ProductRestriction
ProductQuantityRestriction.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 |
QUANTITY
Qualifier of the
ProductQuantityRestriction.quantity attribute |
static String |
UNIT
Qualifier of the
ProductQuantityRestriction.unit attribute |
PRODUCTSDESCRIPTION, POSITIVE, RESTRICTIONTYPE, VIOLATIONMESSAGE, VOUCHER, VOUCHERHANDLER, VOUCHERPOSLANGUAGE_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, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
GeneratedProductQuantityRestriction() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
Long |
getQuantity()
Generated method - Getter of the
ProductQuantityRestriction.quantity attribute. |
Long |
getQuantity(SessionContext ctx)
Generated method - Getter of the
ProductQuantityRestriction.quantity attribute. |
long |
getQuantityAsPrimitive()
Generated method - Getter of the
ProductQuantityRestriction.quantity attribute. |
long |
getQuantityAsPrimitive(SessionContext ctx)
Generated method - Getter of the
ProductQuantityRestriction.quantity attribute. |
Unit |
getUnit()
Generated method - Getter of the
ProductQuantityRestriction.unit attribute. |
Unit |
getUnit(SessionContext ctx)
Generated method - Getter of the
ProductQuantityRestriction.unit attribute. |
void |
setQuantity(long value)
Generated method - Setter of the
ProductQuantityRestriction.quantity attribute. |
void |
setQuantity(Long value)
Generated method - Setter of the
ProductQuantityRestriction.quantity attribute. |
void |
setQuantity(SessionContext ctx,
long value)
Generated method - Setter of the
ProductQuantityRestriction.quantity attribute. |
void |
setQuantity(SessionContext ctx,
Long value)
Generated method - Setter of the
ProductQuantityRestriction.quantity attribute. |
void |
setUnit(SessionContext ctx,
Unit value)
Generated method - Setter of the
ProductQuantityRestriction.unit attribute. |
void |
setUnit(Unit value)
Generated method - Setter of the
ProductQuantityRestriction.unit attribute. |
getApplicableEntries, getMessageAttributeValues, getProductNames, getProducts, isFulfilledInternal, isFulfilledInternalgetProducts, setProducts, setProductsgetAllRestrictionType, getDescription, getRestrictionType, getViolationMessage, isFulfilled, isFulfilledcreateItem, getAllDescription, getAllDescription, getAllRestrictionType, getAllViolationMessage, getAllViolationMessage, getDescription, getRestrictionType, getViolationMessage, getVoucher, getVoucher, isPositive, isPositive, isPositiveAsPrimitive, isPositiveAsPrimitive, setAllDescription, setAllDescription, setAllViolationMessage, setAllViolationMessage, setDescription, setDescription, setPositive, setPositive, setPositive, setPositive, setViolationMessage, setViolationMessage, setVoucher, setVouchergetInitialProperties, 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 QUANTITY
ProductQuantityRestriction.quantity attributepublic static final String UNIT
ProductQuantityRestriction.unit attributeprotected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class GeneratedProductRestrictionpublic Long getQuantity(SessionContext ctx)
ProductQuantityRestriction.quantity attribute.public Long getQuantity()
ProductQuantityRestriction.quantity attribute.public long getQuantityAsPrimitive(SessionContext ctx)
ProductQuantityRestriction.quantity attribute.public long getQuantityAsPrimitive()
ProductQuantityRestriction.quantity attribute.public void setQuantity(SessionContext ctx, Long value)
ProductQuantityRestriction.quantity attribute.value - the quantity - the quantity of products the given voucher is valid for.public void setQuantity(Long value)
ProductQuantityRestriction.quantity attribute.value - the quantity - the quantity of products the given voucher is valid for.public void setQuantity(SessionContext ctx, long value)
ProductQuantityRestriction.quantity attribute.value - the quantity - the quantity of products the given voucher is valid for.public void setQuantity(long value)
ProductQuantityRestriction.quantity attribute.value - the quantity - the quantity of products the given voucher is valid for.public Unit getUnit(SessionContext ctx)
ProductQuantityRestriction.unit attribute.public Unit getUnit()
ProductQuantityRestriction.unit attribute.public void setUnit(SessionContext ctx, Unit value)
ProductQuantityRestriction.unit attribute.value - the unit - the unit for the quantity of products the given voucher is valid for.public void setUnit(Unit value)
ProductQuantityRestriction.unit attribute.value - the unit - the unit for the quantity of products the given voucher is valid for.Copyright © 2017 SAP SE. All Rights Reserved.