Class GeneratedPackagingInfo

    • Field Detail

      • WIDTH

        public static final java.lang.String WIDTH
        Qualifier of the PackagingInfo.width attribute
        See Also:
        Constant Field Values
      • HEIGHT

        public static final java.lang.String HEIGHT
        Qualifier of the PackagingInfo.height attribute
        See Also:
        Constant Field Values
      • LENGTH

        public static final java.lang.String LENGTH
        Qualifier of the PackagingInfo.length attribute
        See Also:
        Constant Field Values
      • GROSSWEIGHT

        public static final java.lang.String GROSSWEIGHT
        Qualifier of the PackagingInfo.grossWeight attribute
        See Also:
        Constant Field Values
      • DIMENSIONUNIT

        public static final java.lang.String DIMENSIONUNIT
        Qualifier of the PackagingInfo.dimensionUnit attribute
        See Also:
        Constant Field Values
      • WEIGHTUNIT

        public static final java.lang.String WEIGHTUNIT
        Qualifier of the PackagingInfo.weightUnit attribute
        See Also:
        Constant Field Values
      • INSUREDVALUE

        public static final java.lang.String INSUREDVALUE
        Qualifier of the PackagingInfo.insuredValue attribute
        See Also:
        Constant Field Values
      • CONSIGNMENTPOS

        public static final java.lang.String CONSIGNMENTPOS
        Qualifier of the PackagingInfo.consignmentPOS attribute
        See Also:
        Constant Field Values
      • CONSIGNMENT

        public static final java.lang.String CONSIGNMENT
        Qualifier of the PackagingInfo.consignment 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

      • GeneratedPackagingInfo

        public GeneratedPackagingInfo()
    • Method Detail

      • getConsignment

        public Consignment getConsignment​(SessionContext ctx)
        Generated method - Getter of the PackagingInfo.consignment attribute.
        Returns:
        the consignment
      • getConsignment

        public Consignment getConsignment()
        Generated method - Getter of the PackagingInfo.consignment attribute.
        Returns:
        the consignment
      • setConsignment

        protected void setConsignment​(SessionContext ctx,
                                      Consignment value)
        Generated method - Setter of the PackagingInfo.consignment attribute.
        Parameters:
        value - the consignment
      • setConsignment

        protected void setConsignment​(Consignment value)
        Generated method - Setter of the PackagingInfo.consignment attribute.
        Parameters:
        value - the consignment
      • 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
      • getDimensionUnit

        public java.lang.String getDimensionUnit​(SessionContext ctx)
        Generated method - Getter of the PackagingInfo.dimensionUnit attribute.
        Returns:
        the dimensionUnit
      • getDimensionUnit

        public java.lang.String getDimensionUnit()
        Generated method - Getter of the PackagingInfo.dimensionUnit attribute.
        Returns:
        the dimensionUnit
      • setDimensionUnit

        public void setDimensionUnit​(SessionContext ctx,
                                     java.lang.String value)
        Generated method - Setter of the PackagingInfo.dimensionUnit attribute.
        Parameters:
        value - the dimensionUnit
      • setDimensionUnit

        public void setDimensionUnit​(java.lang.String value)
        Generated method - Setter of the PackagingInfo.dimensionUnit attribute.
        Parameters:
        value - the dimensionUnit
      • getGrossWeight

        public java.lang.String getGrossWeight​(SessionContext ctx)
        Generated method - Getter of the PackagingInfo.grossWeight attribute.
        Returns:
        the grossWeight
      • getGrossWeight

        public java.lang.String getGrossWeight()
        Generated method - Getter of the PackagingInfo.grossWeight attribute.
        Returns:
        the grossWeight
      • setGrossWeight

        public void setGrossWeight​(SessionContext ctx,
                                   java.lang.String value)
        Generated method - Setter of the PackagingInfo.grossWeight attribute.
        Parameters:
        value - the grossWeight
      • setGrossWeight

        public void setGrossWeight​(java.lang.String value)
        Generated method - Setter of the PackagingInfo.grossWeight attribute.
        Parameters:
        value - the grossWeight
      • getHeight

        public java.lang.String getHeight​(SessionContext ctx)
        Generated method - Getter of the PackagingInfo.height attribute.
        Returns:
        the height
      • getHeight

        public java.lang.String getHeight()
        Generated method - Getter of the PackagingInfo.height attribute.
        Returns:
        the height
      • setHeight

        public void setHeight​(SessionContext ctx,
                              java.lang.String value)
        Generated method - Setter of the PackagingInfo.height attribute.
        Parameters:
        value - the height
      • setHeight

        public void setHeight​(java.lang.String value)
        Generated method - Setter of the PackagingInfo.height attribute.
        Parameters:
        value - the height
      • getInsuredValue

        public java.lang.String getInsuredValue​(SessionContext ctx)
        Generated method - Getter of the PackagingInfo.insuredValue attribute.
        Returns:
        the insuredValue
      • getInsuredValue

        public java.lang.String getInsuredValue()
        Generated method - Getter of the PackagingInfo.insuredValue attribute.
        Returns:
        the insuredValue
      • setInsuredValue

        public void setInsuredValue​(SessionContext ctx,
                                    java.lang.String value)
        Generated method - Setter of the PackagingInfo.insuredValue attribute.
        Parameters:
        value - the insuredValue
      • setInsuredValue

        public void setInsuredValue​(java.lang.String value)
        Generated method - Setter of the PackagingInfo.insuredValue attribute.
        Parameters:
        value - the insuredValue
      • getLength

        public java.lang.String getLength​(SessionContext ctx)
        Generated method - Getter of the PackagingInfo.length attribute.
        Returns:
        the length
      • getLength

        public java.lang.String getLength()
        Generated method - Getter of the PackagingInfo.length attribute.
        Returns:
        the length
      • setLength

        public void setLength​(SessionContext ctx,
                              java.lang.String value)
        Generated method - Setter of the PackagingInfo.length attribute.
        Parameters:
        value - the length
      • setLength

        public void setLength​(java.lang.String value)
        Generated method - Setter of the PackagingInfo.length attribute.
        Parameters:
        value - the length
      • getWeightUnit

        public java.lang.String getWeightUnit​(SessionContext ctx)
        Generated method - Getter of the PackagingInfo.weightUnit attribute.
        Returns:
        the weightUnit
      • getWeightUnit

        public java.lang.String getWeightUnit()
        Generated method - Getter of the PackagingInfo.weightUnit attribute.
        Returns:
        the weightUnit
      • setWeightUnit

        public void setWeightUnit​(SessionContext ctx,
                                  java.lang.String value)
        Generated method - Setter of the PackagingInfo.weightUnit attribute.
        Parameters:
        value - the weightUnit
      • setWeightUnit

        public void setWeightUnit​(java.lang.String value)
        Generated method - Setter of the PackagingInfo.weightUnit attribute.
        Parameters:
        value - the weightUnit
      • getWidth

        public java.lang.String getWidth​(SessionContext ctx)
        Generated method - Getter of the PackagingInfo.width attribute.
        Returns:
        the width
      • getWidth

        public java.lang.String getWidth()
        Generated method - Getter of the PackagingInfo.width attribute.
        Returns:
        the width
      • setWidth

        public void setWidth​(SessionContext ctx,
                             java.lang.String value)
        Generated method - Setter of the PackagingInfo.width attribute.
        Parameters:
        value - the width
      • setWidth

        public void setWidth​(java.lang.String value)
        Generated method - Setter of the PackagingInfo.width attribute.
        Parameters:
        value - the width