com.ibm.commerce.ordermanagement.beans

Class RMAItemDataBean

  • All Implemented Interfaces:
    DataBean, InputDataBean, SmartDataBean, com.ibm.commerce.ordermanagement.beans.RMAItemInputDataBean, com.ibm.commerce.ordermanagement.beans.RMAItemSmartDataBean, Delegator, java.io.Serializable


    public class RMAItemDataBean
    extends com.ibm.commerce.ordermanagement.beansrc.RMAItemDataBeanBase
    implements com.ibm.commerce.ordermanagement.beans.RMAItemInputDataBean, com.ibm.commerce.ordermanagement.beans.RMAItemSmartDataBean
    This data bean represents a RMAItem.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The internal copyright field
        See Also:
        Constant Field Values
    • Constructor Detail

      • RMAItemDataBean

        public RMAItemDataBean()
        OrderDataBean constructor comment.
      • RMAItemDataBean

        public RMAItemDataBean(RMAItemAccessBean aabRMAItem)
        Constructs an RMAItemDataBean from an RMAItemAccessBean by extracting the RMAItem EJB reference from the RMAItemAccessBean.
        Parameters:
        aabRMAItem - RMAItemAccessBean
        Throws:
        java.lang.Exception
    • Method Detail

      • getCatalogEntryDataBean

        public CatalogEntryDataBean getCatalogEntryDataBean()
        This method returns the catalog entry associated to this rma item
        Specified by:
        getCatalogEntryDataBean in interface com.ibm.commerce.ordermanagement.beans.RMAItemSmartDataBean
        Returns:
        the catalog entry
      • getComponentId

        public java.lang.String getComponentId()
        This method returns the rma item component id associated to this rma item
        Returns:
        the rma item component id
      • getOrderItemDataBean

        public OrderItemDataBean getOrderItemDataBean()
        This method returns the order item associated to this rma item
        Returns:
        the order item
      • setCommandContext

        public void setCommandContext(CommandContext context)
        This method sets the cached copy of the commandContext property.
        Specified by:
        setCommandContext in interface SmartDataBean
        Parameters:
        context - the command context
      • getCommandContext

        public CommandContext getCommandContext()
        This method returns the cached copy of the commandContext property
        Specified by:
        getCommandContext in interface SmartDataBean
        Returns:
        the command context
      • getFormattedQuantity

        public java.lang.String getFormattedQuantity()
        This method returns the quantity formatted as a string with decimal separator only shown if there is a fractional portion
        Specified by:
        getFormattedQuantity in interface com.ibm.commerce.ordermanagement.beans.RMAItemSmartDataBean
        Returns:
        String representing the quantity
      • getNumberOfOrderSerialNumbers

        public int getNumberOfOrderSerialNumbers()
        This method returns the count of all order serial numbers data beans associated to this rma item and it's components
        Specified by:
        getNumberOfOrderSerialNumbers in interface com.ibm.commerce.ordermanagement.beans.RMAItemSmartDataBean
        Returns:
        the number of serial numbers data beans
      • getNumberOfRmaSerialNumbers

        public int getNumberOfRmaSerialNumbers()
        This method returns the count of all rma serial numbers data beans associated to this rma item and it's components
        Specified by:
        getNumberOfRmaSerialNumbers in interface com.ibm.commerce.ordermanagement.beans.RMAItemSmartDataBean
        Returns:
        the number of serial numbers data beans
      • getOrderSerialNumbersDataBeans

        public com.ibm.commerce.fulfillment.beans.OrderSerialNumbersDataBean[] getOrderSerialNumbersDataBeans()
        This method returns all rma serial numbers data beans associated to this rma item and it's components
        Specified by:
        getOrderSerialNumbersDataBeans in interface com.ibm.commerce.ordermanagement.beans.RMAItemSmartDataBean
        Returns:
        the list of serial numbers data beans
      • getReasonCode

        public java.lang.String getReasonCode()
        This method returns the reasonCode property
        Specified by:
        getReasonCode in interface com.ibm.commerce.ordermanagement.beans.RMAItemSmartDataBean
        Returns:
        the rma item reason code
      • getReturnReasonDataBean

        public ReturnReasonDataBean getReturnReasonDataBean()
        This method returns the return reason data bean associated to this rma item
        Specified by:
        getReturnReasonDataBean in interface com.ibm.commerce.ordermanagement.beans.RMAItemSmartDataBean
        Returns:
        the return reason data bean
      • getRmaDataBean

        public RMADataBean getRmaDataBean()
        This method returns the rma data bean associated to this rma item
        Specified by:
        getRmaDataBean in interface com.ibm.commerce.ordermanagement.beans.RMAItemSmartDataBean
        Returns:
        the rma data bean
      • setRmaItemId

        public void setRmaItemId(java.lang.String rmaItemId)
        This method sets the rmaItemId property for this data bean
        Specified by:
        setRmaItemId in interface com.ibm.commerce.ordermanagement.beans.RMAItemInputDataBean
        Overrides:
        setRmaItemId in class RMAItemAccessBean
        Parameters:
        rmaItemId - the rma item id
      • getRmaItemId

        public java.lang.String getRmaItemId()
        This method returns the rmaItemId property
        Specified by:
        getRmaItemId in interface com.ibm.commerce.ordermanagement.beans.RMAItemSmartDataBean
        Overrides:
        getRmaItemId in class RMAItemAccessBean
        Returns:
        the rma item id
      • getRmaSerialNumbersDataBeans

        public com.ibm.commerce.ordermanagement.beans.RMASerialNumbersDataBean[] getRmaSerialNumbersDataBeans()
        This method returns all rma serial numbers data beans associated to this rma item and it's components
        Specified by:
        getRmaSerialNumbersDataBeans in interface com.ibm.commerce.ordermanagement.beans.RMAItemSmartDataBean
        Returns:
        the list of serial numbers data beans
      • getRmaSerialNumbersDataBeansForRMAItem

        public com.ibm.commerce.ordermanagement.beans.RMASerialNumbersDataBean[] getRmaSerialNumbersDataBeansForRMAItem()
        This method returns all rma serial numbers data beans associated to this rma item. SNs related to it's components are filtered out
        Returns:
        the list of serial numbers data beans
      • getRmaSerialNumbersDataBeansForComponent

        public com.ibm.commerce.ordermanagement.beans.RMASerialNumbersDataBean[] getRmaSerialNumbersDataBeansForComponent()
        This method returns all rma serial numbers data beans associated to this rma item component. SNs related to rma item are filtered out.
        Returns:
        the list of serial numbers data beans
      • getShortDescription

        public java.lang.String getShortDescription()
        This method returns the rma item short description associated to its catalog entry
        Specified by:
        getShortDescription in interface com.ibm.commerce.ordermanagement.beans.RMAItemSmartDataBean
        Returns:
        the rma item short description
      • populate

        public void populate()
                      throws java.lang.Exception
        This method is used to populate the RMAItemDataBean. You must set the RmaItemId using the setRmaItemId method before running the populate() method.
        Specified by:
        populate in interface SmartDataBean
        Throws:
        java.lang.Exception
        ECApplicationException
        See Also:
        setRmaItemId(String)