com.ibm.commerce.negotiation.commands

Class StartAuctionCmdImpl

    • Constructor Detail

      • StartAuctionCmdImpl

        public StartAuctionCmdImpl()
        StartAuctionCmdImpl constructor.
    • Method Detail

      • fetchBidReferenceCode

        public java.lang.String fetchBidReferenceCode()
        Deprecated. Bid reference number can be got from auction AccessBean by using method getAuctionAccessBean().
        This method is deprecated and returns null.
        Returns:
        null
      • getAuctionAccessBean

        public AuctionAccessBean getAuctionAccessBean()
        Retrieves the access bean corresponding to the auction ID.
        Returns:
        The auction access bean.
      • getAuctionReferenceNumber

        public java.lang.Long getAuctionReferenceNumber()
        Gets the auction ID.
        Returns:
        The auction ID.
      • performExecute

        public void performExecute()
                            throws ECException
        Starts auctions and turns auction status from future into current
        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_BAD_MISSING_CMD_PARAMETER if a parameter is missing, _ERR_INVALID_AUCTION_STATUS if the auction is not in the future status.
      • setAuctionReferenceNumber

        public void setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
                                       throws java.lang.NullPointerException,
                                              java.lang.NumberFormatException
        Sets the auction ID.
        Specified by:
        setAuctionReferenceNumber in interface StartAuctionCmd
        Parameters:
        newAuctionReferenceNumber - The auction ID.
        Throws:
        java.lang.NullPointerException - exception.
        java.lang.NumberFormatException - exception.