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 java.lang.String |
ACTIONS
Qualifier of the
PromotionResult.actions attribute |
static java.lang.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 java.lang.String |
CERTAINTY
Qualifier of the
PromotionResult.certainty attribute |
static java.lang.String |
CONSUMEDENTRIES
Qualifier of the
PromotionResult.consumedEntries attribute |
static java.lang.String |
CUSTOM
Qualifier of the
PromotionResult.custom attribute |
protected static java.util.Map<java.lang.String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static java.lang.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 java.lang.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.
|
java.util.Collection<AbstractPromotionAction> |
getActions()
Generated method - Getter of the
PromotionResult.actions attribute. |
abstract java.util.Collection<AbstractPromotionAction> |
getActions(SessionContext ctx)
Generated method - Getter of the
PromotionResult.actions attribute. |
java.util.Set<AbstractPromotionAction> |
getAllPromotionActions()
Generated method - Getter of the
PromotionResult.allPromotionActions attribute. |
java.util.Set<AbstractPromotionAction> |
getAllPromotionActions(SessionContext ctx)
Generated method - Getter of the
PromotionResult.allPromotionActions attribute. |
java.lang.Float |
getCertainty()
Generated method - Getter of the
PromotionResult.certainty attribute. |
java.lang.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. |
java.util.Collection<PromotionOrderEntryConsumed> |
getConsumedEntries()
Generated method - Getter of the
PromotionResult.consumedEntries attribute. |
abstract java.util.Collection<PromotionOrderEntryConsumed> |
getConsumedEntries(SessionContext ctx)
Generated method - Getter of the
PromotionResult.consumedEntries attribute. |
java.lang.String |
getCustom()
Generated method - Getter of the
PromotionResult.custom attribute. |
java.lang.String |
getCustom(SessionContext ctx)
Generated method - Getter of the
PromotionResult.custom attribute. |
protected java.util.Map<java.lang.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(java.util.Collection<AbstractPromotionAction> value)
Generated method - Setter of the
PromotionResult.actions attribute. |
abstract void |
setActions(SessionContext ctx,
java.util.Collection<AbstractPromotionAction> value)
Generated method - Setter of the
PromotionResult.actions attribute. |
void |
setAllPromotionActions(SessionContext ctx,
java.util.Set<AbstractPromotionAction> value)
Generated method - Setter of the
PromotionResult.allPromotionActions attribute. |
void |
setAllPromotionActions(java.util.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(java.lang.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,
java.lang.Float value)
Generated method - Setter of the
PromotionResult.certainty attribute. |
void |
setConsumedEntries(java.util.Collection<PromotionOrderEntryConsumed> value)
Generated method - Setter of the
PromotionResult.consumedEntries attribute. |
abstract void |
setConsumedEntries(SessionContext ctx,
java.util.Collection<PromotionOrderEntryConsumed> value)
Generated method - Setter of the
PromotionResult.consumedEntries attribute. |
void |
setCustom(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
PromotionResult.custom attribute. |
void |
setCustom(java.lang.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, getImplementation, 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, isMarkModifiedDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, notifyManagerAboutItemRemoval, readResolve, 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, writeReplacesetTenantpublic static final java.lang.String ACTIONS
PromotionResult.actions attributepublic static final java.lang.String CONSUMEDENTRIES
PromotionResult.consumedEntries attributepublic static final java.lang.String PROMOTION
PromotionResult.promotion attributepublic static final java.lang.String CERTAINTY
PromotionResult.certainty attributepublic static final java.lang.String CUSTOM
PromotionResult.custom attributepublic static final java.lang.String ORDER
PromotionResult.order attributepublic static final java.lang.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 java.util.Map<java.lang.String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected java.util.Map<java.lang.String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class Itempublic abstract java.util.Collection<AbstractPromotionAction> getActions(SessionContext ctx)
PromotionResult.actions attribute.public java.util.Collection<AbstractPromotionAction> getActions()
PromotionResult.actions attribute.public abstract void setActions(SessionContext ctx, java.util.Collection<AbstractPromotionAction> value)
PromotionResult.actions attribute.value - the actions - List of actionspublic void setActions(java.util.Collection<AbstractPromotionAction> value)
PromotionResult.actions attribute.value - the actions - List of actionspublic java.util.Set<AbstractPromotionAction> getAllPromotionActions(SessionContext ctx)
PromotionResult.allPromotionActions attribute.public java.util.Set<AbstractPromotionAction> getAllPromotionActions()
PromotionResult.allPromotionActions attribute.public void setAllPromotionActions(SessionContext ctx, java.util.Set<AbstractPromotionAction> value)
PromotionResult.allPromotionActions attribute.value - the allPromotionActionspublic void setAllPromotionActions(java.util.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 java.lang.Float getCertainty(SessionContext ctx)
PromotionResult.certainty attribute.public java.lang.Float getCertainty()
PromotionResult.certainty attribute.public float getCertaintyAsPrimitive(SessionContext ctx)
PromotionResult.certainty attribute.public float getCertaintyAsPrimitive()
PromotionResult.certainty attribute.public void setCertainty(SessionContext ctx, java.lang.Float value)
PromotionResult.certainty attribute.value - the certainty - Certaintypublic void setCertainty(java.lang.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 java.util.Collection<PromotionOrderEntryConsumed> getConsumedEntries(SessionContext ctx)
PromotionResult.consumedEntries attribute.public java.util.Collection<PromotionOrderEntryConsumed> getConsumedEntries()
PromotionResult.consumedEntries attribute.public abstract void setConsumedEntries(SessionContext ctx, java.util.Collection<PromotionOrderEntryConsumed> value)
PromotionResult.consumedEntries attribute.value - the consumedEntries - List of consumed entriespublic void setConsumedEntries(java.util.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 java.lang.String getCustom(SessionContext ctx)
PromotionResult.custom attribute.public java.lang.String getCustom()
PromotionResult.custom attribute.public void setCustom(SessionContext ctx, java.lang.String value)
PromotionResult.custom attribute.value - the custom - Custom data stored on this promotion result by the promotion.public void setCustom(java.lang.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 © 2018 SAP SE. All Rights Reserved.