Class GeneratedMaterial

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable
    Direct Known Subclasses:
    Material

    public abstract class GeneratedMaterial
    extends GenericItem
    Generated class for type Material.
    See Also:
    Serialized Form
    • Field Detail

      • MATPOSNO

        public static final java.lang.String MATPOSNO
        Qualifier of the Material.matPosNo attribute
        See Also:
        Constant Field Values
      • MATNO

        public static final java.lang.String MATNO
        Qualifier of the Material.matNo attribute
        See Also:
        Constant Field Values
      • MATDESC

        public static final java.lang.String MATDESC
        Qualifier of the Material.matDesc attribute
        See Also:
        Constant Field Values
      • QUANTITY

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

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

        public static final java.lang.String GROSSPRICE
        Qualifier of the Material.grossPrice attribute
        See Also:
        Constant Field Values
      • GROSSVALUE

        public static final java.lang.String GROSSVALUE
        Qualifier of the Material.grossValue attribute
        See Also:
        Constant Field Values
      • NETVALUE

        public static final java.lang.String NETVALUE
        Qualifier of the Material.netValue attribute
        See Also:
        Constant Field Values
      • SUBTOTAL1

        public static final java.lang.String SUBTOTAL1
        Qualifier of the Material.subTotal1 attribute
        See Also:
        Constant Field Values
      • SUBTOTAL2

        public static final java.lang.String SUBTOTAL2
        Qualifier of the Material.subTotal2 attribute
        See Also:
        Constant Field Values
      • SUBTOTAL3

        public static final java.lang.String SUBTOTAL3
        Qualifier of the Material.subTotal3 attribute
        See Also:
        Constant Field Values
      • SUBTOTAL4

        public static final java.lang.String SUBTOTAL4
        Qualifier of the Material.subTotal4 attribute
        See Also:
        Constant Field Values
      • SUBTOTAL5

        public static final java.lang.String SUBTOTAL5
        Qualifier of the Material.subTotal5 attribute
        See Also:
        Constant Field Values
      • SUBTOTAL6

        public static final java.lang.String SUBTOTAL6
        Qualifier of the Material.subTotal6 attribute
        See Also:
        Constant Field Values
      • QUALIFYCASHDISC

        public static final java.lang.String QUALIFYCASHDISC
        Qualifier of the Material.qualifyCashDisc attribute
        See Also:
        Constant Field Values
      • ABSTNETVALUE

        public static final java.lang.String ABSTNETVALUE
        Qualifier of the Material.abstNetValue attribute
        See Also:
        Constant Field Values
      • NETPRICE

        public static final java.lang.String NETPRICE
        Qualifier of the Material.netPrice attribute
        See Also:
        Constant Field Values
      • CASHDISC

        public static final java.lang.String CASHDISC
        Qualifier of the Material.cashDisc attribute
        See Also:
        Constant Field Values
      • STATVALUE

        public static final java.lang.String STATVALUE
        Qualifier of the Material.statValue attribute
        See Also:
        Constant Field Values
      • SAPB2BDOCUMENT

        public static final java.lang.String SAPB2BDOCUMENT
        Qualifier of the Material.sapB2BDocument 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

      • GeneratedMaterial

        public GeneratedMaterial()
    • Method Detail

      • getAbstNetValue

        public java.lang.String getAbstNetValue​(SessionContext ctx)
        Generated method - Getter of the Material.abstNetValue attribute.
        Returns:
        the abstNetValue - Absolute net value of item
      • getAbstNetValue

        public java.lang.String getAbstNetValue()
        Generated method - Getter of the Material.abstNetValue attribute.
        Returns:
        the abstNetValue - Absolute net value of item
      • setAbstNetValue

        public void setAbstNetValue​(SessionContext ctx,
                                    java.lang.String value)
        Generated method - Setter of the Material.abstNetValue attribute.
        Parameters:
        value - the abstNetValue - Absolute net value of item
      • setAbstNetValue

        public void setAbstNetValue​(java.lang.String value)
        Generated method - Setter of the Material.abstNetValue attribute.
        Parameters:
        value - the abstNetValue - Absolute net value of item
      • getCashDisc

        public java.lang.String getCashDisc​(SessionContext ctx)
        Generated method - Getter of the Material.cashDisc attribute.
        Returns:
        the cashDisc - Cash discount amount
      • getCashDisc

        public java.lang.String getCashDisc()
        Generated method - Getter of the Material.cashDisc attribute.
        Returns:
        the cashDisc - Cash discount amount
      • setCashDisc

        public void setCashDisc​(SessionContext ctx,
                                java.lang.String value)
        Generated method - Setter of the Material.cashDisc attribute.
        Parameters:
        value - the cashDisc - Cash discount amount
      • setCashDisc

        public void setCashDisc​(java.lang.String value)
        Generated method - Setter of the Material.cashDisc attribute.
        Parameters:
        value - the cashDisc - Cash discount amount
      • 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
      • getGrossPrice

        public java.lang.String getGrossPrice​(SessionContext ctx)
        Generated method - Getter of the Material.grossPrice attribute.
        Returns:
        the grossPrice - Gross Price (per Unit)
      • getGrossPrice

        public java.lang.String getGrossPrice()
        Generated method - Getter of the Material.grossPrice attribute.
        Returns:
        the grossPrice - Gross Price (per Unit)
      • setGrossPrice

        public void setGrossPrice​(SessionContext ctx,
                                  java.lang.String value)
        Generated method - Setter of the Material.grossPrice attribute.
        Parameters:
        value - the grossPrice - Gross Price (per Unit)
      • setGrossPrice

        public void setGrossPrice​(java.lang.String value)
        Generated method - Setter of the Material.grossPrice attribute.
        Parameters:
        value - the grossPrice - Gross Price (per Unit)
      • getGrossValue

        public java.lang.String getGrossValue​(SessionContext ctx)
        Generated method - Getter of the Material.grossValue attribute.
        Returns:
        the grossValue - Gross Price (total)
      • getGrossValue

        public java.lang.String getGrossValue()
        Generated method - Getter of the Material.grossValue attribute.
        Returns:
        the grossValue - Gross Price (total)
      • setGrossValue

        public void setGrossValue​(SessionContext ctx,
                                  java.lang.String value)
        Generated method - Setter of the Material.grossValue attribute.
        Parameters:
        value - the grossValue - Gross Price (total)
      • setGrossValue

        public void setGrossValue​(java.lang.String value)
        Generated method - Setter of the Material.grossValue attribute.
        Parameters:
        value - the grossValue - Gross Price (total)
      • getMatDesc

        public java.lang.String getMatDesc​(SessionContext ctx)
        Generated method - Getter of the Material.matDesc attribute.
        Returns:
        the matDesc - Item Description
      • getMatDesc

        public java.lang.String getMatDesc()
        Generated method - Getter of the Material.matDesc attribute.
        Returns:
        the matDesc - Item Description
      • setMatDesc

        public void setMatDesc​(SessionContext ctx,
                               java.lang.String value)
        Generated method - Setter of the Material.matDesc attribute.
        Parameters:
        value - the matDesc - Item Description
      • setMatDesc

        public void setMatDesc​(java.lang.String value)
        Generated method - Setter of the Material.matDesc attribute.
        Parameters:
        value - the matDesc - Item Description
      • getMatNo

        public java.lang.String getMatNo​(SessionContext ctx)
        Generated method - Getter of the Material.matNo attribute.
        Returns:
        the matNo - Item Number
      • getMatNo

        public java.lang.String getMatNo()
        Generated method - Getter of the Material.matNo attribute.
        Returns:
        the matNo - Item Number
      • setMatNo

        public void setMatNo​(SessionContext ctx,
                             java.lang.String value)
        Generated method - Setter of the Material.matNo attribute.
        Parameters:
        value - the matNo - Item Number
      • setMatNo

        public void setMatNo​(java.lang.String value)
        Generated method - Setter of the Material.matNo attribute.
        Parameters:
        value - the matNo - Item Number
      • getMatPosNo

        public java.lang.String getMatPosNo​(SessionContext ctx)
        Generated method - Getter of the Material.matPosNo attribute.
        Returns:
        the matPosNo - Item Position
      • getMatPosNo

        public java.lang.String getMatPosNo()
        Generated method - Getter of the Material.matPosNo attribute.
        Returns:
        the matPosNo - Item Position
      • setMatPosNo

        public void setMatPosNo​(SessionContext ctx,
                                java.lang.String value)
        Generated method - Setter of the Material.matPosNo attribute.
        Parameters:
        value - the matPosNo - Item Position
      • setMatPosNo

        public void setMatPosNo​(java.lang.String value)
        Generated method - Setter of the Material.matPosNo attribute.
        Parameters:
        value - the matPosNo - Item Position
      • getNetPrice

        public java.lang.String getNetPrice​(SessionContext ctx)
        Generated method - Getter of the Material.netPrice attribute.
        Returns:
        the netPrice - Net price
      • getNetPrice

        public java.lang.String getNetPrice()
        Generated method - Getter of the Material.netPrice attribute.
        Returns:
        the netPrice - Net price
      • setNetPrice

        public void setNetPrice​(SessionContext ctx,
                                java.lang.String value)
        Generated method - Setter of the Material.netPrice attribute.
        Parameters:
        value - the netPrice - Net price
      • setNetPrice

        public void setNetPrice​(java.lang.String value)
        Generated method - Setter of the Material.netPrice attribute.
        Parameters:
        value - the netPrice - Net price
      • getNetValue

        public java.lang.String getNetValue​(SessionContext ctx)
        Generated method - Getter of the Material.netValue attribute.
        Returns:
        the netValue - Net Value (total)
      • getNetValue

        public java.lang.String getNetValue()
        Generated method - Getter of the Material.netValue attribute.
        Returns:
        the netValue - Net Value (total)
      • setNetValue

        public void setNetValue​(SessionContext ctx,
                                java.lang.String value)
        Generated method - Setter of the Material.netValue attribute.
        Parameters:
        value - the netValue - Net Value (total)
      • setNetValue

        public void setNetValue​(java.lang.String value)
        Generated method - Setter of the Material.netValue attribute.
        Parameters:
        value - the netValue - Net Value (total)
      • getQualifyCashDisc

        public java.lang.String getQualifyCashDisc​(SessionContext ctx)
        Generated method - Getter of the Material.qualifyCashDisc attribute.
        Returns:
        the qualifyCashDisc - Amount qualifying for cash discount
      • getQualifyCashDisc

        public java.lang.String getQualifyCashDisc()
        Generated method - Getter of the Material.qualifyCashDisc attribute.
        Returns:
        the qualifyCashDisc - Amount qualifying for cash discount
      • setQualifyCashDisc

        public void setQualifyCashDisc​(SessionContext ctx,
                                       java.lang.String value)
        Generated method - Setter of the Material.qualifyCashDisc attribute.
        Parameters:
        value - the qualifyCashDisc - Amount qualifying for cash discount
      • setQualifyCashDisc

        public void setQualifyCashDisc​(java.lang.String value)
        Generated method - Setter of the Material.qualifyCashDisc attribute.
        Parameters:
        value - the qualifyCashDisc - Amount qualifying for cash discount
      • getQuantity

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

        public java.lang.String getQuantity()
        Generated method - Getter of the Material.quantity attribute.
        Returns:
        the quantity - Quantity
      • setQuantity

        public void setQuantity​(SessionContext ctx,
                                java.lang.String value)
        Generated method - Setter of the Material.quantity attribute.
        Parameters:
        value - the quantity - Quantity
      • setQuantity

        public void setQuantity​(java.lang.String value)
        Generated method - Setter of the Material.quantity attribute.
        Parameters:
        value - the quantity - Quantity
      • getSapB2BDocument

        public SapB2BDocument getSapB2BDocument​(SessionContext ctx)
        Generated method - Getter of the Material.sapB2BDocument attribute.
        Returns:
        the sapB2BDocument
      • getSapB2BDocument

        public SapB2BDocument getSapB2BDocument()
        Generated method - Getter of the Material.sapB2BDocument attribute.
        Returns:
        the sapB2BDocument
      • setSapB2BDocument

        public void setSapB2BDocument​(SessionContext ctx,
                                      SapB2BDocument value)
        Generated method - Setter of the Material.sapB2BDocument attribute.
        Parameters:
        value - the sapB2BDocument
      • setSapB2BDocument

        public void setSapB2BDocument​(SapB2BDocument value)
        Generated method - Setter of the Material.sapB2BDocument attribute.
        Parameters:
        value - the sapB2BDocument
      • getStatValue

        public java.lang.String getStatValue​(SessionContext ctx)
        Generated method - Getter of the Material.statValue attribute.
        Returns:
        the statValue - Statistical value
      • getStatValue

        public java.lang.String getStatValue()
        Generated method - Getter of the Material.statValue attribute.
        Returns:
        the statValue - Statistical value
      • setStatValue

        public void setStatValue​(SessionContext ctx,
                                 java.lang.String value)
        Generated method - Setter of the Material.statValue attribute.
        Parameters:
        value - the statValue - Statistical value
      • setStatValue

        public void setStatValue​(java.lang.String value)
        Generated method - Setter of the Material.statValue attribute.
        Parameters:
        value - the statValue - Statistical value
      • getSubTotal1

        public java.lang.String getSubTotal1​(SessionContext ctx)
        Generated method - Getter of the Material.subTotal1 attribute.
        Returns:
        the subTotal1 - SubTotal 1 from pric. calc. proc
      • getSubTotal1

        public java.lang.String getSubTotal1()
        Generated method - Getter of the Material.subTotal1 attribute.
        Returns:
        the subTotal1 - SubTotal 1 from pric. calc. proc
      • setSubTotal1

        public void setSubTotal1​(SessionContext ctx,
                                 java.lang.String value)
        Generated method - Setter of the Material.subTotal1 attribute.
        Parameters:
        value - the subTotal1 - SubTotal 1 from pric. calc. proc
      • setSubTotal1

        public void setSubTotal1​(java.lang.String value)
        Generated method - Setter of the Material.subTotal1 attribute.
        Parameters:
        value - the subTotal1 - SubTotal 1 from pric. calc. proc
      • getSubTotal2

        public java.lang.String getSubTotal2​(SessionContext ctx)
        Generated method - Getter of the Material.subTotal2 attribute.
        Returns:
        the subTotal2 - SubTotal 2 from pric. calc. proc.(total discount amount applied)
      • getSubTotal2

        public java.lang.String getSubTotal2()
        Generated method - Getter of the Material.subTotal2 attribute.
        Returns:
        the subTotal2 - SubTotal 2 from pric. calc. proc.(total discount amount applied)
      • setSubTotal2

        public void setSubTotal2​(SessionContext ctx,
                                 java.lang.String value)
        Generated method - Setter of the Material.subTotal2 attribute.
        Parameters:
        value - the subTotal2 - SubTotal 2 from pric. calc. proc.(total discount amount applied)
      • setSubTotal2

        public void setSubTotal2​(java.lang.String value)
        Generated method - Setter of the Material.subTotal2 attribute.
        Parameters:
        value - the subTotal2 - SubTotal 2 from pric. calc. proc.(total discount amount applied)
      • getSubTotal3

        public java.lang.String getSubTotal3​(SessionContext ctx)
        Generated method - Getter of the Material.subTotal3 attribute.
        Returns:
        the subTotal3 - SubTotal 3 from pric. calc. proc. (Shipping costs)
      • getSubTotal3

        public java.lang.String getSubTotal3()
        Generated method - Getter of the Material.subTotal3 attribute.
        Returns:
        the subTotal3 - SubTotal 3 from pric. calc. proc. (Shipping costs)
      • setSubTotal3

        public void setSubTotal3​(SessionContext ctx,
                                 java.lang.String value)
        Generated method - Setter of the Material.subTotal3 attribute.
        Parameters:
        value - the subTotal3 - SubTotal 3 from pric. calc. proc. (Shipping costs)
      • setSubTotal3

        public void setSubTotal3​(java.lang.String value)
        Generated method - Setter of the Material.subTotal3 attribute.
        Parameters:
        value - the subTotal3 - SubTotal 3 from pric. calc. proc. (Shipping costs)
      • getSubTotal4

        public java.lang.String getSubTotal4​(SessionContext ctx)
        Generated method - Getter of the Material.subTotal4 attribute.
        Returns:
        the subTotal4 - SubTotal 4 from pric. calc. proc. (Tax Amount)
      • getSubTotal4

        public java.lang.String getSubTotal4()
        Generated method - Getter of the Material.subTotal4 attribute.
        Returns:
        the subTotal4 - SubTotal 4 from pric. calc. proc. (Tax Amount)
      • setSubTotal4

        public void setSubTotal4​(SessionContext ctx,
                                 java.lang.String value)
        Generated method - Setter of the Material.subTotal4 attribute.
        Parameters:
        value - the subTotal4 - SubTotal 4 from pric. calc. proc. (Tax Amount)
      • setSubTotal4

        public void setSubTotal4​(java.lang.String value)
        Generated method - Setter of the Material.subTotal4 attribute.
        Parameters:
        value - the subTotal4 - SubTotal 4 from pric. calc. proc. (Tax Amount)
      • getSubTotal5

        public java.lang.String getSubTotal5​(SessionContext ctx)
        Generated method - Getter of the Material.subTotal5 attribute.
        Returns:
        the subTotal5 - SubTotal 5 from pric. calc. proc. (Payment Costs)
      • getSubTotal5

        public java.lang.String getSubTotal5()
        Generated method - Getter of the Material.subTotal5 attribute.
        Returns:
        the subTotal5 - SubTotal 5 from pric. calc. proc. (Payment Costs)
      • setSubTotal5

        public void setSubTotal5​(SessionContext ctx,
                                 java.lang.String value)
        Generated method - Setter of the Material.subTotal5 attribute.
        Parameters:
        value - the subTotal5 - SubTotal 5 from pric. calc. proc. (Payment Costs)
      • setSubTotal5

        public void setSubTotal5​(java.lang.String value)
        Generated method - Setter of the Material.subTotal5 attribute.
        Parameters:
        value - the subTotal5 - SubTotal 5 from pric. calc. proc. (Payment Costs)
      • getSubTotal6

        public java.lang.String getSubTotal6​(SessionContext ctx)
        Generated method - Getter of the Material.subTotal6 attribute.
        Returns:
        the subTotal6 - SubTotal 6 from pric. calc. proc.
      • getSubTotal6

        public java.lang.String getSubTotal6()
        Generated method - Getter of the Material.subTotal6 attribute.
        Returns:
        the subTotal6 - SubTotal 6 from pric. calc. proc.
      • setSubTotal6

        public void setSubTotal6​(SessionContext ctx,
                                 java.lang.String value)
        Generated method - Setter of the Material.subTotal6 attribute.
        Parameters:
        value - the subTotal6 - SubTotal 6 from pric. calc. proc.
      • setSubTotal6

        public void setSubTotal6​(java.lang.String value)
        Generated method - Setter of the Material.subTotal6 attribute.
        Parameters:
        value - the subTotal6 - SubTotal 6 from pric. calc. proc.
      • getUnit

        public java.lang.String getUnit​(SessionContext ctx)
        Generated method - Getter of the Material.unit attribute.
        Returns:
        the unit - Unit of Measure
      • getUnit

        public java.lang.String getUnit()
        Generated method - Getter of the Material.unit attribute.
        Returns:
        the unit - Unit of Measure
      • setUnit

        public void setUnit​(SessionContext ctx,
                            java.lang.String value)
        Generated method - Setter of the Material.unit attribute.
        Parameters:
        value - the unit - Unit of Measure
      • setUnit

        public void setUnit​(java.lang.String value)
        Generated method - Setter of the Material.unit attribute.
        Parameters:
        value - the unit - Unit of Measure