com.ibm.commerce.order.history

Class HistoryCalculationAdjustment

  • java.lang.Object
    • com.ibm.commerce.order.history.HistoryCalculationAdjustment
  • All Implemented Interfaces:
    XMLRecordable


    public class HistoryCalculationAdjustment
    extends java.lang.Object
    implements XMLRecordable
    This class is used to track order history adjustment information. It can be used to get the XML element from an com.ibm.commerce.order.objects.CalculationAdjustmentAccessBean or get HistoryCalculationAdjustment from the XML.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      The IBM copyright string.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String fieldsToXML()
      This method converts only this object's fields into an XML format representation.
      java.math.BigDecimal getBaseCost()
      This method returns the base cost of the calculation adjustment.
      java.lang.Long getCalculationAdjustmentId()
      This method returns the calculation adjustment id of calculation adjustment.
      java.lang.Integer getCalculationUsageId()
      This method returns the calculation usage id of calculation adjustment.
      java.lang.Integer getField1()
      This method returns the field1 of the calculation adjustment.
      java.lang.String getField2()
      This method returns the field2 of the calculation adjustment.
      java.lang.Long getOrderId()
      This method returns the order id related to the calculation adjustment.
      java.math.BigDecimal getParameterAmount()
      This method returns the parameterAmount of the calculation adjustment.
      java.lang.Integer getParameterType()
      This method returns the parameterType of the calculation adjustment.
      java.lang.Long getServiceRepresentativeId()
      This method returns the serviceRepresentative Id of the calculation adjustment.
      java.lang.Integer getShippingModeId()
      This method returns the shippingMode Id of the calculation adjustment.
      void refresh()
      This methods synchronizes this object with com.ibm.commerce.order.objects.CalculationAdjustmentAccessBean.
      void setBaseCost(java.math.BigDecimal newBaseCost)
      This method sets the base cost of the calculation adjustment.
      void setCalculationAdjustment(CalculationAdjustmentAccessBean abCalculationAdjustment)
      This method sets the com.ibm.commerce.order.objects.CalculationAdjustmentAccessBean.
      void setCalculationAdjustmentId(java.lang.Long newCalculationAdjustmentId)
      This method sets the calculation adjustment id of calculation adjustment.
      void setCalculationUsageId(java.lang.Integer newCalculationUsageId)
      This method sets the calculation usage id of calculation adjustment.
      void setField1(java.lang.Integer newFild1)
      This method sets the field1 of calculation adjustment.
      void setField2(java.lang.String newFild2)
      This method sets the field2 of calculation adjustment.
      void setOrderId(java.lang.Long newOrderId)
      This method sets the order Id of calculation adjustment.
      void setParameterAmount(java.math.BigDecimal newParameterAmount)
      This method sets the parameterAmount of calculation adjustment.
      void setParameterType(java.lang.Integer newParameterType)
      This method sets the parameterType of calculation adjustment.
      void setServiceRepresentativeId(java.lang.Long newServiceRepresentativeId)
      This method sets the service representative id of calculation adjustment.
      void setShippingModeId(java.lang.Integer newShippingModeId)
      This method sets the shipping mode id of calculation adjustment.
      XMLRecordable toFields(org.w3c.dom.Node xmlNode)
      This methods transforms an XML node into a real Object's fields
      XMLRecordable toObject(org.w3c.dom.Node xmlNode)
      This method transforms an XML node into a real Object.
      java.lang.String toXML()
      This methods converts this object into an XML format representation.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

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

      • HistoryCalculationAdjustment

        public HistoryCalculationAdjustment()
    • Method Detail

      • toXML

        public java.lang.String toXML()
        This methods converts this object into an XML format representation.
        Specified by:
        toXML in interface XMLRecordable
        Returns:
        the an XML string represents this object.
        See Also:
        XMLRecordable.toXML()
      • fieldsToXML

        public java.lang.String fieldsToXML()
        This method converts only this object's fields into an XML format representation.
        Specified by:
        fieldsToXML in interface XMLRecordable
        Returns:
        an XML string just represents this objects's fields.
        See Also:
        XMLRecordable.fieldsToXML()
      • getCalculationAdjustmentId

        public java.lang.Long getCalculationAdjustmentId()
        This method returns the calculation adjustment id of calculation adjustment.
        Returns:
        calculation adjustment Id of calculation adjustment.
      • getCalculationUsageId

        public java.lang.Integer getCalculationUsageId()
        This method returns the calculation usage id of calculation adjustment.
        Returns:
        calculation usage Id.
      • getField1

        public java.lang.Integer getField1()
        This method returns the field1 of the calculation adjustment.
        Returns:
        field1 of the calculation adjustment.
      • getField2

        public java.lang.String getField2()
        This method returns the field2 of the calculation adjustment.
        Returns:
        field2 of the calculation adjustment.
      • getOrderId

        public java.lang.Long getOrderId()
        This method returns the order id related to the calculation adjustment.
        Returns:
        orderId of the calculation adjustment.
      • getParameterAmount

        public java.math.BigDecimal getParameterAmount()
        This method returns the parameterAmount of the calculation adjustment.
        Returns:
        parameterAmount of the calculation adjustment.
      • getParameterType

        public java.lang.Integer getParameterType()
        This method returns the parameterType of the calculation adjustment.
        Returns:
        parameterType of the calculation adjustment.
      • getServiceRepresentativeId

        public java.lang.Long getServiceRepresentativeId()
        This method returns the serviceRepresentative Id of the calculation adjustment.
        Returns:
        serviceRepresentative Id of the calculation adjustment.
      • getShippingModeId

        public java.lang.Integer getShippingModeId()
        This method returns the shippingMode Id of the calculation adjustment.
        Returns:
        shippingMode Id of the calculation adjustment.
      • setCalculationAdjustmentId

        public void setCalculationAdjustmentId(java.lang.Long newCalculationAdjustmentId)
        This method sets the calculation adjustment id of calculation adjustment.
        Parameters:
        newCalculationAdjustmentId - the calculation adjustment id of calculation adjustment.
      • setCalculationUsageId

        public void setCalculationUsageId(java.lang.Integer newCalculationUsageId)
        This method sets the calculation usage id of calculation adjustment.
        Parameters:
        newCalculationUsageId - the calculation usage id of calculation adjustment.
      • setField1

        public void setField1(java.lang.Integer newFild1)
        This method sets the field1 of calculation adjustment.
        Parameters:
        newFild1 - the field1 of calculation adjustment.
      • setField2

        public void setField2(java.lang.String newFild2)
        This method sets the field2 of calculation adjustment.
        Parameters:
        newFild2 - the field2 of calculation adjustment.
      • setOrderId

        public void setOrderId(java.lang.Long newOrderId)
        This method sets the order Id of calculation adjustment.
        Parameters:
        newOrderId - the order Id of calculation adjustment.
      • setParameterAmount

        public void setParameterAmount(java.math.BigDecimal newParameterAmount)
        This method sets the parameterAmount of calculation adjustment.
        Parameters:
        newParameterAmount - the parameterAmount of calculation adjustment.
      • setParameterType

        public void setParameterType(java.lang.Integer newParameterType)
        This method sets the parameterType of calculation adjustment.
        Parameters:
        newParameterType - the parameterType of calculation adjustment.
      • setServiceRepresentativeId

        public void setServiceRepresentativeId(java.lang.Long newServiceRepresentativeId)
        This method sets the service representative id of calculation adjustment.
        Parameters:
        newServiceRepresentativeId - the service representative id of calculation adjustment.
      • setShippingModeId

        public void setShippingModeId(java.lang.Integer newShippingModeId)
        This method sets the shipping mode id of calculation adjustment.
        Parameters:
        newShippingModeId - the shipping mode id of calculation adjustment.
      • getBaseCost

        public java.math.BigDecimal getBaseCost()
        This method returns the base cost of the calculation adjustment.
        Returns:
        baseCost base cost of the calculation adjustment.
      • setBaseCost

        public void setBaseCost(java.math.BigDecimal newBaseCost)
        This method sets the base cost of the calculation adjustment.
        Parameters:
        newBaseCost - base cost of the calculation adjustment.
      • toFields

        public XMLRecordable toFields(org.w3c.dom.Node xmlNode)
        This methods transforms an XML node into a real Object's fields
        Specified by:
        toFields in interface XMLRecordable
        Parameters:
        xmlNode - the XML node contains the fields to be converted.
        Returns:
        the object whose fields from the XML node passed in.
        See Also:
        XMLRecordable.toFields(org.w3c.dom.Node)
      • setCalculationAdjustment

        public void setCalculationAdjustment(CalculationAdjustmentAccessBean abCalculationAdjustment)
                                      throws ECException
        This method sets the com.ibm.commerce.order.objects.CalculationAdjustmentAccessBean.
        Parameters:
        abCalculationAdjustment - the CalculationAdjustmentAccessBean
        Throws:
        ECException
      • refresh

        public void refresh()
                     throws ECException
        This methods synchronizes this object with com.ibm.commerce.order.objects.CalculationAdjustmentAccessBean.
        Throws:
        ECException