Class GeneratedPackagingInfo

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

public abstract class GeneratedPackagingInfo extends GenericItem
Generated class for type PackagingInfo.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedPackagingInfo

      public GeneratedPackagingInfo()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class Item
    • 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 String getDimensionUnit(SessionContext ctx)
      Generated method - Getter of the PackagingInfo.dimensionUnit attribute.
      Returns:
      the dimensionUnit
    • getDimensionUnit

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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