Class GeneratedProductReference

    • Field Detail

      • QUALIFIER

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

        public static final java.lang.String TARGET
        Qualifier of the ProductReference.target attribute
        See Also:
        Constant Field Values
      • QUANTITY

        public static final java.lang.String QUANTITY
        Qualifier of the ProductReference.quantity attribute
        See Also:
        Constant Field Values
      • REFERENCETYPE

        public static final java.lang.String REFERENCETYPE
        Qualifier of the ProductReference.referenceType attribute
        See Also:
        Constant Field Values
      • ICON

        public static final java.lang.String ICON
        Qualifier of the ProductReference.icon attribute
        See Also:
        Constant Field Values
      • DESCRIPTION

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

        public static final java.lang.String PRESELECTED
        Qualifier of the ProductReference.preselected attribute
        See Also:
        Constant Field Values
      • ACTIVE

        public static final java.lang.String ACTIVE
        Qualifier of the ProductReference.active attribute
        See Also:
        Constant Field Values
      • SOURCEPOS

        public static final java.lang.String SOURCEPOS
        Qualifier of the ProductReference.sourcePOS attribute
        See Also:
        Constant Field Values
      • SOURCE

        public static final java.lang.String SOURCE
        Qualifier of the ProductReference.source 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

      • GeneratedProductReference

        public GeneratedProductReference()
    • Method Detail

      • isActive

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

        public java.lang.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,
                              java.lang.Boolean value)
        Generated method - Setter of the ProductReference.active attribute.
        Parameters:
        value - the active
      • setActive

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

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

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

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

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

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

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

        public void setAllDescription​(java.util.Map<Language,​java.lang.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 java.lang.Boolean isPreselected​(SessionContext ctx)
        Generated method - Getter of the ProductReference.preselected attribute.
        Returns:
        the preselected
      • isPreselected

        public java.lang.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,
                                   java.lang.Boolean value)
        Generated method - Setter of the ProductReference.preselected attribute.
        Parameters:
        value - the preselected
      • setPreselected

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

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

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

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

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

        public java.lang.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,
                                java.lang.Integer value)
        Generated method - Setter of the ProductReference.quantity attribute.
        Parameters:
        value - the quantity - Quantity
      • setQuantity

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