java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.negotiation.commands.EvaluateSingleQuantityOpenCryBidCmdImpl
This task Evaluate Open Cry Single Item Bid. Access Bean used:
AuctionAccessBean
AutoBidAccessBean
BidAccessBean
ControlRuleAccessBean
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT Copyright statement. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.negotiation.commands. EvaluateSingleQuantityOpenCryBidCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
EvaluateSingleQuantityOpenCryBidCmdImpl() EvaluateSingleQuantityOpenCryBidCmdImpl default constructor. |
Method Summary | |
---|---|
protected
AutoBidAccessBean |
getAutoBid() Returns the new AutoBid object. |
protected
AutoBidAccessBean |
getBestAutoBid() Returns the Best Auto Bid object of current Auction. |
protected
BidAccessBean |
getBestBid() Returns the Best Bid object of current Auction. |
protected
BidAccessBean |
getBid() Returns the new Bid object. |
protected
java.lang.String |
getErrorTaskName() returns error task name that will be returned by the exceptions. |
BidAccessBean |
getRecentLostWinningBid() Returns the Bid object that was a winner before this evaluation. |
BidAccessBean |
getWinningBid() Returns the Bid object that results of the evaluation. |
boolean |
isBidEvaluated() Return if the new bid has been evaluated. |
void |
performExecute() Evaluate the 2 Bids, higher one becomes the winner. |
void |
reset() This resets the output properties to the values they had prior to calling the execute method, so that the get methods no longer work but the isReadyToCallExecute returns true. |
void |
setAuction(AuctionAccessBean auction) Sets the current auction Id value, |
void |
setAutoBid(AutoBidAccessBean abAutoBid) Sets the Best AutoBid object of current Auction. |
void |
setBestAutoBid(AutoBidAccessBean abBestAutoBid) Sets the Best Auto Bid object of current Auction. |
void |
setBestBid(BidAccessBean abBestBid) Sets the Best Bid object of current Auction. |
void |
setBid(BidAccessBean abBid) Sets the new Bid object. |
void |
setErrorTaskName(java.lang.String errorTaskName) Set error task name that will be returned by the exceptions. |
protected
void |
setRecentLostWinningBid(BidAccessBean abRecentLostWinningBid) Sets the Bid object that was a winner before this evaluation. |
protected
void |
setWinningBid(BidAccessBean abWinningBid) Sets the Bid object that results of the evaluation. |
void |
validateParameters() This is where parameter checking is done. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public EvaluateSingleQuantityOpenCryBidCmdImpl()
Method Detail |
---|
public void setAuction(AuctionAccessBean auction)
setAuction
in interface
EvaluateSingleQuantityOpenCryBidCmd
auction
- AuctionAccessBean - Auction beanprotected BidAccessBean getBid()
public void setBid(BidAccessBean abBid)
setBid
in interface
EvaluateSingleQuantityOpenCryBidCmd
abBid
- BidAccessBean - Bid object.protected AutoBidAccessBean getAutoBid()
public void setAutoBid(AutoBidAccessBean abAutoBid)
setAutoBid
in interface
EvaluateSingleQuantityOpenCryBidCmd
abAutoBid
- AutoBidAccessBean - AutoBid
object.protected BidAccessBean getBestBid()
public void setBestBid(BidAccessBean abBestBid)
setBestBid
in interface
EvaluateSingleQuantityOpenCryBidCmd
abBestBid
- BidAccessBeanprotected AutoBidAccessBean getBestAutoBid()
public void setBestAutoBid(AutoBidAccessBean abBestAutoBid)
setBestAutoBid
in interface
EvaluateSingleQuantityOpenCryBidCmd
abBestAutoBid
- AutoBidAccessBeanprotected java.lang.String getErrorTaskName()
public void setErrorTaskName(java.lang.String errorTaskName)
setErrorTaskName
in interface
EvaluateSingleQuantityOpenCryBidCmd
errorTaskName
- java.lang.Stringpublic boolean isBidEvaluated()
isBidEvaluated
in interface
EvaluateSingleQuantityOpenCryBidCmd
public BidAccessBean getWinningBid()
getWinningBid
in interface
EvaluateSingleQuantityOpenCryBidCmd
protected void setWinningBid(BidAccessBean abWinningBid)
public BidAccessBean getRecentLostWinningBid()
getRecentLostWinningBid
in interface
EvaluateSingleQuantityOpenCryBidCmd
protected void setRecentLostWinningBid(BidAccessBean abRecentLostWinningBid)
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
- is thrown if anything goes wrong.public void reset()
reset
in class
AbstractECTargetableCommand
public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException.
ECException