Class CheckReleaseToFulfillmentCmdImpl

    • Constructor Detail

      • CheckReleaseToFulfillmentCmdImpl

        public CheckReleaseToFulfillmentCmdImpl()
        This is the class constructor.
    • Method Detail

      • checkProcessingNeeded

        public boolean checkProcessingNeeded()
        This returns the boolean ibIsThereWork.
        Specified by:
        checkProcessingNeeded in interface CheckForWorkCmd
        True indicates that there is work to do, otherwise False indicating that there is no work to do.
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Determines if store id has been set.
        Specified by:
        isReadyToCallExecute in interface
        isReadyToCallExecute in class AbstractECTargetableCommand
        true store id has been set, otherwise return false.
      • performExecute

        public void performExecute()
                            throws ECException
        Call the Order query to see if there are orders to release. If there are then set a flag to indicate that there is work to do.

        This method will set ibIsThereWork to true if there are orders to release, otherwise set to false.

        This command calls the following AccessBean:

        • OrderJDBCHelperAccessBean

        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface
        performExecute in class AbstractECTargetableCommand
        ECSystemException - when receive java.sql.SQLException
        ECSystemException - when receive javax.ejb.CreateException
        ECSystemException - when receive javax.naming.NamingException
        ECSystemException - when receive java.rmi.RemoteException
      • reset

        public void reset()
        Resets instance variables inStoreToCheck to null and ibIsThereWork to false
        Specified by:
        reset in interface
        reset in class AbstractECTargetableCommand
      • setStoreId

        public void setStoreId(java.lang.Integer argStoreToCheck)
        Set the store id.
        Specified by:
        setStoreId in interface CheckForWorkCmd
        argStoreToCheck - sets store id to check