Class GeneratedConsignment

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

public abstract class GeneratedConsignment extends GenericItem
Generated class for type Consignment.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedConsignment

      public GeneratedConsignment()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class Item
    • getCarrier

      public String getCarrier(SessionContext ctx)
      Generated method - Getter of the Consignment.carrier attribute.
      Returns:
      the carrier
    • getCarrier

      public String getCarrier()
      Generated method - Getter of the Consignment.carrier attribute.
      Returns:
      the carrier
    • setCarrier

      public void setCarrier(SessionContext ctx, String value)
      Generated method - Setter of the Consignment.carrier attribute.
      Parameters:
      value - the carrier
    • setCarrier

      public void setCarrier(String value)
      Generated method - Setter of the Consignment.carrier attribute.
      Parameters:
      value - the carrier
    • getCode

      public String getCode(SessionContext ctx)
      Generated method - Getter of the Consignment.code attribute.
      Returns:
      the code
    • getCode

      public String getCode()
      Generated method - Getter of the Consignment.code attribute.
      Returns:
      the code
    • setCode

      protected void setCode(SessionContext ctx, String value)
      Generated method - Setter of the Consignment.code attribute.
      Parameters:
      value - the code
    • setCode

      protected void setCode(String value)
      Generated method - Setter of the Consignment.code attribute.
      Parameters:
      value - the code
    • getConsignmentEntries

      public Set<ConsignmentEntry> getConsignmentEntries(SessionContext ctx)
      Generated method - Getter of the Consignment.consignmentEntries attribute.
      Returns:
      the consignmentEntries
    • getConsignmentEntries

      public Set<ConsignmentEntry> getConsignmentEntries()
      Generated method - Getter of the Consignment.consignmentEntries attribute.
      Returns:
      the consignmentEntries
    • setConsignmentEntries

      public void setConsignmentEntries(SessionContext ctx, Set<ConsignmentEntry> value)
      Generated method - Setter of the Consignment.consignmentEntries attribute.
      Parameters:
      value - the consignmentEntries
    • setConsignmentEntries

      public void setConsignmentEntries(Set<ConsignmentEntry> value)
      Generated method - Setter of the Consignment.consignmentEntries attribute.
      Parameters:
      value - the consignmentEntries
    • addToConsignmentEntries

      public void addToConsignmentEntries(SessionContext ctx, ConsignmentEntry value)
      Generated method - Adds value to consignmentEntries.
      Parameters:
      value - the item to add to consignmentEntries
    • addToConsignmentEntries

      public void addToConsignmentEntries(ConsignmentEntry value)
      Generated method - Adds value to consignmentEntries.
      Parameters:
      value - the item to add to consignmentEntries
    • removeFromConsignmentEntries

      public void removeFromConsignmentEntries(SessionContext ctx, ConsignmentEntry value)
      Generated method - Removes value from consignmentEntries.
      Parameters:
      value - the item to remove from consignmentEntries
    • removeFromConsignmentEntries

      public void removeFromConsignmentEntries(ConsignmentEntry value)
      Generated method - Removes value from consignmentEntries.
      Parameters:
      value - the item to remove from consignmentEntries
    • getConsignmentProcesses

      public Collection<ConsignmentProcess> getConsignmentProcesses(SessionContext ctx)
      Generated method - Getter of the Consignment.consignmentProcesses attribute.
      Returns:
      the consignmentProcesses
    • getConsignmentProcesses

      public Collection<ConsignmentProcess> getConsignmentProcesses()
      Generated method - Getter of the Consignment.consignmentProcesses attribute.
      Returns:
      the consignmentProcesses
    • setConsignmentProcesses

      public void setConsignmentProcesses(SessionContext ctx, Collection<ConsignmentProcess> value)
      Generated method - Setter of the Consignment.consignmentProcesses attribute.
      Parameters:
      value - the consignmentProcesses
    • setConsignmentProcesses

      public void setConsignmentProcesses(Collection<ConsignmentProcess> value)
      Generated method - Setter of the Consignment.consignmentProcesses attribute.
      Parameters:
      value - the consignmentProcesses
    • addToConsignmentProcesses

      public void addToConsignmentProcesses(SessionContext ctx, ConsignmentProcess value)
      Generated method - Adds value to consignmentProcesses.
      Parameters:
      value - the item to add to consignmentProcesses
    • addToConsignmentProcesses

      public void addToConsignmentProcesses(ConsignmentProcess value)
      Generated method - Adds value to consignmentProcesses.
      Parameters:
      value - the item to add to consignmentProcesses
    • removeFromConsignmentProcesses

      public void removeFromConsignmentProcesses(SessionContext ctx, ConsignmentProcess value)
      Generated method - Removes value from consignmentProcesses.
      Parameters:
      value - the item to remove from consignmentProcesses
    • removeFromConsignmentProcesses

      public void removeFromConsignmentProcesses(ConsignmentProcess value)
      Generated method - Removes value from consignmentProcesses.
      Parameters:
      value - the item to remove from consignmentProcesses
    • 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
    • getDeliveryMode

      public DeliveryMode getDeliveryMode(SessionContext ctx)
      Generated method - Getter of the Consignment.deliveryMode attribute.
      Returns:
      the deliveryMode
    • getDeliveryMode

      public DeliveryMode getDeliveryMode()
      Generated method - Getter of the Consignment.deliveryMode attribute.
      Returns:
      the deliveryMode
    • setDeliveryMode

      protected void setDeliveryMode(SessionContext ctx, DeliveryMode value)
      Generated method - Setter of the Consignment.deliveryMode attribute.
      Parameters:
      value - the deliveryMode
    • setDeliveryMode

      protected void setDeliveryMode(DeliveryMode value)
      Generated method - Setter of the Consignment.deliveryMode attribute.
      Parameters:
      value - the deliveryMode
    • getNamedDeliveryDate

      public Date getNamedDeliveryDate(SessionContext ctx)
      Generated method - Getter of the Consignment.namedDeliveryDate attribute.
      Returns:
      the namedDeliveryDate
    • getNamedDeliveryDate

      public Date getNamedDeliveryDate()
      Generated method - Getter of the Consignment.namedDeliveryDate attribute.
      Returns:
      the namedDeliveryDate
    • setNamedDeliveryDate

      protected void setNamedDeliveryDate(SessionContext ctx, Date value)
      Generated method - Setter of the Consignment.namedDeliveryDate attribute.
      Parameters:
      value - the namedDeliveryDate
    • setNamedDeliveryDate

      protected void setNamedDeliveryDate(Date value)
      Generated method - Setter of the Consignment.namedDeliveryDate attribute.
      Parameters:
      value - the namedDeliveryDate
    • getOrder

      public AbstractOrder getOrder(SessionContext ctx)
      Generated method - Getter of the Consignment.order attribute.
      Returns:
      the order
    • getOrder

      public AbstractOrder getOrder()
      Generated method - Getter of the Consignment.order attribute.
      Returns:
      the order
    • setOrder

      protected void setOrder(SessionContext ctx, AbstractOrder value)
      Generated method - Setter of the Consignment.order attribute.
      Parameters:
      value - the order
    • setOrder

      protected void setOrder(AbstractOrder value)
      Generated method - Setter of the Consignment.order attribute.
      Parameters:
      value - the order
    • getShippingAddress

      public Address getShippingAddress(SessionContext ctx)
      Generated method - Getter of the Consignment.shippingAddress attribute.
      Returns:
      the shippingAddress
    • getShippingAddress

      public Address getShippingAddress()
      Generated method - Getter of the Consignment.shippingAddress attribute.
      Returns:
      the shippingAddress
    • setShippingAddress

      protected void setShippingAddress(SessionContext ctx, Address value)
      Generated method - Setter of the Consignment.shippingAddress attribute.
      Parameters:
      value - the shippingAddress
    • setShippingAddress

      protected void setShippingAddress(Address value)
      Generated method - Setter of the Consignment.shippingAddress attribute.
      Parameters:
      value - the shippingAddress
    • getShippingDate

      public Date getShippingDate(SessionContext ctx)
      Generated method - Getter of the Consignment.shippingDate attribute.
      Returns:
      the shippingDate
    • getShippingDate

      public Date getShippingDate()
      Generated method - Getter of the Consignment.shippingDate attribute.
      Returns:
      the shippingDate
    • setShippingDate

      public void setShippingDate(SessionContext ctx, Date value)
      Generated method - Setter of the Consignment.shippingDate attribute.
      Parameters:
      value - the shippingDate
    • setShippingDate

      public void setShippingDate(Date value)
      Generated method - Setter of the Consignment.shippingDate attribute.
      Parameters:
      value - the shippingDate
    • getStatus

      public EnumerationValue getStatus(SessionContext ctx)
      Generated method - Getter of the Consignment.status attribute.
      Returns:
      the status
    • getStatus

      public EnumerationValue getStatus()
      Generated method - Getter of the Consignment.status attribute.
      Returns:
      the status
    • setStatus

      public void setStatus(SessionContext ctx, EnumerationValue value)
      Generated method - Setter of the Consignment.status attribute.
      Parameters:
      value - the status
    • setStatus

      public void setStatus(EnumerationValue value)
      Generated method - Setter of the Consignment.status attribute.
      Parameters:
      value - the status
    • getTrackingID

      public String getTrackingID(SessionContext ctx)
      Generated method - Getter of the Consignment.trackingID attribute.
      Returns:
      the trackingID
    • getTrackingID

      public String getTrackingID()
      Generated method - Getter of the Consignment.trackingID attribute.
      Returns:
      the trackingID
    • setTrackingID

      public void setTrackingID(SessionContext ctx, String value)
      Generated method - Setter of the Consignment.trackingID attribute.
      Parameters:
      value - the trackingID
    • setTrackingID

      public void setTrackingID(String value)
      Generated method - Setter of the Consignment.trackingID attribute.
      Parameters:
      value - the trackingID
    • getWarehouse

      public Warehouse getWarehouse(SessionContext ctx)
      Generated method - Getter of the Consignment.warehouse attribute.
      Returns:
      the warehouse
    • getWarehouse

      public Warehouse getWarehouse()
      Generated method - Getter of the Consignment.warehouse attribute.
      Returns:
      the warehouse
    • setWarehouse

      protected void setWarehouse(SessionContext ctx, Warehouse value)
      Generated method - Setter of the Consignment.warehouse attribute.
      Parameters:
      value - the warehouse
    • setWarehouse

      protected void setWarehouse(Warehouse value)
      Generated method - Setter of the Consignment.warehouse attribute.
      Parameters:
      value - the warehouse