public class AuctionBaseCmdImpl extends ToolsControllerCommandImpl implements AuctionBaseCmd
Modifier and Type | Field and Description |
---|---|
protected java.lang.String | bidRule
The bid rule for the auction.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
protected java.lang.String | currency
The currency string for the auction.
|
protected java.math.BigDecimal | currentAskPrice
The current asking price.
|
protected java.lang.String | currentAvailableQuantity
The quantity currently available.
|
protected java.lang.String | dayDuration
The duration of the auction in days.
|
protected java.lang.String | deposit
The deposit amount required for the auction.
|
protected java.lang.String | description
The short description of the auction.
|
protected java.sql.Timestamp | durationTimeStamp
The timestamp that represents the auction's duration
|
protected java.lang.String | endDate
The ending date for the auction.
|
protected java.lang.String | endTime
The ending time for the auction.
|
protected java.sql.Timestamp | endTimeStamp
The timestamp that represents the auction's end time.
|
protected java.lang.Integer | languageId
The language ID.
|
protected java.lang.String | longDescription
The long description of the auction.
|
protected java.math.BigDecimal | minBid
The minimum bid for the auction.
|
protected java.lang.Long | ownerid
The auction's owner ID.
|
protected java.lang.String | pricerule
The pricing policy type that is used to determine the winner's final winning price.
|
protected java.lang.String | productMacro
The product display page.
|
protected java.lang.String | productNumber
The product number.
|
protected java.lang.String | quantity
The quantity of the product up for auction.
|
protected java.lang.String | ruleMacro
The rule display page name for the auction.
|
protected java.lang.String | ruleType
The rule type.
|
protected java.lang.String | startDate
The start date for the auction.
|
protected java.math.BigDecimal | startPrice
The Dutch auction's open price.
|
protected java.lang.String | startTime
The timestamp that represents the auction's start time.
|
protected java.sql.Timestamp | startTimeStamp
The timestamp that represents the auction's start time.
|
protected java.lang.String | status
The status of the auction.
|
protected java.lang.String | timeDuration
The auction's time duration in format of 00:00:00 (hour:min:sec).
|
protected java.lang.String | type
The auction type
|
Constructor and Description |
---|
AuctionBaseCmdImpl()
AuctionBaseCmdImpl default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static java.sql.Timestamp | addTimestamp(java.sql.Timestamp t1, java.sql.Timestamp t2)
Utility method to add two timestamps
|
protected int | checkBidRule()
Validates the bid rule for this auction.
|
protected int | compareTimestamp(java.sql.Timestamp t1, java.sql.Timestamp t2)
Utility method to compare two timestamps at the seconds levels, not milliseconds level.
|
protected java.sql.Timestamp | dayChangeInTimestamp(java.sql.Timestamp t1, int dayChanged)
Returns the timestamp that is original timestamp with increment by a number of days.
|
java.lang.Long | getAuctionReferenceNumber()
Gets auction reference number.
|
protected java.sql.Timestamp | getBaseTimeStamp()
Gets base time stamp which is "1900-01-01 00:00:00"
|
java.lang.String | getBidRule()
Gets bid rule ID.
|
java.lang.String | getCurrency()
Gets the currency string for the auction.
|
java.math.BigDecimal | getCurrentAskPrice()
Gets current dutch auction price.
|
java.lang.String | getCurrentAvailableQuantity()
Gets current available quantity for the auction.
|
protected java.sql.Timestamp | getCurrentTimeStamp()
Gets current time stamp.
|
java.lang.String | getDayDuration()
Gets the days for the duration.
|
java.lang.String | getDeposit()
Gets the deposit amount required by the auction.
|
protected java.sql.Timestamp | getDurationTimeStamp()
Gets the timestamp that represents the duration.
|
java.lang.String | getEndDate()
Gets auction's end date.
|
java.lang.String | getEndTime()
Gets auction's end time.
|
protected java.sql.Timestamp | getEndTimeStamp()
Gets the timestamp that represents the end date and time.
|
java.util.Hashtable | getErrorContent()
Gets error content.
|
boolean | getErrorFlag()
Gets error flag.
|
protected ECException | getException()
Gets the exception
|
java.lang.Integer | getFulfillmentCenterId()
Gets fulfillment Center ID.
|
protected java.lang.Integer | getFulfillmentCenterId(java.lang.Long catId, java.lang.Double quantity)
Retrieves the fulfillment center ID based on the catalog entry ID and requested quantity.
|
java.lang.Integer | getLanguageId()
Gets language ID.
|
java.lang.String | getLongDescription()
Gets auction's long description.
|
protected java.lang.String | getMerchantCurrency(java.lang.Integer anMerchantNum)
Gets the currency string for the given store.
|
java.math.BigDecimal | getMinBid()
Gets reserve price for the auction.
|
java.lang.Long | getOwnerId()
Gets auction's owner ID.
|
java.lang.String | getPrice()
Gets pricing policy type that is used to determine the winner's final winning price.
|
java.lang.String | getProductMacro()
Gets product display page name for auction.
|
java.lang.String | getProductNumber()
Gets the ID for the product that is being put on auction.
|
java.lang.String | getQuantity()
Gets quantity of the product being put on auction.
|
java.lang.Long | getReservationId()
Gets the product reservation ID for the auction.
|
TypedProperty | getResponseProperties()
Gets response properties.
|
java.lang.String | getRuleMacro()
Gets rule display page name for the auction.
|
java.lang.String | getRuleType()
Gets auction closing type.
|
java.lang.String | getShortDescription()
Gets short description for the auction.
|
java.lang.String | getStartDate()
Gets auction's start date.
|
java.math.BigDecimal | getStartPrice()
Gets Dutch auction's open price.
|
java.lang.String | getStartTime()
Gets auction start time.
|
protected java.sql.Timestamp | getStartTimeStamp()
Gets the timestamp that represents the auction's start time.
|
protected java.lang.String | getStatus()
Gets auction status
|
java.lang.String | getTimeDuration()
Gets auction's time duration in format of 00:00:00 (hour:min:sec)
|
java.util.Hashtable | getToolXMLObject()
Gets Tools framework XML object.
|
java.lang.String | getType()
Gets auction type
|
protected java.sql.Timestamp | getUpdatedEndTimestamp()
Calculates what is the ending time based on auction closing rule type.
|
java.lang.String | getViewTaskName()
Gets the auction view task name
|
java.lang.String | getWizardNavagationFile()
Gets tools frame wizard navigation file.
|
protected boolean | isBidRuleExist()
Check the given bid rule existence for the auction.
|
boolean | isErrorFlag()
Check to see if any error occured.
|
protected boolean | isPageExist(java.lang.String pagename)
Check if a page exists on the file system.
|
boolean | isReadyToCallExecute()
isReadyToCallExecute method comment.
|
protected boolean | isValidCurrencyValueForAuction(java.lang.String currency)
Determines if the incoming currency is valid for the auction.
|
void | performExecute()
performExecute
|
void | reset()
reset method comment.
|
void | setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
Sets auction reference number
|
void | setAuctionReferenceNumberUrlName(java.lang.String name, boolean isReq)
Sets auction reference number (also known as auction ID)
|
void | setBidRuleUrlName(java.lang.String name, boolean isReq)
Gets bid rule ID from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void | setCurrency(java.lang.String newCurrency)
Sets auction's currency string.
|
void | setCurrencyUrlName(java.lang.String urlName, boolean isReq)
Gets the currency string from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void | setCurrentAskPriceUrlName(java.lang.String name, boolean isReq)
Gets current ask price from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void | setCurrentAvailableQuantity(java.lang.String q)
Sets current quantity.
|
void | setCurrentAvailableQuantityUrlName(java.lang.String name, boolean isReq)
Gets current available quantity from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void | setDayDurationUrlName(java.lang.String name, boolean isReq)
Gets duration days from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void | setDepositUrlName(java.lang.String name, boolean isReq)
Gets deposit amount from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
protected void | setDurationTimeStamp(java.sql.Timestamp newDurationTimeStamp)
Sets duration timestamp
|
void | setEndDateUrlName(java.lang.String name, boolean isReq)
Gets auction's end date from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
protected void | setEndTimeStamp(java.sql.Timestamp newEndTimeStamp)
Sets auction end date timestamp.
|
void | setEndTimeUrlName(java.lang.String name, boolean isReq)
Gets auction's end time from the WebSphere Commerce tools framework XML objects, and sets it for the command.
|
void | setErrorContent(java.util.Hashtable newErrorContent)
Sets error content
|
void | setErrorFlag(boolean newErrorFlag)
Sets error flag.
|
protected void | setException(ECException exception)
Sets the exception
|
void | setFulfillmentCenterIdUrlName(java.lang.String name, boolean isReq)
Gets fulfillment center ID from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void | setLanguageIdUrlName(java.lang.String name, boolean isReq)
Gets language ID from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void | setLongDescriptionUrlName(java.lang.String urlName, boolean isReq)
Gets auction's long description from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void | setMinBidUrlName(java.lang.String name, boolean isReq)
Gets auction's reserve price from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void | setOwnerId(java.lang.Long id)
Sets auction owner ID
|
void | setOwnerIdUrlName(java.lang.String name, boolean isReq)
Gets auction's owner ID from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void | setPriceUrlName(java.lang.String name, boolean isReq)
Gets auction's close pricing policy type(discriminative or non-discriminative) from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void | setProductMacroUrlName(java.lang.String name, boolean isReq)
Gets auction's product display page name from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void | setProductNumberUrlName(java.lang.String name, boolean isReq)
Gets auction's product (also known as catalog entry) ID from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void | setQuantity(java.lang.String q)
Sets auction quantity
|
void | setQuantityUrlName(java.lang.String name, boolean isReq)
Gets auction's quantity from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void | setRequestProperties(TypedProperty paramTable)
Sets request properties.
|
void | setReservationId(java.lang.Long newReservationId)
Sets reservation identifier.
|
void | setResponseProperties(TypedProperty paramHash)
Sets response properties.
|
void | setRuleMacroUrlName(java.lang.String name, boolean isReq)
Gets auction's rule display page name from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void | setRuleTypeUrlName(java.lang.String name, boolean isReq)
Gets auction's closing type (fixed time closing, and so forth.) from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void | setShortDescriptionUrlName(java.lang.String name, boolean isReq)
Gets auction's short description from the WebSphere Commerce tools framework XML objects, and sets it for the command.
|
void | setStartDateUrlName(java.lang.String name, boolean isReq)
Gets auction's start date from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void | setStartPrice(java.math.BigDecimal newStartPrice)
Sets start price for a Dutch auction.
|
void | setStartPriceUrlName(java.lang.String name, boolean isReq)
Gets auction's start date from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
protected void | setStartTimeStamp(java.sql.Timestamp newStartTimeStamp)
Sets auction start timestamp
|
void | setStartTimeUrlName(java.lang.String name, boolean isReq)
Gets auction's start time from the WebSphere Commerce tools framework XML objects, and sets it for the command.
|
protected void | setStatus(java.lang.String newStatus)
Sets auction status
|
void | setTimeDurationUrlName(java.lang.String name, boolean isReq)
Gets duration time string (in hh:mm:ss format) from the WebSphere Commerce tools framework XML objects, and sets it for the command.
|
void | setToolXMLObject(java.util.Hashtable newToolXMLObject)
Sets Tools framework XML objects
|
void | setTypeUrlName(java.lang.String name, boolean isReq)
Gets auction type string from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void | setViewTaskName(java.lang.String newViewTaskName)
Sets auction creation view task name.
|
public static final java.lang.String COPYRIGHT
protected java.lang.String bidRule
protected java.math.BigDecimal currentAskPrice
protected java.lang.String currentAvailableQuantity
protected java.lang.String dayDuration
protected java.lang.String deposit
protected java.lang.String description
protected java.lang.String endDate
protected java.lang.String endTime
protected java.math.BigDecimal minBid
protected java.lang.String productMacro
protected java.lang.String productNumber
protected java.lang.String quantity
protected java.lang.String ruleMacro
protected java.lang.String ruleType
protected java.lang.String startDate
protected java.math.BigDecimal startPrice
protected java.lang.String timeDuration
protected java.lang.String type
protected java.lang.String startTime
protected java.sql.Timestamp startTimeStamp
protected java.sql.Timestamp endTimeStamp
protected java.sql.Timestamp durationTimeStamp
protected java.lang.String status
protected java.lang.String currency
protected java.lang.String pricerule
protected java.lang.String longDescription
protected java.lang.Long ownerid
protected java.lang.Integer languageId
public AuctionBaseCmdImpl()
protected static java.sql.Timestamp addTimestamp(java.sql.Timestamp t1, java.sql.Timestamp t2)
protected int checkBidRule() throws ECApplicationException
protected int compareTimestamp(java.sql.Timestamp t1, java.sql.Timestamp t2)
protected java.sql.Timestamp dayChangeInTimestamp(java.sql.Timestamp t1, int dayChanged)
public java.lang.Long getAuctionReferenceNumber()
protected java.sql.Timestamp getBaseTimeStamp()
public java.lang.String getBidRule()
public java.lang.String getCurrency()
public java.math.BigDecimal getCurrentAskPrice()
public java.lang.String getCurrentAvailableQuantity()
protected java.sql.Timestamp getCurrentTimeStamp()
public java.lang.String getDayDuration()
public java.lang.String getDeposit()
protected java.sql.Timestamp getDurationTimeStamp()
public java.lang.String getEndDate()
public java.lang.String getEndTime()
protected java.sql.Timestamp getEndTimeStamp()
public java.util.Hashtable getErrorContent()
public boolean getErrorFlag()
public java.lang.Integer getFulfillmentCenterId()
protected java.lang.Integer getFulfillmentCenterId(java.lang.Long catId, java.lang.Double quantity)
public java.lang.Integer getLanguageId()
public java.lang.String getLongDescription()
protected java.lang.String getMerchantCurrency(java.lang.Integer anMerchantNum)
public java.math.BigDecimal getMinBid()
public java.lang.Long getOwnerId()
public java.lang.String getPrice()
D for discriminative, ND for non-discriminative.
public java.lang.String getProductMacro()
public java.lang.String getProductNumber()
public java.lang.String getQuantity()
public java.lang.Long getReservationId()
public TypedProperty getResponseProperties()
public java.lang.String getRuleMacro()
public java.lang.String getRuleType()
Auction closing rule has the following valid values:
public java.lang.String getShortDescription()
public java.lang.String getStartDate()
public java.math.BigDecimal getStartPrice()
public java.lang.String getStartTime()
protected java.sql.Timestamp getStartTimeStamp()
protected java.lang.String getStatus()
public java.lang.String getTimeDuration()
public java.util.Hashtable getToolXMLObject()
public java.lang.String getType()
protected java.sql.Timestamp getUpdatedEndTimestamp()
public java.lang.String getViewTaskName()
public java.lang.String getWizardNavagationFile()
protected boolean isBidRuleExist()
public boolean isErrorFlag()
protected boolean isPageExist(java.lang.String pagename) throws ECException
public boolean isReadyToCallExecute()
protected boolean isValidCurrencyValueForAuction(java.lang.String currency) throws java.lang.ClassCastException
public void performExecute() throws ECException
public void reset()
public void setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
public void setAuctionReferenceNumberUrlName(java.lang.String name, boolean isReq)
public void setBidRuleUrlName(java.lang.String name, boolean isReq) throws ECApplicationException
public void setCurrency(java.lang.String newCurrency) throws ECApplicationException
public void setCurrencyUrlName(java.lang.String urlName, boolean isReq)
public void setCurrentAskPriceUrlName(java.lang.String name, boolean isReq)
public void setCurrentAvailableQuantity(java.lang.String q)
public void setCurrentAvailableQuantityUrlName(java.lang.String name, boolean isReq)
public void setDayDurationUrlName(java.lang.String name, boolean isReq)
public void setDepositUrlName(java.lang.String name, boolean isReq)
protected void setDurationTimeStamp(java.sql.Timestamp newDurationTimeStamp) throws ECApplicationException
public void setEndDateUrlName(java.lang.String name, boolean isReq)
Format is yyyy-mm-dd.
protected void setEndTimeStamp(java.sql.Timestamp newEndTimeStamp) throws ECApplicationException
public void setEndTimeUrlName(java.lang.String name, boolean isReq)
The format is hh:mm:ss.
public void setErrorContent(java.util.Hashtable newErrorContent)
public void setErrorFlag(boolean newErrorFlag)
public void setFulfillmentCenterIdUrlName(java.lang.String name, boolean isReq)
The current implementation is to resolve the fulfillment center based on product ID and quantity instead of setting directly.
public void setLanguageIdUrlName(java.lang.String name, boolean isReq)
public void setLongDescriptionUrlName(java.lang.String urlName, boolean isReq) throws ECApplicationException
public void setMinBidUrlName(java.lang.String name, boolean isReq)
public void setOwnerId(java.lang.Long id)
public void setOwnerIdUrlName(java.lang.String name, boolean isReq)
public void setPriceUrlName(java.lang.String name, boolean isReq)
ND for nondiscriminative, D for discriminative.
public void setProductMacroUrlName(java.lang.String name, boolean isReq)
public void setProductNumberUrlName(java.lang.String name, boolean isReq)
public void setQuantity(java.lang.String q)
public void setQuantityUrlName(java.lang.String name, boolean isReq)
public void setRequestProperties(TypedProperty paramTable) throws ECApplicationException
public void setReservationId(java.lang.Long newReservationId)
public void setResponseProperties(TypedProperty paramHash)
public void setRuleMacroUrlName(java.lang.String name, boolean isReq)
public void setRuleTypeUrlName(java.lang.String name, boolean isReq)
Auction closing rule has the following valid values:
public void setShortDescriptionUrlName(java.lang.String name, boolean isReq) throws ECApplicationException
public void setStartDateUrlName(java.lang.String name, boolean isReq) throws ECApplicationException
public void setStartPrice(java.math.BigDecimal newStartPrice)
public void setStartPriceUrlName(java.lang.String name, boolean isReq)
protected void setStartTimeStamp(java.sql.Timestamp newStartTimeStamp) throws ECApplicationException
public void setStartTimeUrlName(java.lang.String name, boolean isReq)
The format is hh:mm:ss.
protected void setStatus(java.lang.String newStatus)
public void setTimeDurationUrlName(java.lang.String name, boolean isReq)
public void setToolXMLObject(java.util.Hashtable newToolXMLObject)
public void setTypeUrlName(java.lang.String name, boolean isReq) throws ECApplicationException
public void setViewTaskName(java.lang.String newViewTaskName)
protected ECException getException()
protected void setException(ECException exception)