public class SetWinnerCmdImpl extends TaskCommandImpl implements SetWinnerCmd
ApplyCalculationUsageCmd
AuctionJDBCHelperAccessBean
AuctionAccessBean
BidAccessBean
defaultCommandClassName, 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, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public AuctionAccessBean getAuctionAccessBean()
public java.lang.Long getAuctionReferenceNumber()
public java.lang.Long getItemReferenceNumber()
public java.util.Vector getWinningBids()
getWinningBids
in interface SetWinnerCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- 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.Command
reset
in class AbstractECTargetableCommand
public void setAuctionAccessBean(AuctionAccessBean newAuctionAccessBean)
setAuctionAccessBean
in interface SetWinnerCmd
newAuctionAccessBean
- The auction access bean.public void setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
setAuctionReferenceNumber
in interface SetWinnerCmd
newAuctionReferenceNumber
- The auction ID.public void setItemReferenceNumber(java.lang.Long newItemReferenceNumber)
setItemReferenceNumber
in interface SetWinnerCmd
newItemReferenceNumber
- The item reference number