Class GeneratedProductFeature

    • Field Detail

      • QUALIFIER

        public static final java.lang.String QUALIFIER
        Qualifier of the ProductFeature.qualifier attribute
        See Also:
        Constant Field Values
      • CLASSIFICATIONATTRIBUTEASSIGNMENT

        public static final java.lang.String CLASSIFICATIONATTRIBUTEASSIGNMENT
        Qualifier of the ProductFeature.classificationAttributeAssignment attribute
        See Also:
        Constant Field Values
      • LANGUAGE

        public static final java.lang.String LANGUAGE
        Qualifier of the ProductFeature.language attribute
        See Also:
        Constant Field Values
      • VALUEPOSITION

        public static final java.lang.String VALUEPOSITION
        Qualifier of the ProductFeature.valuePosition attribute
        See Also:
        Constant Field Values
      • FEATUREPOSITION

        public static final java.lang.String FEATUREPOSITION
        Qualifier of the ProductFeature.featurePosition attribute
        See Also:
        Constant Field Values
      • VALUETYPE

        public static final java.lang.String VALUETYPE
        Qualifier of the ProductFeature.valueType attribute
        See Also:
        Constant Field Values
      • STRINGVALUE

        public static final java.lang.String STRINGVALUE
        Qualifier of the ProductFeature.stringValue attribute
        See Also:
        Constant Field Values
      • BOOLEANVALUE

        public static final java.lang.String BOOLEANVALUE
        Qualifier of the ProductFeature.booleanValue attribute
        See Also:
        Constant Field Values
      • NUMBERVALUE

        public static final java.lang.String NUMBERVALUE
        Qualifier of the ProductFeature.numberValue attribute
        See Also:
        Constant Field Values
      • RAWVALUE

        public static final java.lang.String RAWVALUE
        Qualifier of the ProductFeature.rawValue attribute
        See Also:
        Constant Field Values
      • UNIT

        public static final java.lang.String UNIT
        Qualifier of the ProductFeature.unit attribute
        See Also:
        Constant Field Values
      • VALUEDETAILS

        public static final java.lang.String VALUEDETAILS
        Qualifier of the ProductFeature.valueDetails attribute
        See Also:
        Constant Field Values
      • DESCRIPTION

        public static final java.lang.String DESCRIPTION
        Qualifier of the ProductFeature.description attribute
        See Also:
        Constant Field Values
      • PRODUCTPOS

        public static final java.lang.String PRODUCTPOS
        Qualifier of the ProductFeature.productPOS attribute
        See Also:
        Constant Field Values
      • PRODUCT

        public static final java.lang.String PRODUCT
        Qualifier of the ProductFeature.product attribute
        See Also:
        Constant Field Values
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedProductFeature

        public GeneratedProductFeature()
    • Method Detail

      • 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 java.lang.String getDescription​(SessionContext ctx)
        Generated method - Getter of the ProductFeature.description attribute.
        Returns:
        the description - description text
      • getDescription

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

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

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

        public java.lang.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 java.lang.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,
                                       java.lang.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​(java.lang.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 java.lang.String getQualifier​(SessionContext ctx)
        Generated method - Getter of the ProductFeature.qualifier attribute.
        Returns:
        the qualifier - Qualifier
      • getQualifier

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

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

        protected void setQualifier​(java.lang.String value)
        Generated method - Setter of the ProductFeature.qualifier attribute.
        Parameters:
        value - the qualifier - Qualifier
      • 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 java.lang.String getValueDetails​(SessionContext ctx)
        Generated method - Getter of the ProductFeature.valueDetails attribute.
        Returns:
        the valueDetails - value details text
      • getValueDetails

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

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

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

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

        public java.lang.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,
                                     java.lang.Integer value)
        Generated method - Setter of the ProductFeature.valuePosition attribute.
        Parameters:
        value - the valuePosition - position mark for multi value features
      • setValuePosition

        public void setValuePosition​(java.lang.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