Class GeneratedConsignment

    • Field Detail

      • CODE

        public static final java.lang.String CODE
        Qualifier of the Consignment.code attribute
        See Also:
        Constant Field Values
      • SHIPPINGADDRESS

        public static final java.lang.String SHIPPINGADDRESS
        Qualifier of the Consignment.shippingAddress attribute
        See Also:
        Constant Field Values
      • DELIVERYMODE

        public static final java.lang.String DELIVERYMODE
        Qualifier of the Consignment.deliveryMode attribute
        See Also:
        Constant Field Values
      • NAMEDDELIVERYDATE

        public static final java.lang.String NAMEDDELIVERYDATE
        Qualifier of the Consignment.namedDeliveryDate attribute
        See Also:
        Constant Field Values
      • SHIPPINGDATE

        public static final java.lang.String SHIPPINGDATE
        Qualifier of the Consignment.shippingDate attribute
        See Also:
        Constant Field Values
      • TRACKINGID

        public static final java.lang.String TRACKINGID
        Qualifier of the Consignment.trackingID attribute
        See Also:
        Constant Field Values
      • CARRIER

        public static final java.lang.String CARRIER
        Qualifier of the Consignment.carrier attribute
        See Also:
        Constant Field Values
      • STATUS

        public static final java.lang.String STATUS
        Qualifier of the Consignment.status attribute
        See Also:
        Constant Field Values
      • WAREHOUSE

        public static final java.lang.String WAREHOUSE
        Qualifier of the Consignment.warehouse attribute
        See Also:
        Constant Field Values
      • CONSIGNMENTENTRIES

        public static final java.lang.String CONSIGNMENTENTRIES
        Qualifier of the Consignment.consignmentEntries attribute
        See Also:
        Constant Field Values
      • ORDER

        public static final java.lang.String ORDER
        Qualifier of the Consignment.order attribute
        See Also:
        Constant Field Values
      • CONSIGNMENTPROCESSES

        public static final java.lang.String CONSIGNMENTPROCESSES
        Qualifier of the Consignment.consignmentProcesses 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

      • GeneratedConsignment

        public GeneratedConsignment()
    • Method Detail

      • getCarrier

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

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

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

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

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

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

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

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

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

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

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

        public void setConsignmentEntries​(java.util.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 java.util.Collection<ConsignmentProcess> getConsignmentProcesses​(SessionContext ctx)
        Generated method - Getter of the Consignment.consignmentProcesses attribute.
        Returns:
        the consignmentProcesses
      • getConsignmentProcesses

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

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

        public void setConsignmentProcesses​(java.util.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 java.util.Date getNamedDeliveryDate​(SessionContext ctx)
        Generated method - Getter of the Consignment.namedDeliveryDate attribute.
        Returns:
        the namedDeliveryDate
      • getNamedDeliveryDate

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

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

        protected void setNamedDeliveryDate​(java.util.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 java.util.Date getShippingDate​(SessionContext ctx)
        Generated method - Getter of the Consignment.shippingDate attribute.
        Returns:
        the shippingDate
      • getShippingDate

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

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

        public void setShippingDate​(java.util.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 java.lang.String getTrackingID​(SessionContext ctx)
        Generated method - Getter of the Consignment.trackingID attribute.
        Returns:
        the trackingID
      • getTrackingID

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

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

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