Class CheckOrderCopyCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, CheckOrderCopyCmd,,,,,,

    public class CheckOrderCopyCmdImpl
    extends TaskCommandImpl
    implements CheckOrderCopyCmd
    Default implementation of the CheckOrderCopyCmd task command interface.

    Checks that the Order has the correct status value when write access is required.

    This command uses the following AccessBean:
    See Also:
    Serialized Form
    • Field Detail


        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CheckOrderCopyCmdImpl

        public CheckOrderCopyCmdImpl()
        The default constructor.
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        Executes the main business logic of the command.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface
        performExecute in class AbstractECTargetableCommand
        ECApplicationException - write access was requested, but the Order status value is neither P nor E. The _ERR_ORDER_WRONG_STATUS message is passed, with message parameters of the Order identifier, its status value and the status value it should have. Exception data is also passed as the following name value pairs: (errorCode, 603), (orderId, the identifier of the Order).
        ECSystemException - an unexpected exception occurred. One of the following messages is passed: ECMessage._ERR_CREATE_EXCEPTION, ECMessage._ERR_FINDER_EXCEPTION, ECMessage._ERR_NAMING_EXCEPTION, ECMessage._ERR_REMOTE_EXCEPTION. The String representation of the exception is passed as a message parameter.
      • setAccessType

        public void setAccessType(int anAccessType)
        Sets the AccessType to be checked.
        Specified by:
        setAccessType in interface CheckOrderCopyCmd
        anAccessType - one of the following values:
      • READ_ACCESS - read-only access to the order.
      • WRITE_ACCESS - write access to the order.