public class SetWinnerCmdImpl extends TaskCommandImpl implements SetWinnerCmd
ApplyCalculationUsageCmdAuctionJDBCHelperAccessBeanAuctionAccessBeanBidAccessBeandefaultCommandClassName, NAME| Constructor and Description |
|---|
SetWinnerCmdImpl()
SetWinnerCmdImpl constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AuctionAccessBean |
getAuctionAccessBean()
Gets the auction access bean associated with the current auction reference number.
|
java.lang.Long |
getAuctionReferenceNumber()
Gets auction ID.
|
java.lang.Long |
getItemReferenceNumber()
Gets the 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)
Sets the auction access bean.
|
void |
setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
Sets the auction ID.
|
void |
setItemReferenceNumber(java.lang.Long newItemReferenceNumber)
Sets the item reference number.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameterspublic AuctionAccessBean getAuctionAccessBean()
public java.lang.Long getAuctionReferenceNumber()
public java.lang.Long getItemReferenceNumber()
public java.util.Vector getWinningBids()
getWinningBids in interface SetWinnerCmdpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - Raised with the following messages based on the corresponding error: _ERR_SQL_EXCEPTION,
_ERR_FINDER_EXCEPTION, _ERR_REMOTE_EXCEPTION, _ERR_NAMING_EXCEPTION, _ERR_CREATE_EXCEPTION.public void refundDeposit(java.lang.Long bidId,
java.math.BigDecimal amount)
throws ECException
bidId - The bid ID.amount - The amount to refund.ECException - This exception is allowed to percolate.public void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void setAuctionAccessBean(AuctionAccessBean newAuctionAccessBean)
setAuctionAccessBean in interface SetWinnerCmdnewAuctionAccessBean - The auction access bean.public void setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
setAuctionReferenceNumber in interface SetWinnerCmdnewAuctionReferenceNumber - The auction ID.public void setItemReferenceNumber(java.lang.Long newItemReferenceNumber)
setItemReferenceNumber in interface SetWinnerCmdnewItemReferenceNumber - The item reference number