Class GeneratedProductFeature

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

public abstract class GeneratedProductFeature extends GenericItem
Generated class for type ProductFeature.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedProductFeature

      public GeneratedProductFeature()
  • Method Details

    • getDefaultAttributeModes

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

      public ClassAttributeAssignment getClassificationAttributeAssignment(SessionContext ctx)
      Generated method - Getter of the ProductFeature.classificationAttributeAssignment attribute.
      Returns:
      the classificationAttributeAssignment - Classification attribute assignment which this value belongs to
    • getClassificationAttributeAssignment

      public ClassAttributeAssignment getClassificationAttributeAssignment()
      Generated method - Getter of the ProductFeature.classificationAttributeAssignment attribute.
      Returns:
      the classificationAttributeAssignment - Classification attribute assignment which this value belongs to
    • setClassificationAttributeAssignment

      protected void setClassificationAttributeAssignment(SessionContext ctx, ClassAttributeAssignment value)
      Generated method - Setter of the ProductFeature.classificationAttributeAssignment attribute.
      Parameters:
      value - the classificationAttributeAssignment - Classification attribute assignment which this value belongs to
    • setClassificationAttributeAssignment

      protected void setClassificationAttributeAssignment(ClassAttributeAssignment value)
      Generated method - Setter of the ProductFeature.classificationAttributeAssignment attribute.
      Parameters:
      value - the classificationAttributeAssignment - Classification attribute assignment which this value belongs to
    • 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 ProductFeature.description attribute.
      Returns:
      the description - description text
    • getDescription

      public String getDescription()
      Generated method - Getter of the ProductFeature.description attribute.
      Returns:
      the description - description text
    • setDescription

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

      public void setDescription(String value)
      Generated method - Setter of the ProductFeature.description attribute.
      Parameters:
      value - the description - description text
    • getFeaturePosition

      public Integer getFeaturePosition(SessionContext ctx)
      Generated method - Getter of the ProductFeature.featurePosition attribute.
      Returns:
      the featurePosition - position of the feature which this value belongs to
    • getFeaturePosition

      public Integer getFeaturePosition()
      Generated method - Getter of the ProductFeature.featurePosition attribute.
      Returns:
      the featurePosition - position of the feature which this value belongs to
    • getFeaturePositionAsPrimitive

      public int getFeaturePositionAsPrimitive(SessionContext ctx)
      Generated method - Getter of the ProductFeature.featurePosition attribute.
      Returns:
      the featurePosition - position of the feature which this value belongs to
    • getFeaturePositionAsPrimitive

      public int getFeaturePositionAsPrimitive()
      Generated method - Getter of the ProductFeature.featurePosition attribute.
      Returns:
      the featurePosition - position of the feature which this value belongs to
    • setFeaturePosition

      public void setFeaturePosition(SessionContext ctx, Integer value)
      Generated method - Setter of the ProductFeature.featurePosition attribute.
      Parameters:
      value - the featurePosition - position of the feature which this value belongs to
    • setFeaturePosition

      public void setFeaturePosition(Integer value)
      Generated method - Setter of the ProductFeature.featurePosition attribute.
      Parameters:
      value - the featurePosition - position of the feature which this value belongs to
    • setFeaturePosition

      public void setFeaturePosition(SessionContext ctx, int value)
      Generated method - Setter of the ProductFeature.featurePosition attribute.
      Parameters:
      value - the featurePosition - position of the feature which this value belongs to
    • setFeaturePosition

      public void setFeaturePosition(int value)
      Generated method - Setter of the ProductFeature.featurePosition attribute.
      Parameters:
      value - the featurePosition - position of the feature which this value belongs to
    • getLanguage

      public Language getLanguage(SessionContext ctx)
      Generated method - Getter of the ProductFeature.language attribute.
      Returns:
      the language
    • getLanguage

      public Language getLanguage()
      Generated method - Getter of the ProductFeature.language attribute.
      Returns:
      the language
    • setLanguage

      protected void setLanguage(SessionContext ctx, Language value)
      Generated method - Setter of the ProductFeature.language attribute.
      Parameters:
      value - the language
    • setLanguage

      protected void setLanguage(Language value)
      Generated method - Setter of the ProductFeature.language attribute.
      Parameters:
      value - the language
    • getProduct

      public Product getProduct(SessionContext ctx)
      Generated method - Getter of the ProductFeature.product attribute.
      Returns:
      the product
    • getProduct

      public Product getProduct()
      Generated method - Getter of the ProductFeature.product attribute.
      Returns:
      the product
    • setProduct

      protected void setProduct(SessionContext ctx, Product value)
      Generated method - Setter of the ProductFeature.product attribute.
      Parameters:
      value - the product
    • setProduct

      protected void setProduct(Product value)
      Generated method - Setter of the ProductFeature.product attribute.
      Parameters:
      value - the product
    • getQualifier

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

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

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

      protected void setQualifier(String value)
      Generated method - Setter of the ProductFeature.qualifier attribute.
      Parameters:
      value - the qualifier - Qualifier
    • getUnit

      Generated method - Getter of the ProductFeature.unit attribute.
      Returns:
      the unit - Classification attribute unit
    • getUnit

      public ClassificationAttributeUnit getUnit()
      Generated method - Getter of the ProductFeature.unit attribute.
      Returns:
      the unit - Classification attribute unit
    • setUnit

      public void setUnit(SessionContext ctx, ClassificationAttributeUnit value)
      Generated method - Setter of the ProductFeature.unit attribute.
      Parameters:
      value - the unit - Classification attribute unit
    • setUnit

      public void setUnit(ClassificationAttributeUnit value)
      Generated method - Setter of the ProductFeature.unit attribute.
      Parameters:
      value - the unit - Classification attribute unit
    • getValueDetails

      public String getValueDetails(SessionContext ctx)
      Generated method - Getter of the ProductFeature.valueDetails attribute.
      Returns:
      the valueDetails - value details text
    • getValueDetails

      public String getValueDetails()
      Generated method - Getter of the ProductFeature.valueDetails attribute.
      Returns:
      the valueDetails - value details text
    • setValueDetails

      public void setValueDetails(SessionContext ctx, String value)
      Generated method - Setter of the ProductFeature.valueDetails attribute.
      Parameters:
      value - the valueDetails - value details text
    • setValueDetails

      public void setValueDetails(String value)
      Generated method - Setter of the ProductFeature.valueDetails attribute.
      Parameters:
      value - the valueDetails - value details text
    • getValuePosition

      public Integer getValuePosition(SessionContext ctx)
      Generated method - Getter of the ProductFeature.valuePosition attribute.
      Returns:
      the valuePosition - position mark for multi value features
    • getValuePosition

      public Integer getValuePosition()
      Generated method - Getter of the ProductFeature.valuePosition attribute.
      Returns:
      the valuePosition - position mark for multi value features
    • getValuePositionAsPrimitive

      public int getValuePositionAsPrimitive(SessionContext ctx)
      Generated method - Getter of the ProductFeature.valuePosition attribute.
      Returns:
      the valuePosition - position mark for multi value features
    • getValuePositionAsPrimitive

      public int getValuePositionAsPrimitive()
      Generated method - Getter of the ProductFeature.valuePosition attribute.
      Returns:
      the valuePosition - position mark for multi value features
    • setValuePosition

      public void setValuePosition(SessionContext ctx, Integer value)
      Generated method - Setter of the ProductFeature.valuePosition attribute.
      Parameters:
      value - the valuePosition - position mark for multi value features
    • setValuePosition

      public void setValuePosition(Integer value)
      Generated method - Setter of the ProductFeature.valuePosition attribute.
      Parameters:
      value - the valuePosition - position mark for multi value features
    • setValuePosition

      public void setValuePosition(SessionContext ctx, int value)
      Generated method - Setter of the ProductFeature.valuePosition attribute.
      Parameters:
      value - the valuePosition - position mark for multi value features
    • setValuePosition

      public void setValuePosition(int value)
      Generated method - Setter of the ProductFeature.valuePosition attribute.
      Parameters:
      value - the valuePosition - position mark for multi value features