Class GetUOMCodePolicyCmdImpl

  • All Implemented Interfaces:
    BusinessPolicyCommand,, ECCommand, ECTargetableCommand, TaskCommand, GetUOMCodePolicyCmd,,,,,,

    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
        performExecute in class AbstractECTargetableCommand
        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
        reset in class AbstractECTargetableCommand
      • setUOMStandard

        public void setUOMStandard(java.lang.String theUOMStandard)
        (Optional) Set the external UOM standard.
        Specified by:
        setUOMStandard in interface GetUOMCodePolicyCmd
        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
        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
        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
        The mapped UOM code.