public abstract class GeneratedPromotionResult extends GenericItem
PromotionResult.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 |
|---|---|
static String |
ACTIONS
Qualifier of the
PromotionResult.actions attribute |
static String |
ALLPROMOTIONACTIONS
Qualifier of the
PromotionResult.allPromotionActions attribute |
protected static OneToManyHandler<AbstractPromotionAction> |
ALLPROMOTIONACTIONSHANDLER
OneToManyHandler for handling 1:n ALLPROMOTIONACTIONS's relation attributes from 'many' side. |
static String |
CERTAINTY
Qualifier of the
PromotionResult.certainty attribute |
static String |
CONSUMEDENTRIES
Qualifier of the
PromotionResult.consumedEntries attribute |
static String |
CUSTOM
Qualifier of the
PromotionResult.custom attribute |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
ORDER
Qualifier of the
PromotionResult.order attribute |
protected static BidirectionalOneToManyHandler<GeneratedPromotionResult> |
ORDERHANDLER
BidirectionalOneToManyHandler for handling 1:n ORDER's relation attributes from 'one' side. |
static String |
PROMOTION
Qualifier of the
PromotionResult.promotion attribute |
LANGUAGE_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 |
|---|
GeneratedPromotionResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToAllPromotionActions(AbstractPromotionAction value)
Generated method - Adds
value to allPromotionActions. |
void |
addToAllPromotionActions(SessionContext ctx,
AbstractPromotionAction value)
Generated method - Adds
value to allPromotionActions. |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
Collection<AbstractPromotionAction> |
getActions()
Generated method - Getter of the
PromotionResult.actions attribute. |
abstract Collection<AbstractPromotionAction> |
getActions(SessionContext ctx)
Generated method - Getter of the
PromotionResult.actions attribute. |
Set<AbstractPromotionAction> |
getAllPromotionActions()
Generated method - Getter of the
PromotionResult.allPromotionActions attribute. |
Set<AbstractPromotionAction> |
getAllPromotionActions(SessionContext ctx)
Generated method - Getter of the
PromotionResult.allPromotionActions attribute. |
Float |
getCertainty()
Generated method - Getter of the
PromotionResult.certainty attribute. |
Float |
getCertainty(SessionContext ctx)
Generated method - Getter of the
PromotionResult.certainty attribute. |
float |
getCertaintyAsPrimitive()
Generated method - Getter of the
PromotionResult.certainty attribute. |
float |
getCertaintyAsPrimitive(SessionContext ctx)
Generated method - Getter of the
PromotionResult.certainty attribute. |
Collection<PromotionOrderEntryConsumed> |
getConsumedEntries()
Generated method - Getter of the
PromotionResult.consumedEntries attribute. |
abstract Collection<PromotionOrderEntryConsumed> |
getConsumedEntries(SessionContext ctx)
Generated method - Getter of the
PromotionResult.consumedEntries attribute. |
String |
getCustom()
Generated method - Getter of the
PromotionResult.custom attribute. |
String |
getCustom(SessionContext ctx)
Generated method - Getter of the
PromotionResult.custom attribute. |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
AbstractOrder |
getOrder()
Generated method - Getter of the
PromotionResult.order attribute. |
AbstractOrder |
getOrder(SessionContext ctx)
Generated method - Getter of the
PromotionResult.order attribute. |
AbstractPromotion |
getPromotion()
Generated method - Getter of the
PromotionResult.promotion attribute. |
AbstractPromotion |
getPromotion(SessionContext ctx)
Generated method - Getter of the
PromotionResult.promotion attribute. |
void |
removeFromAllPromotionActions(AbstractPromotionAction value)
Generated method - Removes
value from allPromotionActions. |
void |
removeFromAllPromotionActions(SessionContext ctx,
AbstractPromotionAction value)
Generated method - Removes
value from allPromotionActions. |
void |
setActions(Collection<AbstractPromotionAction> value)
Generated method - Setter of the
PromotionResult.actions attribute. |
abstract void |
setActions(SessionContext ctx,
Collection<AbstractPromotionAction> value)
Generated method - Setter of the
PromotionResult.actions attribute. |
void |
setAllPromotionActions(SessionContext ctx,
Set<AbstractPromotionAction> value)
Generated method - Setter of the
PromotionResult.allPromotionActions attribute. |
void |
setAllPromotionActions(Set<AbstractPromotionAction> value)
Generated method - Setter of the
PromotionResult.allPromotionActions attribute. |
void |
setCertainty(float value)
Generated method - Setter of the
PromotionResult.certainty attribute. |
void |
setCertainty(Float value)
Generated method - Setter of the
PromotionResult.certainty attribute. |
void |
setCertainty(SessionContext ctx,
float value)
Generated method - Setter of the
PromotionResult.certainty attribute. |
void |
setCertainty(SessionContext ctx,
Float value)
Generated method - Setter of the
PromotionResult.certainty attribute. |
void |
setConsumedEntries(Collection<PromotionOrderEntryConsumed> value)
Generated method - Setter of the
PromotionResult.consumedEntries attribute. |
abstract void |
setConsumedEntries(SessionContext ctx,
Collection<PromotionOrderEntryConsumed> value)
Generated method - Setter of the
PromotionResult.consumedEntries attribute. |
void |
setCustom(SessionContext ctx,
String value)
Generated method - Setter of the
PromotionResult.custom attribute. |
void |
setCustom(String value)
Generated method - Setter of the
PromotionResult.custom attribute. |
void |
setOrder(AbstractOrder value)
Generated method - Setter of the
PromotionResult.order attribute. |
void |
setOrder(SessionContext ctx,
AbstractOrder value)
Generated method - Setter of the
PromotionResult.order attribute. |
void |
setPromotion(AbstractPromotion value)
Generated method - Setter of the
PromotionResult.promotion attribute. |
void |
setPromotion(SessionContext ctx,
AbstractPromotion value)
Generated method - Setter of the
PromotionResult.promotion attribute. |
getInitialProperties, 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 ACTIONS
PromotionResult.actions attributepublic static final String CONSUMEDENTRIES
PromotionResult.consumedEntries attributepublic static final String PROMOTION
PromotionResult.promotion attributepublic static final String CERTAINTY
PromotionResult.certainty attributepublic static final String CUSTOM
PromotionResult.custom attributepublic static final String ORDER
PromotionResult.order attributepublic static final String ALLPROMOTIONACTIONS
PromotionResult.allPromotionActions attributeprotected static final BidirectionalOneToManyHandler<GeneratedPromotionResult> ORDERHANDLER
BidirectionalOneToManyHandler for handling 1:n ORDER's relation attributes from 'one' side.protected static final OneToManyHandler<AbstractPromotionAction> ALLPROMOTIONACTIONSHANDLER
OneToManyHandler for handling 1:n ALLPROMOTIONACTIONS'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 Itempublic abstract Collection<AbstractPromotionAction> getActions(SessionContext ctx)
PromotionResult.actions attribute.public Collection<AbstractPromotionAction> getActions()
PromotionResult.actions attribute.public abstract void setActions(SessionContext ctx, Collection<AbstractPromotionAction> value)
PromotionResult.actions attribute.value - the actions - List of actionspublic void setActions(Collection<AbstractPromotionAction> value)
PromotionResult.actions attribute.value - the actions - List of actionspublic Set<AbstractPromotionAction> getAllPromotionActions(SessionContext ctx)
PromotionResult.allPromotionActions attribute.public Set<AbstractPromotionAction> getAllPromotionActions()
PromotionResult.allPromotionActions attribute.public void setAllPromotionActions(SessionContext ctx, Set<AbstractPromotionAction> value)
PromotionResult.allPromotionActions attribute.value - the allPromotionActionspublic void setAllPromotionActions(Set<AbstractPromotionAction> value)
PromotionResult.allPromotionActions attribute.value - the allPromotionActionspublic void addToAllPromotionActions(SessionContext ctx, AbstractPromotionAction value)
value to allPromotionActions.value - the item to add to allPromotionActionspublic void addToAllPromotionActions(AbstractPromotionAction value)
value to allPromotionActions.value - the item to add to allPromotionActionspublic void removeFromAllPromotionActions(SessionContext ctx, AbstractPromotionAction value)
value from allPromotionActions.value - the item to remove from allPromotionActionspublic void removeFromAllPromotionActions(AbstractPromotionAction value)
value from allPromotionActions.value - the item to remove from allPromotionActionspublic Float getCertainty(SessionContext ctx)
PromotionResult.certainty attribute.public Float getCertainty()
PromotionResult.certainty attribute.public float getCertaintyAsPrimitive(SessionContext ctx)
PromotionResult.certainty attribute.public float getCertaintyAsPrimitive()
PromotionResult.certainty attribute.public void setCertainty(SessionContext ctx, Float value)
PromotionResult.certainty attribute.value - the certainty - Certaintypublic void setCertainty(Float value)
PromotionResult.certainty attribute.value - the certainty - Certaintypublic void setCertainty(SessionContext ctx, float value)
PromotionResult.certainty attribute.value - the certainty - Certaintypublic void setCertainty(float value)
PromotionResult.certainty attribute.value - the certainty - Certaintypublic abstract Collection<PromotionOrderEntryConsumed> getConsumedEntries(SessionContext ctx)
PromotionResult.consumedEntries attribute.public Collection<PromotionOrderEntryConsumed> getConsumedEntries()
PromotionResult.consumedEntries attribute.public abstract void setConsumedEntries(SessionContext ctx, Collection<PromotionOrderEntryConsumed> value)
PromotionResult.consumedEntries attribute.value - the consumedEntries - List of consumed entriespublic void setConsumedEntries(Collection<PromotionOrderEntryConsumed> value)
PromotionResult.consumedEntries attribute.value - the consumedEntries - List of consumed entriesprotected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
ItemComposedType.newInstance(Map).
In case this method uses any of the attribute values during creation it is required to override
Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
Sn example:
public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
// here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
super.getNonInitialAttributes( ctx, allAttributes );
// remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
createItem in class GenericItemctx - the current session context which this item is created withintype - the actual item type ( since subtypes may not provide a own jalo class this may be different from the
type which this method was implemented for )JaloBusinessException - indicates an error during creation - any changes will be rollbackedpublic String getCustom(SessionContext ctx)
PromotionResult.custom attribute.public String getCustom()
PromotionResult.custom attribute.public void setCustom(SessionContext ctx, String value)
PromotionResult.custom attribute.value - the custom - Custom data stored on this promotion result by the promotion.public void setCustom(String value)
PromotionResult.custom attribute.value - the custom - Custom data stored on this promotion result by the promotion.public AbstractOrder getOrder(SessionContext ctx)
PromotionResult.order attribute.public AbstractOrder getOrder()
PromotionResult.order attribute.public void setOrder(SessionContext ctx, AbstractOrder value)
PromotionResult.order attribute.value - the orderpublic void setOrder(AbstractOrder value)
PromotionResult.order attribute.value - the orderpublic AbstractPromotion getPromotion(SessionContext ctx)
PromotionResult.promotion attribute.public AbstractPromotion getPromotion()
PromotionResult.promotion attribute.public void setPromotion(SessionContext ctx, AbstractPromotion value)
PromotionResult.promotion attribute.value - the promotion - The promotionpublic void setPromotion(AbstractPromotion value)
PromotionResult.promotion attribute.value - the promotion - The promotionCopyright © 2017 SAP SE. All Rights Reserved.