|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.negotiation.commands.CalculateBestBidCmdImpl
Calculates the Highest Winning Bid and Lowest Winning Bid (aka Best Bid).
Field Summary | |
static java.lang.String |
COPYRIGHT
|
Fields inherited from interface com.ibm.commerce.negotiation.commands.CalculateBestBidCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
CalculateBestBidCmdImpl()
CalculateBestBidCmdImpl default constructor. |
Method Summary | |
java.lang.Long |
getHighestWinningBid()
Gets the highest winning bid id for the specified auction. |
java.lang.Long |
getLowestWinningBid()
Gets the lowest winning bid (a.k.a Best Bid) id for the specified auction |
protected void |
handleException(java.lang.Exception e)
Formats an ECException based on the input exception value. |
boolean |
isReadyToCallExecute()
Verifies that the this command is ready to be executed. |
void |
performExecute()
Determines the current highest and lowest winning bids for the specified auction. |
void |
reset()
Resets this command to allow for future reuse. |
void |
setActiveBids(java.util.Vector bids)
Sets the list of active bids to be processed. |
void |
setAuctionId(java.lang.Long id)
Sets the current auction Id value, |
void |
setErrorTaskName(java.lang.String errorTaskName)
Set error task name that will be returned by the exceptions. |
void |
setQuantityOnAuction(java.lang.Double quantity)
Set the quantity available for auction. |
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 |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public CalculateBestBidCmdImpl()
Method Detail |
public java.lang.Long getHighestWinningBid()
getHighestWinningBid
in interface CalculateBestBidCmd
public java.lang.Long getLowestWinningBid()
getLowestWinningBid
in interface CalculateBestBidCmd
protected void handleException(java.lang.Exception e) throws ECException
e
- Exception - The exception instance to be formatted.com.ibm.commerce.command.CommandException
- - could be one of many diffrenet exceptions:
ECApplicationException. RemoteException, NullPointerException,
CreateException, FinderException, or NamingException.public boolean isReadyToCallExecute()
public void performExecute() throws ECException
performExecute
in interface ECCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void reset()
public void setActiveBids(java.util.Vector bids)
setActiveBids
in interface CalculateBestBidCmd
bids
- Vector - Active bids listpublic void setAuctionId(java.lang.Long id)
setAuctionId
in interface CalculateBestBidCmd
id
- Long - Auction Idpublic void setErrorTaskName(java.lang.String errorTaskName)
setErrorTaskName
in interface CalculateBestBidCmd
errorTaskName
- java.lang.Stringpublic void setQuantityOnAuction(java.lang.Double quantity)
setQuantityOnAuction
in interface CalculateBestBidCmd
quantity
- Double - Quantity available for auction.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |