com.ibm.commerce.negotiation.commands
Class SetWinnerCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.negotiation.commands.SetWinnerCmdImpl
All Implemented Interfaces:
ECCommand, SetWinnerCmd, TaskCommand

public class SetWinnerCmdImpl
extends TaskCommandImpl
implements SetWinnerCmd

Set winner command implementation.


Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.negotiation.commands.SetWinnerCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
SetWinnerCmdImpl()
          SetWinnerCmdImpl constructor.
 
Method Summary
 AuctionAccessBean getAuctionAccessBean()
          Gets the auction access bean associated with the current auction reference number.
 java.lang.Long getAuctionReferenceNumber()
          Mutation method to get auction reference number.
 java.lang.Long getItemReferenceNumber()
          Mutation method to get item reference number.
 java.util.Vector getWinningBids()
          Fetches a list of the winning bids.
 void performExecute()
          Determines the winning bids.
 void refundDeposit(java.lang.Long bidId, java.math.BigDecimal amount)
          Refunds the auction deposit for the incoming bid.
 void reset()
          Method initializes/resets the command.
 void setAuctionAccessBean(AuctionAccessBean newAuctionAccessBean)
          Mutation method sets the auction access bean.
 void setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
          Mutation method to set auction reference number.
 void setItemReferenceNumber(java.lang.Long newItemReferenceNumber)
          Mutation method to set item reference number.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Constructor Detail

SetWinnerCmdImpl

public SetWinnerCmdImpl()
SetWinnerCmdImpl constructor.
Method Detail

getAuctionAccessBean

public AuctionAccessBean getAuctionAccessBean()
                                       throws javax.ejb.FinderException,
                                              java.rmi.RemoteException,
                                              javax.naming.NamingException,
                                              javax.ejb.CreateException
Gets the auction access bean associated with the current auction reference number.
Returns:
com.ibm.commerce.negotiation.objects.AuctionAccessBean
Throws:
javax.ejb.FinderException - if thrown by the EJB.
java.rmi.RemoteException - if thrown by the EJB.
javax.naming.NamingException - if thrown by the EJB.
javax.ejb.CreateException - if thrown by the EJB.

getAuctionReferenceNumber

public java.lang.Long getAuctionReferenceNumber()
Mutation method to get auction reference number.
Returns:
java.lang.Integer

getItemReferenceNumber

public java.lang.Long getItemReferenceNumber()
Mutation method to get item reference number.
Returns:
java.lang.Integer

getWinningBids

public java.util.Vector getWinningBids()
Fetches a list of the winning bids.
Specified by:
getWinningBids in interface SetWinnerCmd
Returns:
java.util.Vector

performExecute

public void performExecute()
                    throws ECException
Determines the winning bids.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

refundDeposit

public void refundDeposit(java.lang.Long bidId,
                          java.math.BigDecimal amount)
                   throws ECException,
                          java.rmi.RemoteException,
                          javax.ejb.FinderException,
                          javax.naming.NamingException,
                          javax.ejb.CreateException
Refunds the auction deposit for the incoming bid.
Parameters:
bidId - java.lang.Long
amount - java.math.BigDecimal

reset

public void reset()
Method initializes/resets the command.
Overrides:
reset in class AbstractECCommand

setAuctionAccessBean

public void setAuctionAccessBean(AuctionAccessBean newAuctionAccessBean)
                          throws javax.ejb.FinderException,
                                 java.rmi.RemoteException,
                                 javax.naming.NamingException,
                                 javax.ejb.CreateException
Mutation method sets the auction access bean.
Specified by:
setAuctionAccessBean in interface SetWinnerCmd
Parameters:
newAuctionAccessBean - com.ibm.commerce.negotiation.objects.AuctionAccessBean
Throws:
javax.ejb.FinderException - if thrown by the EJB.
java.rmi.RemoteException - if thrown by the EJB.
javax.naming.NamingException - if thrown by the EJB.
javax.ejb.CreateException - if thrown by the EJB.

setAuctionReferenceNumber

public void setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
                               throws javax.ejb.FinderException,
                                      java.rmi.RemoteException,
                                      javax.naming.NamingException,
                                      javax.ejb.CreateException
Mutation method to set auction reference number.
Specified by:
setAuctionReferenceNumber in interface SetWinnerCmd
Parameters:
newAuctionReferenceNumber - java.lang.Integer

setItemReferenceNumber

public void setItemReferenceNumber(java.lang.Long newItemReferenceNumber)
Mutation method to set item reference number.
Specified by:
setItemReferenceNumber in interface SetWinnerCmd
Parameters:
newItemReferenceNumber - java.lang.Integer