Class GeneratedProductReference

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

public abstract class GeneratedProductReference extends GenericItem
Generated class for type ProductReference.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedProductReference

      public GeneratedProductReference()
  • Method Details

    • getDefaultAttributeModes

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

      public Boolean isActive(SessionContext ctx)
      Generated method - Getter of the ProductReference.active attribute.
      Returns:
      the active
    • isActive

      public Boolean isActive()
      Generated method - Getter of the ProductReference.active attribute.
      Returns:
      the active
    • isActiveAsPrimitive

      public boolean isActiveAsPrimitive(SessionContext ctx)
      Generated method - Getter of the ProductReference.active attribute.
      Returns:
      the active
    • isActiveAsPrimitive

      public boolean isActiveAsPrimitive()
      Generated method - Getter of the ProductReference.active attribute.
      Returns:
      the active
    • setActive

      public void setActive(SessionContext ctx, Boolean value)
      Generated method - Setter of the ProductReference.active attribute.
      Parameters:
      value - the active
    • setActive

      public void setActive(Boolean value)
      Generated method - Setter of the ProductReference.active attribute.
      Parameters:
      value - the active
    • setActive

      public void setActive(SessionContext ctx, boolean value)
      Generated method - Setter of the ProductReference.active attribute.
      Parameters:
      value - the active
    • setActive

      public void setActive(boolean value)
      Generated method - Setter of the ProductReference.active attribute.
      Parameters:
      value - the active
    • 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
    • getDescription

      public String getDescription(SessionContext ctx)
      Generated method - Getter of the ProductReference.description attribute.
      Returns:
      the description
    • getDescription

      public String getDescription()
      Generated method - Getter of the ProductReference.description attribute.
      Returns:
      the description
    • getAllDescription

      public Map<Language,String> getAllDescription(SessionContext ctx)
      Generated method - Getter of the ProductReference.description attribute.
      Returns:
      the localized description
    • getAllDescription

      public Map<Language,String> getAllDescription()
      Generated method - Getter of the ProductReference.description attribute.
      Returns:
      the localized description
    • setDescription

      public void setDescription(SessionContext ctx, String value)
      Generated method - Setter of the ProductReference.description attribute.
      Parameters:
      value - the description
    • setDescription

      public void setDescription(String value)
      Generated method - Setter of the ProductReference.description attribute.
      Parameters:
      value - the description
    • setAllDescription

      public void setAllDescription(SessionContext ctx, Map<Language,String> value)
      Generated method - Setter of the ProductReference.description attribute.
      Parameters:
      value - the description
    • setAllDescription

      public void setAllDescription(Map<Language,String> value)
      Generated method - Setter of the ProductReference.description attribute.
      Parameters:
      value - the description
    • getIcon

      public Media getIcon(SessionContext ctx)
      Generated method - Getter of the ProductReference.icon attribute.
      Returns:
      the icon
    • getIcon

      public Media getIcon()
      Generated method - Getter of the ProductReference.icon attribute.
      Returns:
      the icon
    • setIcon

      public void setIcon(SessionContext ctx, Media value)
      Generated method - Setter of the ProductReference.icon attribute.
      Parameters:
      value - the icon
    • setIcon

      public void setIcon(Media value)
      Generated method - Setter of the ProductReference.icon attribute.
      Parameters:
      value - the icon
    • isPreselected

      public Boolean isPreselected(SessionContext ctx)
      Generated method - Getter of the ProductReference.preselected attribute.
      Returns:
      the preselected
    • isPreselected

      public Boolean isPreselected()
      Generated method - Getter of the ProductReference.preselected attribute.
      Returns:
      the preselected
    • isPreselectedAsPrimitive

      public boolean isPreselectedAsPrimitive(SessionContext ctx)
      Generated method - Getter of the ProductReference.preselected attribute.
      Returns:
      the preselected
    • isPreselectedAsPrimitive

      public boolean isPreselectedAsPrimitive()
      Generated method - Getter of the ProductReference.preselected attribute.
      Returns:
      the preselected
    • setPreselected

      public void setPreselected(SessionContext ctx, Boolean value)
      Generated method - Setter of the ProductReference.preselected attribute.
      Parameters:
      value - the preselected
    • setPreselected

      public void setPreselected(Boolean value)
      Generated method - Setter of the ProductReference.preselected attribute.
      Parameters:
      value - the preselected
    • setPreselected

      public void setPreselected(SessionContext ctx, boolean value)
      Generated method - Setter of the ProductReference.preselected attribute.
      Parameters:
      value - the preselected
    • setPreselected

      public void setPreselected(boolean value)
      Generated method - Setter of the ProductReference.preselected attribute.
      Parameters:
      value - the preselected
    • getQualifier

      public String getQualifier(SessionContext ctx)
      Generated method - Getter of the ProductReference.qualifier attribute.
      Returns:
      the qualifier - Qualifier
    • getQualifier

      public String getQualifier()
      Generated method - Getter of the ProductReference.qualifier attribute.
      Returns:
      the qualifier - Qualifier
    • setQualifier

      public void setQualifier(SessionContext ctx, String value)
      Generated method - Setter of the ProductReference.qualifier attribute.
      Parameters:
      value - the qualifier - Qualifier
    • setQualifier

      public void setQualifier(String value)
      Generated method - Setter of the ProductReference.qualifier attribute.
      Parameters:
      value - the qualifier - Qualifier
    • getQuantity

      public Integer getQuantity(SessionContext ctx)
      Generated method - Getter of the ProductReference.quantity attribute.
      Returns:
      the quantity - Quantity
    • getQuantity

      public Integer getQuantity()
      Generated method - Getter of the ProductReference.quantity attribute.
      Returns:
      the quantity - Quantity
    • getQuantityAsPrimitive

      public int getQuantityAsPrimitive(SessionContext ctx)
      Generated method - Getter of the ProductReference.quantity attribute.
      Returns:
      the quantity - Quantity
    • getQuantityAsPrimitive

      public int getQuantityAsPrimitive()
      Generated method - Getter of the ProductReference.quantity attribute.
      Returns:
      the quantity - Quantity
    • setQuantity

      public void setQuantity(SessionContext ctx, Integer value)
      Generated method - Setter of the ProductReference.quantity attribute.
      Parameters:
      value - the quantity - Quantity
    • setQuantity

      public void setQuantity(Integer value)
      Generated method - Setter of the ProductReference.quantity attribute.
      Parameters:
      value - the quantity - Quantity
    • setQuantity

      public void setQuantity(SessionContext ctx, int value)
      Generated method - Setter of the ProductReference.quantity attribute.
      Parameters:
      value - the quantity - Quantity
    • setQuantity

      public void setQuantity(int value)
      Generated method - Setter of the ProductReference.quantity attribute.
      Parameters:
      value - the quantity - Quantity
    • getReferenceType

      public EnumerationValue getReferenceType(SessionContext ctx)
      Generated method - Getter of the ProductReference.referenceType attribute.
      Returns:
      the referenceType
    • getReferenceType

      public EnumerationValue getReferenceType()
      Generated method - Getter of the ProductReference.referenceType attribute.
      Returns:
      the referenceType
    • setReferenceType

      public void setReferenceType(SessionContext ctx, EnumerationValue value)
      Generated method - Setter of the ProductReference.referenceType attribute.
      Parameters:
      value - the referenceType
    • setReferenceType

      public void setReferenceType(EnumerationValue value)
      Generated method - Setter of the ProductReference.referenceType attribute.
      Parameters:
      value - the referenceType
    • getSource

      public Product getSource(SessionContext ctx)
      Generated method - Getter of the ProductReference.source attribute.
      Returns:
      the source
    • getSource

      public Product getSource()
      Generated method - Getter of the ProductReference.source attribute.
      Returns:
      the source
    • setSource

      protected void setSource(SessionContext ctx, Product value)
      Generated method - Setter of the ProductReference.source attribute.
      Parameters:
      value - the source
    • setSource

      protected void setSource(Product value)
      Generated method - Setter of the ProductReference.source attribute.
      Parameters:
      value - the source
    • getTarget

      public Product getTarget(SessionContext ctx)
      Generated method - Getter of the ProductReference.target attribute.
      Returns:
      the target - Target
    • getTarget

      public Product getTarget()
      Generated method - Getter of the ProductReference.target attribute.
      Returns:
      the target - Target
    • setTarget

      public void setTarget(SessionContext ctx, Product value)
      Generated method - Setter of the ProductReference.target attribute.
      Parameters:
      value - the target - Target
    • setTarget

      public void setTarget(Product value)
      Generated method - Setter of the ProductReference.target attribute.
      Parameters:
      value - the target - Target