com.ibm.commerce.orderquotation.commands

Class GetUOMCodePolicyCmdImpl

  • All Implemented Interfaces:
    BusinessPolicyCommand, com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, GetUOMCodePolicyCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class GetUOMCodePolicyCmdImpl
    extends BusinessPolicyCommandImpl
    implements GetUOMCodePolicyCmd
    Maps the unit of measure code under the UN/CEFACT (United Nations Centre for Trade Facilitation and Electronic Business) standard, used by Websphere Commerce. It maps from/to the unit of measurement code under specified external standard.
    See Also:
    Serialized Form
    • Constructor Detail

      • GetUOMCodePolicyCmdImpl

        public GetUOMCodePolicyCmdImpl()
        Constructor for GetUOMCodePolicyCmdImpl
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        Execute the command.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - Raised with message _ERR_CREATE_EXCEPTION if there is a javax.ejb.CreateException, _ERR_FINDER_EXCEPTION if there is a javax.ejb.FinderException, _ERR_NAMING_EXCEPTION if there is a javax.naming.NamingException, _ERR_REMOTE_EXCEPTION if there is a java.rmi.RemoteException.
        EXSystemException - with message _ERR_QTYUNITMAP_RECORD_MISSING_FOR_WC_QTY if there is no QTYUNITMAP record for the mapping from WC units to the external standard, _ERR_QTYUNITMAP_RECORD_MISSING_FOR_EXTERNAL_QTY if there is no QTYUNITMAP record for the mapping from external units to WC units.
      • reset

        public void reset()
        Resets the command.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setUOMStandard

        public void setUOMStandard(java.lang.String theUOMStandard)
        (Optional) Set the external UOM standard.
        Specified by:
        setUOMStandard in interface GetUOMCodePolicyCmd
        Parameters:
        theUOMStandard - The external UOM standard.
      • setUOMCode

        public void setUOMCode(java.lang.String theUOMCode)
        Set the UOM code to be mapped.
        Specified by:
        setUOMCode in interface GetUOMCodePolicyCmd
        Parameters:
        theUOMCode - The UOM code to be mapped.
      • setMappingDirection

        public void setMappingDirection(boolean theMappingDirection)
        (Optional) Set the mapping direction. Default, if not specified, is true.
        Specified by:
        setMappingDirection in interface GetUOMCodePolicyCmd
        Parameters:
        theMappingDirection - true if the mapping is from WC to the external UOM standard; false if the mapping if from the external UOM standard to WC.
      • getMappedUOMCode

        public java.lang.String getMappedUOMCode()
        Get the mapped UOM code.
        Specified by:
        getMappedUOMCode in interface GetUOMCodePolicyCmd
        Returns:
        The mapped UOM code.