Class GeneratedReturnRequest

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

public abstract class GeneratedReturnRequest extends GenericItem
Generated class for type ReturnRequest.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedReturnRequest

      public GeneratedReturnRequest()
  • Method Details

    • getDefaultAttributeModes

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

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

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

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

      public void setCode(String value)
      Generated method - Setter of the ReturnRequest.code attribute.
      Parameters:
      value - the code
    • 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
    • getCurrency

      public Currency getCurrency(SessionContext ctx)
      Generated method - Getter of the ReturnRequest.currency attribute.
      Returns:
      the currency
    • getCurrency

      public Currency getCurrency()
      Generated method - Getter of the ReturnRequest.currency attribute.
      Returns:
      the currency
    • setCurrency

      public void setCurrency(SessionContext ctx, Currency value)
      Generated method - Setter of the ReturnRequest.currency attribute.
      Parameters:
      value - the currency
    • setCurrency

      public void setCurrency(Currency value)
      Generated method - Setter of the ReturnRequest.currency attribute.
      Parameters:
      value - the currency
    • getOrder

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

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

      public void setOrder(SessionContext ctx, Order value)
      Generated method - Setter of the ReturnRequest.order attribute.
      Parameters:
      value - the order
    • setOrder

      public void setOrder(Order value)
      Generated method - Setter of the ReturnRequest.order attribute.
      Parameters:
      value - the order
    • getReplacementOrder

      public ReplacementOrder getReplacementOrder(SessionContext ctx)
      Generated method - Getter of the ReturnRequest.replacementOrder attribute.
      Returns:
      the replacementOrder
    • getReplacementOrder

      public ReplacementOrder getReplacementOrder()
      Generated method - Getter of the ReturnRequest.replacementOrder attribute.
      Returns:
      the replacementOrder
    • setReplacementOrder

      public void setReplacementOrder(SessionContext ctx, ReplacementOrder value)
      Generated method - Setter of the ReturnRequest.replacementOrder attribute.
      Parameters:
      value - the replacementOrder
    • setReplacementOrder

      public void setReplacementOrder(ReplacementOrder value)
      Generated method - Setter of the ReturnRequest.replacementOrder attribute.
      Parameters:
      value - the replacementOrder
    • getReturnEntries

      public List<ReturnEntry> getReturnEntries(SessionContext ctx)
      Generated method - Getter of the ReturnRequest.returnEntries attribute.
      Returns:
      the returnEntries
    • getReturnEntries

      public List<ReturnEntry> getReturnEntries()
      Generated method - Getter of the ReturnRequest.returnEntries attribute.
      Returns:
      the returnEntries
    • setReturnEntries

      public void setReturnEntries(SessionContext ctx, List<ReturnEntry> value)
      Generated method - Setter of the ReturnRequest.returnEntries attribute.
      Parameters:
      value - the returnEntries
    • setReturnEntries

      public void setReturnEntries(List<ReturnEntry> value)
      Generated method - Setter of the ReturnRequest.returnEntries attribute.
      Parameters:
      value - the returnEntries
    • addToReturnEntries

      public void addToReturnEntries(SessionContext ctx, ReturnEntry value)
      Generated method - Adds value to returnEntries.
      Parameters:
      value - the item to add to returnEntries
    • addToReturnEntries

      public void addToReturnEntries(ReturnEntry value)
      Generated method - Adds value to returnEntries.
      Parameters:
      value - the item to add to returnEntries
    • removeFromReturnEntries

      public void removeFromReturnEntries(SessionContext ctx, ReturnEntry value)
      Generated method - Removes value from returnEntries.
      Parameters:
      value - the item to remove from returnEntries
    • removeFromReturnEntries

      public void removeFromReturnEntries(ReturnEntry value)
      Generated method - Removes value from returnEntries.
      Parameters:
      value - the item to remove from returnEntries
    • getReturnForm

      public Media getReturnForm(SessionContext ctx)
      Generated method - Getter of the ReturnRequest.returnForm attribute.
      Returns:
      the returnForm - The return form for the ReturnRequest.
    • getReturnForm

      public Media getReturnForm()
      Generated method - Getter of the ReturnRequest.returnForm attribute.
      Returns:
      the returnForm - The return form for the ReturnRequest.
    • setReturnForm

      public void setReturnForm(SessionContext ctx, Media value)
      Generated method - Setter of the ReturnRequest.returnForm attribute.
      Parameters:
      value - the returnForm - The return form for the ReturnRequest.
    • setReturnForm

      public void setReturnForm(Media value)
      Generated method - Setter of the ReturnRequest.returnForm attribute.
      Parameters:
      value - the returnForm - The return form for the ReturnRequest.
    • getReturnLabel

      public Media getReturnLabel(SessionContext ctx)
      Generated method - Getter of the ReturnRequest.returnLabel attribute.
      Returns:
      the returnLabel - The return shipping label for the ReturnRequest.
    • getReturnLabel

      public Media getReturnLabel()
      Generated method - Getter of the ReturnRequest.returnLabel attribute.
      Returns:
      the returnLabel - The return shipping label for the ReturnRequest.
    • setReturnLabel

      public void setReturnLabel(SessionContext ctx, Media value)
      Generated method - Setter of the ReturnRequest.returnLabel attribute.
      Parameters:
      value - the returnLabel - The return shipping label for the ReturnRequest.
    • setReturnLabel

      public void setReturnLabel(Media value)
      Generated method - Setter of the ReturnRequest.returnLabel attribute.
      Parameters:
      value - the returnLabel - The return shipping label for the ReturnRequest.
    • getReturnProcess

      public Collection<ReturnProcess> getReturnProcess(SessionContext ctx)
      Generated method - Getter of the ReturnRequest.returnProcess attribute.
      Returns:
      the returnProcess
    • getReturnProcess

      public Collection<ReturnProcess> getReturnProcess()
      Generated method - Getter of the ReturnRequest.returnProcess attribute.
      Returns:
      the returnProcess
    • setReturnProcess

      public void setReturnProcess(SessionContext ctx, Collection<ReturnProcess> value)
      Generated method - Setter of the ReturnRequest.returnProcess attribute.
      Parameters:
      value - the returnProcess
    • setReturnProcess

      public void setReturnProcess(Collection<ReturnProcess> value)
      Generated method - Setter of the ReturnRequest.returnProcess attribute.
      Parameters:
      value - the returnProcess
    • addToReturnProcess

      public void addToReturnProcess(SessionContext ctx, ReturnProcess value)
      Generated method - Adds value to returnProcess.
      Parameters:
      value - the item to add to returnProcess
    • addToReturnProcess

      public void addToReturnProcess(ReturnProcess value)
      Generated method - Adds value to returnProcess.
      Parameters:
      value - the item to add to returnProcess
    • removeFromReturnProcess

      public void removeFromReturnProcess(SessionContext ctx, ReturnProcess value)
      Generated method - Removes value from returnProcess.
      Parameters:
      value - the item to remove from returnProcess
    • removeFromReturnProcess

      public void removeFromReturnProcess(ReturnProcess value)
      Generated method - Removes value from returnProcess.
      Parameters:
      value - the item to remove from returnProcess
    • getReturnWarehouse

      public Warehouse getReturnWarehouse(SessionContext ctx)
      Generated method - Getter of the ReturnRequest.returnWarehouse attribute.
      Returns:
      the returnWarehouse - Determines the warehouse where the products need to be returned by the customer
    • getReturnWarehouse

      public Warehouse getReturnWarehouse()
      Generated method - Getter of the ReturnRequest.returnWarehouse attribute.
      Returns:
      the returnWarehouse - Determines the warehouse where the products need to be returned by the customer
    • setReturnWarehouse

      public void setReturnWarehouse(SessionContext ctx, Warehouse value)
      Generated method - Setter of the ReturnRequest.returnWarehouse attribute.
      Parameters:
      value - the returnWarehouse - Determines the warehouse where the products need to be returned by the customer
    • setReturnWarehouse

      public void setReturnWarehouse(Warehouse value)
      Generated method - Setter of the ReturnRequest.returnWarehouse attribute.
      Parameters:
      value - the returnWarehouse - Determines the warehouse where the products need to be returned by the customer
    • getRMA

      public String getRMA(SessionContext ctx)
      Generated method - Getter of the ReturnRequest.RMA attribute.
      Returns:
      the RMA
    • getRMA

      public String getRMA()
      Generated method - Getter of the ReturnRequest.RMA attribute.
      Returns:
      the RMA
    • setRMA

      public void setRMA(SessionContext ctx, String value)
      Generated method - Setter of the ReturnRequest.RMA attribute.
      Parameters:
      value - the RMA
    • setRMA

      public void setRMA(String value)
      Generated method - Setter of the ReturnRequest.RMA attribute.
      Parameters:
      value - the RMA
    • getStatus

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

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

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

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

      public BigDecimal getSubtotal(SessionContext ctx)
      Generated method - Getter of the ReturnRequest.subtotal attribute.
      Returns:
      the subtotal
    • getSubtotal

      public BigDecimal getSubtotal()
      Generated method - Getter of the ReturnRequest.subtotal attribute.
      Returns:
      the subtotal
    • setSubtotal

      public void setSubtotal(SessionContext ctx, BigDecimal value)
      Generated method - Setter of the ReturnRequest.subtotal attribute.
      Parameters:
      value - the subtotal
    • setSubtotal

      public void setSubtotal(BigDecimal value)
      Generated method - Setter of the ReturnRequest.subtotal attribute.
      Parameters:
      value - the subtotal
    • getTotalTax

      public BigDecimal getTotalTax(SessionContext ctx)
      Generated method - Getter of the ReturnRequest.totalTax attribute.
      Returns:
      the totalTax - Total tax value for the ReturnRequest.
    • getTotalTax

      public BigDecimal getTotalTax()
      Generated method - Getter of the ReturnRequest.totalTax attribute.
      Returns:
      the totalTax - Total tax value for the ReturnRequest.
    • setTotalTax

      public void setTotalTax(SessionContext ctx, BigDecimal value)
      Generated method - Setter of the ReturnRequest.totalTax attribute.
      Parameters:
      value - the totalTax - Total tax value for the ReturnRequest.
    • setTotalTax

      public void setTotalTax(BigDecimal value)
      Generated method - Setter of the ReturnRequest.totalTax attribute.
      Parameters:
      value - the totalTax - Total tax value for the ReturnRequest.