public class AuctionTaskBaseCmdImpl extends TaskCommandImpl implements AuctionTaskBaseCmd
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
AUCTION_BASE_TIMESTAMP, defaultCommandClassName, NAME| Constructor and Description |
|---|
AuctionTaskBaseCmdImpl()
AuctionTaskBaseCmdImpl default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
compareUptoMinute(java.sql.Timestamp time1,
java.sql.Timestamp time2)
Compare two timestamps up to the minute level.
|
AuctionAccessBean |
getAuction()
Returns the access bean representing the auction.
|
java.lang.Long |
getAuctionReferenceNumber()
Gets auction's ID (also known as identifier).
|
java.lang.String |
getAuctionType()
Returns the auction type.
|
java.lang.Long |
getBidRuleId()
Returns the bid rule ID.
|
int |
getCloseType()
Gets the auction's closing type.
|
java.lang.String |
getCurrency()
Gets the currency type for the auction.
|
java.math.BigDecimal |
getCurrentAskPrice()
Gets dutch auction's current asks price.
|
java.lang.Double |
getCurrentAvailableQuantity()
Gets the current available quantity for an auction.
|
java.math.BigDecimal |
getDeposit()
Gets deposit required by the auction.
|
java.lang.Integer |
getDurationDays()
Gets duration days related to auction closing rule.
|
java.sql.Timestamp |
getEndTime()
Gets auction's end time.
|
java.util.Hashtable |
getErrorContent()
Gets error hashtable.
|
boolean |
getErrorFlag()
Gets error flag.
|
java.lang.Integer |
getFulfillmentCenterId()
Gets fulfillment center ID.
|
java.lang.Integer |
getLanguageId()
Gets language ID.
|
java.lang.String |
getLongDescription(java.lang.Integer langid)
Gets long description for the auction.
|
java.lang.Long |
getOwnerId()
Gets auction's owner ID.
|
java.lang.String |
getPricingRuleType()
Gets auction's pricing rule type.
|
java.lang.String |
getProductDisplayPage()
Gets product display page.
|
java.lang.Long |
getProductId()
Gets product (also known as catalog entry) ID.
|
java.lang.Double |
getQuantity()
Gets auction quantity.
|
java.lang.Long |
getReservationId()
Returns the reservation identifier.
|
java.math.BigDecimal |
getReservePrice()
Returns reserve price.
|
java.lang.String |
getRuleDisplayPage()
Gets auction's rule display page.
|
java.lang.String |
getShortDescription(java.lang.Integer langid)
Gets auction's short description.
|
java.math.BigDecimal |
getStartPrice()
Gets dutch auction's openning price.
|
java.sql.Timestamp |
getStartTime()
Gets auction's start time.
|
boolean |
isErrorFlag()
Gets error flag.
|
boolean |
isReadyToCallExecute()
Is ready to call Execute method.
|
void |
performExecute()
Execute the command.
|
void |
reset()
reset the parameters..
|
void |
saveDescriptions()
Saves the short and long descriptions for the auction.
|
void |
setAuctionType(java.lang.String s)
Sets auction type for the command.
|
void |
setBidRuleId(java.lang.Long br_id)
Stores the identifier of the bid control rule used by the auction.
|
void |
setCloseType(int aType)
Stores an integer representing the auction close type.
|
void |
setCurrency(java.lang.String newCurrency)
Sets the currency type for the auction.
|
void |
setCurrentAskPrice(java.math.BigDecimal aPrice)
Stores the current asking price for the item on a dutch auction.
|
void |
setCurrentAvailableQuantity(java.lang.Double q)
Sets current available quantity.
|
void |
setDeposit(java.math.BigDecimal amount)
Stores the value of the deposit that should accompany each bid for the auction.
|
void |
setDurationDays(java.lang.Integer days)
Saves the number of days between successive bids for which the auction will be active.
|
void |
setDurationTime(java.lang.Integer hours,
java.lang.Integer minutes)
Sets 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 |
setErrorContent(java.util.Hashtable newErrorContent)
Sets error content hashtable.
|
void |
setErrorFlag(boolean newErrorFlag)
Sets error flag.
|
void |
setFulfillmentCenterId(java.lang.Integer newFulfillmentCenterId)
Sets fullfillment center ID.
|
void |
setLanguageId(java.lang.Integer id)
Sets language ID.
|
void |
setLongDescription(java.lang.Integer langid,
java.lang.String ld)
Stores the long description for the auction for the specified language.
|
void |
setOwnerId(java.lang.Long id)
Sets auction owner ID.
|
void |
setPricingRuleType(java.lang.String s)
Stores the pricing rule for the auction.
|
void |
setProductDisplayPage(java.lang.String s)
Stores the path and name of the product display page.
|
void |
setProductId(java.lang.Long theId)
Sets product (also known as catalog entry) ID.
|
void |
setQuantity(java.lang.Double q)
Sets auction quantity.
|
void |
setReservationId(java.lang.Long newReservationId)
Stores the identifier for the reservation.
|
void |
setReservePrice(java.math.BigDecimal aPrice)
Sets reserve price.
|
void |
setRuleDisplayPage(java.lang.String s)
Stores the path and name of the web page that displays the auction rules.
|
void |
setShortDescription(java.lang.Integer langid,
java.lang.String s)
Stores the short description for the specified language.
|
void |
setStartPrice(java.math.BigDecimal newStartPrice)
Stores the starting price for the dutch auction.
|
void |
setStartTime(java.sql.Timestamp s)
Stores the starting date and time for the auction.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, 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 static final java.lang.String COPYRIGHT
public AuctionTaskBaseCmdImpl()
public static int compareUptoMinute(java.sql.Timestamp time1,
java.sql.Timestamp time2)
2001-10-20 13:24:34.384 is considered equal to 2001-10-20 13:24:00.0
time1 - time2 - public AuctionAccessBean getAuction()
getAuction in interface AuctionTaskBaseCmdpublic java.lang.Long getAuctionReferenceNumber()
public java.lang.String getAuctionType()
O for open cry, SB for sealed bid, and D for dutch.
public java.lang.Long getBidRuleId()
public int getCloseType()
Auction closing rule has the following valid values:
public java.lang.String getCurrency()
public java.math.BigDecimal getCurrentAskPrice()
public java.lang.Double getCurrentAvailableQuantity()
public java.math.BigDecimal getDeposit()
public java.lang.Integer getDurationDays()
public java.sql.Timestamp getEndTime()
public java.util.Hashtable getErrorContent()
public boolean getErrorFlag()
public java.lang.Integer getFulfillmentCenterId()
public java.lang.Integer getLanguageId()
public java.lang.String getLongDescription(java.lang.Integer langid)
langid - is the language ID. It is an integer.public java.lang.Long getOwnerId()
public java.lang.String getPricingRuleType()
ND for nondiscriminative, D for discriminative.
public java.lang.String getProductDisplayPage()
public java.lang.Long getProductId()
public java.lang.Double getQuantity()
public java.lang.Long getReservationId()
public java.math.BigDecimal getReservePrice()
public java.lang.String getRuleDisplayPage()
public java.lang.String getShortDescription(java.lang.Integer langid)
langid - is the language ID. It is an integer.public java.math.BigDecimal getStartPrice()
public java.sql.Timestamp getStartTime()
public boolean isErrorFlag()
public boolean isReadyToCallExecute()
isReadyToCallExecute in interface com.ibm.websphere.command.CommandisReadyToCallExecute in class AbstractECTargetableCommandpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void saveDescriptions()
throws java.lang.Exception
if - anything goes wrong.java.lang.Exceptionpublic void setAuctionType(java.lang.String s)
throws ECException
s - The auction type.ECExceptionpublic void setBidRuleId(java.lang.Long br_id)
throws ECException
setBidRuleId in interface AuctionTaskBaseCmdbr_id - is the bid rule ID.throws - ECException if anything goes wrong.ECExceptionpublic void setCloseType(int aType)
throws ECException
Auction closing rule has the following valid values:
setCloseType in interface AuctionTaskBaseCmdaType - ECExceptionpublic void setCurrency(java.lang.String newCurrency)
throws ECApplicationException
newCurrency - java.lang.StringECApplicationExceptionpublic void setCurrentAskPrice(java.math.BigDecimal aPrice)
throws ECException
setCurrentAskPrice in interface AuctionTaskBaseCmdaPrice - ECExceptionpublic void setCurrentAvailableQuantity(java.lang.Double q)
q - The current available quantity.public void setDeposit(java.math.BigDecimal amount)
throws ECException
setDeposit in interface AuctionTaskBaseCmdamount - ECExceptionpublic void setDurationDays(java.lang.Integer days)
setDurationDays in interface AuctionTaskBaseCmddays - java.lang.Integerpublic void setDurationTime(java.lang.Integer hours,
java.lang.Integer minutes)
setDurationTime in interface AuctionTaskBaseCmdhours - minutes - public void setDurationTimestamp(java.sql.Timestamp newDurationTimeStamp)
throws ECApplicationException
setDurationTimestamp in interface AuctionTaskBaseCmdnewDurationTimeStamp - ECApplicationExceptionpublic void setEndTime(java.sql.Timestamp newEndTimeStamp)
throws ECApplicationException
setEndTime in interface AuctionTaskBaseCmdnewEndTimeStamp - ECApplicationExceptionpublic void setErrorContent(java.util.Hashtable newErrorContent)
newErrorContent - public void setErrorFlag(boolean newErrorFlag)
newErrorFlag - public void setFulfillmentCenterId(java.lang.Integer newFulfillmentCenterId)
setFulfillmentCenterId in interface AuctionTaskBaseCmdnewFulfillmentCenterId - public void setLanguageId(java.lang.Integer id)
id - public void setLongDescription(java.lang.Integer langid,
java.lang.String ld)
throws ECException
setLongDescription in interface AuctionTaskBaseCmdlangid - Language ID.ld - Long description.ECExceptionpublic void setOwnerId(java.lang.Long id)
id - The owner's ID.public void setPricingRuleType(java.lang.String s)
throws ECException
ND for nondiscriminative, D for discriminative.
setPricingRuleType in interface AuctionTaskBaseCmds - ECExceptionpublic void setProductDisplayPage(java.lang.String s)
throws ECException
setProductDisplayPage in interface AuctionTaskBaseCmds - ECExceptionpublic void setProductId(java.lang.Long theId)
throws ECException
theId - is used to set the product (also known as catalog entry) ID. It is of type java.lang.Long.ECExceptionpublic void setQuantity(java.lang.Double q)
setQuantity in interface AuctionTaskBaseCmdq - is the quantity.public void setReservationId(java.lang.Long newReservationId)
setReservationId in interface AuctionTaskBaseCmdnewReservationId - public void setReservePrice(java.math.BigDecimal aPrice)
throws ECException
setReservePrice in interface AuctionTaskBaseCmdaPrice. - ECExceptionpublic void setRuleDisplayPage(java.lang.String s)
throws ECException
setRuleDisplayPage in interface AuctionTaskBaseCmds - is the page name.ECExceptionpublic void setShortDescription(java.lang.Integer langid,
java.lang.String s)
throws ECException
setShortDescription in interface AuctionTaskBaseCmdlangid - The language ID.s - The short description.ECExceptionpublic void setStartPrice(java.math.BigDecimal newStartPrice)
setStartPrice in interface AuctionTaskBaseCmdnewStartPrice - public void setStartTime(java.sql.Timestamp s)
throws ECException
setStartTime in interface AuctionTaskBaseCmds - is the new start time.ECException