java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.negotiation.commands.AuctionTaskBaseCmdImpl | +--com.ibm.commerce.negotiation.commands.ModifyAuctionTaskCmdImpl
Modify Auction command. This command will update an existing auction. This command calls the following TaskCommands:
This command uses the following AccessBeans:AuctionAccessBean
AutoBidAccessBean
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT Copyright statement. |
protected
java.util.Hashtable |
dirtyFlags Hashtable of values for verification. |
Fields inherited from class com.ibm.commerce.negotiation.commands. AuctionTaskBaseCmdImpl |
auctionAccessBean,
auctionReferenceNumber,
auctionType,
bidRuleExist,
bidRuleId,
closeType,
currency,
currentAskPrice,
currentAvailableQuantity,
currentTimeStamp,
deposit,
durationDays,
durationTimeStamp,
endTime,
fulfillmentCenterId,
languageId,
longDescriptions,
ownerId,
pricingRuleType,
productDisplayPage,
productId,
quantity,
reservationId,
reservePrice,
ruleDisplayPage,
shortDescriptions,
startPrice,
startTime,
status |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.negotiation.commands. ModifyAuctionTaskCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.negotiation.commands. AuctionTaskBaseCmd |
AUCTION_BASE_TIMESTAMP |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
ModifyAuctionTaskCmdImpl() CreateAuctionCmdImpl1 constructor comment. |
Method Summary | |
---|---|
java.lang.Long |
getBidRuleId() Gets the bid rule identifier. |
int |
getCloseType() Gets the way auction will be closed. |
java.math.BigDecimal |
getCurrentAskPrice() Gets the current ask price. |
java.lang.Double |
getCurrentAvailableQuantity() Gets the current available quantity. |
java.math.BigDecimal |
getDeposit() Gets the deposit amount. |
java.lang.Integer |
getDurationDays() Gets the duration days. |
protected
java.sql.Timestamp |
getDurationTimeStamp() Gets the duration timestamp. |
java.sql.Timestamp |
getEndTime() Gets the auction end time. |
java.lang.String |
getPricingRuleType() Gets the pricing rule type. |
java.lang.String |
getProductDisplayPage() Gets the product display page. |
java.lang.Double |
getQuantity() Gets the quantity. |
java.math.BigDecimal |
getReservePrice() Gets the reserve price. |
java.lang.String |
getRuleDisplayPage() Gets the rule display page. |
java.math.BigDecimal |
getStartPrice() Gets the start price. |
java.sql.Timestamp |
getStartTime() Gets the auction start time. |
boolean |
isDirty(java.lang.String field) Check if a field has been updated. |
boolean |
isReadyToCallExecute() Determine if the command can be run. |
void |
performExecute() Update auction. |
void |
setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber) Sets Auction Reference Number |
void |
setBidRuleId(java.lang.Long br_id) Sets the bid rule id. |
void |
setCloseType(int aType) Sets the close type. |
void |
setCurrentAskPrice(java.math.BigDecimal aPrice) Sets current ask price for dutch auction. |
void |
setDeposit(java.math.BigDecimal amount) Sets the deposit. |
void |
setDurationDays(java.lang.Integer days) Stores the incoming value for the day duration. |
void |
setDurationTime(java.lang.Integer hours,
java.lang.Integer minutes) Set up the duration timestamp based on hours and minutes. |
void |
setDurationTimestamp(java.sql.Timestamp newDurationTimeStamp) Sets duration timestamp |
void |
setEndTime(java.sql.Timestamp newEndTimeStamp) Sets auction end date timestamp. |
void |
setPricingRuleType(java.lang.String s) Sets the pricing rule type. |
void |
setProductDisplayPage(java.lang.String s) Sets the product display page. |
void |
setQuantity(java.lang.Double q) Sets auction quantity. |
void |
setReservePrice(java.math.BigDecimal aPrice) Sets the reserved price. |
void |
setRuleDisplayPage(java.lang.String s) Sets the rule display page. |
void |
setStartPrice(java.math.BigDecimal newStartPrice) Sets the auction starting price. |
void |
setStartTime(java.sql.Timestamp s) Sets the auction start time. |
void |
validateParameters() Validate auction paramters. |
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,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Methods inherited from interface com.ibm.commerce.negotiation.commands. AuctionTaskBaseCmd |
getAuction,
setFulfillmentCenterId,
setLongDescription,
setReservationId,
setShortDescription |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected java.util.Hashtable dirtyFlags
Constructor Detail |
---|
public ModifyAuctionTaskCmdImpl()
Method Detail |
---|
public java.lang.Long getBidRuleId()
getBidRuleId
in class
AuctionTaskBaseCmdImpl
public int getCloseType()
getCloseType
in class
AuctionTaskBaseCmdImpl
public java.math.BigDecimal getCurrentAskPrice()
getCurrentAskPrice
in class
AuctionTaskBaseCmdImpl
public java.lang.Double getCurrentAvailableQuantity()
getCurrentAvailableQuantity
in class
AuctionTaskBaseCmdImpl
public java.math.BigDecimal getDeposit()
getDeposit
in class
AuctionTaskBaseCmdImpl
public java.lang.Integer getDurationDays()
getDurationDays
in class
AuctionTaskBaseCmdImpl
protected java.sql.Timestamp getDurationTimeStamp()
getDurationTimeStamp
in class
AuctionTaskBaseCmdImpl
public java.sql.Timestamp getEndTime()
getEndTime
in class
AuctionTaskBaseCmdImpl
public java.lang.String getPricingRuleType()
getPricingRuleType
in class
AuctionTaskBaseCmdImpl
public java.lang.String getProductDisplayPage()
getProductDisplayPage
in class
AuctionTaskBaseCmdImpl
public java.lang.Double getQuantity()
getQuantity
in class
AuctionTaskBaseCmdImpl
public java.math.BigDecimal getReservePrice()
getReservePrice
in class
AuctionTaskBaseCmdImpl
public java.lang.String getRuleDisplayPage()
getRuleDisplayPage
in class
AuctionTaskBaseCmdImpl
public java.math.BigDecimal getStartPrice()
getStartPrice
in class
AuctionTaskBaseCmdImpl
public java.sql.Timestamp getStartTime()
getStartTime
in class
AuctionTaskBaseCmdImpl
public boolean isDirty(java.lang.String field)
field
- The field to be checked.public boolean isReadyToCallExecute()
isReadyToCallExecute
in class
AuctionTaskBaseCmdImpl
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AuctionTaskBaseCmdImpl
ECException
- if EJB related errors are encountered.public void setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber) throws ECApplicationException, ECSystemException
setAuctionReferenceNumber
in interface
ModifyAuctionTaskCmd
newAuctionReferenceNumber
- The auction reference number.
ECApplicationException
- if an invalid reference number is
specified.
ECSystemException
- if any other error is
encountered.public void setBidRuleId(java.lang.Long br_id) throws ECException
setBidRuleId
in interface
AuctionTaskBaseCmd
setBidRuleId
in class
AuctionTaskBaseCmdImpl
br_id
- The bid rule id.ECException
- if any problems are encountered.public void setCloseType(int aType) throws ECException
setCloseType
in interface
AuctionTaskBaseCmd
setCloseType
in class
AuctionTaskBaseCmdImpl
aType
- The close type.ECException
- if any problems are encountered.public void setCurrentAskPrice(java.math.BigDecimal aPrice) throws ECException
setCurrentAskPrice
in interface
AuctionTaskBaseCmd
setCurrentAskPrice
in class
AuctionTaskBaseCmdImpl
aPrice
-ECException
- if any problems are encountered.public void setDeposit(java.math.BigDecimal amount) throws ECException
setDeposit
in interface
AuctionTaskBaseCmd
setDeposit
in class
AuctionTaskBaseCmdImpl
amount
- The deposit amount.ECException
- if any problems are encountered.public void setDurationDays(java.lang.Integer days)
setDurationDays
in interface
AuctionTaskBaseCmd
setDurationDays
in class
AuctionTaskBaseCmdImpl
days
- The duration days.public void setDurationTime(java.lang.Integer hours, java.lang.Integer minutes)
setDurationTime
in interface
AuctionTaskBaseCmd
setDurationTime
in class
AuctionTaskBaseCmdImpl
hours
- The duration hours.minutes
- The duration minutes.public void setDurationTimestamp(java.sql.Timestamp newDurationTimeStamp) throws ECApplicationException
setDurationTimestamp
in interface
AuctionTaskBaseCmd
setDurationTimestamp
in class
AuctionTaskBaseCmdImpl
newDurationTimeStamp
- The duration timestamp.
ECApplicationException
- if any problems are
encountered.public void setEndTime(java.sql.Timestamp newEndTimeStamp) throws ECApplicationException
setEndTime
in interface
AuctionTaskBaseCmd
setEndTime
in class
AuctionTaskBaseCmdImpl
newEndTimeStamp
- The auction end timestamp.
ECApplicationException
- if any problems are
encountered.public void setPricingRuleType(java.lang.String s) throws ECException
setPricingRuleType
in interface
AuctionTaskBaseCmd
setPricingRuleType
in class
AuctionTaskBaseCmdImpl
s
- The pricing rule type.ECException
- if any problems are encountered.public void setProductDisplayPage(java.lang.String s) throws ECException
setProductDisplayPage
in interface
AuctionTaskBaseCmd
setProductDisplayPage
in class
AuctionTaskBaseCmdImpl
s
- The product display page.ECException
- if any problems are encountered.public void setQuantity(java.lang.Double q)
setQuantity
in interface
AuctionTaskBaseCmd
setQuantity
in class
AuctionTaskBaseCmdImpl
q
- The auction quantity.public void setReservePrice(java.math.BigDecimal aPrice) throws ECException
setReservePrice
in interface
AuctionTaskBaseCmd
setReservePrice
in class
AuctionTaskBaseCmdImpl
aPrice
- The reserved price.ECException
- if any problems are encountered.public void setRuleDisplayPage(java.lang.String s) throws ECException
setRuleDisplayPage
in interface
AuctionTaskBaseCmd
setRuleDisplayPage
in class
AuctionTaskBaseCmdImpl
s
- The rule display page.ECException
- if any problems are encountered.public void setStartPrice(java.math.BigDecimal newStartPrice)
setStartPrice
in interface
AuctionTaskBaseCmd
setStartPrice
in class
AuctionTaskBaseCmdImpl
newStartPrice
- The auction starting
price.public void setStartTime(java.sql.Timestamp s) throws ECException
setStartTime
in interface
AuctionTaskBaseCmd
setStartTime
in class
AuctionTaskBaseCmdImpl
s
- The auction start time.ECException
- if there are any problems.public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException
- if any problems are found with the parameters.