Class GeneratedPromotionResult

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
PromotionResult

public abstract class GeneratedPromotionResult extends GenericItem
Generated class for type PromotionResult.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedPromotionResult

      public GeneratedPromotionResult()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class Item
    • getActions

      public abstract Collection<AbstractPromotionAction> getActions(SessionContext ctx)
      Generated method - Getter of the PromotionResult.actions attribute.
      Returns:
      the actions - List of actions
    • getActions

      public Collection<AbstractPromotionAction> getActions()
      Generated method - Getter of the PromotionResult.actions attribute.
      Returns:
      the actions - List of actions
    • setActions

      public abstract void setActions(SessionContext ctx, Collection<AbstractPromotionAction> value)
      Generated method - Setter of the PromotionResult.actions attribute.
      Parameters:
      value - the actions - List of actions
    • setActions

      public void setActions(Collection<AbstractPromotionAction> value)
      Generated method - Setter of the PromotionResult.actions attribute.
      Parameters:
      value - the actions - List of actions
    • getAllPromotionActions

      public Set<AbstractPromotionAction> getAllPromotionActions(SessionContext ctx)
      Generated method - Getter of the PromotionResult.allPromotionActions attribute.
      Returns:
      the allPromotionActions
    • getAllPromotionActions

      public Set<AbstractPromotionAction> getAllPromotionActions()
      Generated method - Getter of the PromotionResult.allPromotionActions attribute.
      Returns:
      the allPromotionActions
    • setAllPromotionActions

      public void setAllPromotionActions(SessionContext ctx, Set<AbstractPromotionAction> value)
      Generated method - Setter of the PromotionResult.allPromotionActions attribute.
      Parameters:
      value - the allPromotionActions
    • setAllPromotionActions

      public void setAllPromotionActions(Set<AbstractPromotionAction> value)
      Generated method - Setter of the PromotionResult.allPromotionActions attribute.
      Parameters:
      value - the allPromotionActions
    • addToAllPromotionActions

      public void addToAllPromotionActions(SessionContext ctx, AbstractPromotionAction value)
      Generated method - Adds value to allPromotionActions.
      Parameters:
      value - the item to add to allPromotionActions
    • addToAllPromotionActions

      public void addToAllPromotionActions(AbstractPromotionAction value)
      Generated method - Adds value to allPromotionActions.
      Parameters:
      value - the item to add to allPromotionActions
    • removeFromAllPromotionActions

      public void removeFromAllPromotionActions(SessionContext ctx, AbstractPromotionAction value)
      Generated method - Removes value from allPromotionActions.
      Parameters:
      value - the item to remove from allPromotionActions
    • removeFromAllPromotionActions

      public void removeFromAllPromotionActions(AbstractPromotionAction value)
      Generated method - Removes value from allPromotionActions.
      Parameters:
      value - the item to remove from allPromotionActions
    • getCertainty

      public Float getCertainty(SessionContext ctx)
      Generated method - Getter of the PromotionResult.certainty attribute.
      Returns:
      the certainty - Certainty
    • getCertainty

      public Float getCertainty()
      Generated method - Getter of the PromotionResult.certainty attribute.
      Returns:
      the certainty - Certainty
    • getCertaintyAsPrimitive

      public float getCertaintyAsPrimitive(SessionContext ctx)
      Generated method - Getter of the PromotionResult.certainty attribute.
      Returns:
      the certainty - Certainty
    • getCertaintyAsPrimitive

      public float getCertaintyAsPrimitive()
      Generated method - Getter of the PromotionResult.certainty attribute.
      Returns:
      the certainty - Certainty
    • setCertainty

      public void setCertainty(SessionContext ctx, Float value)
      Generated method - Setter of the PromotionResult.certainty attribute.
      Parameters:
      value - the certainty - Certainty
    • setCertainty

      public void setCertainty(Float value)
      Generated method - Setter of the PromotionResult.certainty attribute.
      Parameters:
      value - the certainty - Certainty
    • setCertainty

      public void setCertainty(SessionContext ctx, float value)
      Generated method - Setter of the PromotionResult.certainty attribute.
      Parameters:
      value - the certainty - Certainty
    • setCertainty

      public void setCertainty(float value)
      Generated method - Setter of the PromotionResult.certainty attribute.
      Parameters:
      value - the certainty - Certainty
    • getConsumedEntries

      public abstract Collection<PromotionOrderEntryConsumed> getConsumedEntries(SessionContext ctx)
      Generated method - Getter of the PromotionResult.consumedEntries attribute.
      Returns:
      the consumedEntries - List of consumed entries
    • getConsumedEntries

      public Collection<PromotionOrderEntryConsumed> getConsumedEntries()
      Generated method - Getter of the PromotionResult.consumedEntries attribute.
      Returns:
      the consumedEntries - List of consumed entries
    • setConsumedEntries

      public abstract void setConsumedEntries(SessionContext ctx, Collection<PromotionOrderEntryConsumed> value)
      Generated method - Setter of the PromotionResult.consumedEntries attribute.
      Parameters:
      value - the consumedEntries - List of consumed entries
    • setConsumedEntries

      public void setConsumedEntries(Collection<PromotionOrderEntryConsumed> value)
      Generated method - Setter of the PromotionResult.consumedEntries attribute.
      Parameters:
      value - the consumedEntries - List of consumed entries
    • createItem

      protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
      Description copied from class: Item
      Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.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; }
      
       
      Overrides:
      createItem in class GenericItem
      Parameters:
      ctx - the current session context which this item is created within
      type - 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 )
      Returns:
      the new item instance
      Throws:
      JaloBusinessException - indicates an error during creation - any changes will be rollbacked
    • getCustom

      public String getCustom(SessionContext ctx)
      Generated method - Getter of the PromotionResult.custom attribute.
      Returns:
      the custom - Custom data stored on this promotion result by the promotion.
    • getCustom

      public String getCustom()
      Generated method - Getter of the PromotionResult.custom attribute.
      Returns:
      the custom - Custom data stored on this promotion result by the promotion.
    • setCustom

      public void setCustom(SessionContext ctx, String value)
      Generated method - Setter of the PromotionResult.custom attribute.
      Parameters:
      value - the custom - Custom data stored on this promotion result by the promotion.
    • setCustom

      public void setCustom(String value)
      Generated method - Setter of the PromotionResult.custom attribute.
      Parameters:
      value - the custom - Custom data stored on this promotion result by the promotion.
    • getOrder

      public AbstractOrder getOrder(SessionContext ctx)
      Generated method - Getter of the PromotionResult.order attribute.
      Returns:
      the order
    • getOrder

      public AbstractOrder getOrder()
      Generated method - Getter of the PromotionResult.order attribute.
      Returns:
      the order
    • setOrder

      public void setOrder(SessionContext ctx, AbstractOrder value)
      Generated method - Setter of the PromotionResult.order attribute.
      Parameters:
      value - the order
    • setOrder

      public void setOrder(AbstractOrder value)
      Generated method - Setter of the PromotionResult.order attribute.
      Parameters:
      value - the order
    • getPromotion

      public AbstractPromotion getPromotion(SessionContext ctx)
      Generated method - Getter of the PromotionResult.promotion attribute.
      Returns:
      the promotion - The promotion
    • getPromotion

      public AbstractPromotion getPromotion()
      Generated method - Getter of the PromotionResult.promotion attribute.
      Returns:
      the promotion - The promotion
    • setPromotion

      public void setPromotion(SessionContext ctx, AbstractPromotion value)
      Generated method - Setter of the PromotionResult.promotion attribute.
      Parameters:
      value - the promotion - The promotion
    • setPromotion

      public void setPromotion(AbstractPromotion value)
      Generated method - Setter of the PromotionResult.promotion attribute.
      Parameters:
      value - the promotion - The promotion