com.ibm.commerce.inventory.scheduled.commands

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
        Returns:
        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 com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        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 com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
        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 com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setStoreId

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