public class OfferUpdateCmdImpl extends ControllerCommandImpl implements OfferUpdateCmd
OfferUpdateCmd
is a URL and controller command that:
ListPriceUpdateCmd
to update the listprice
.
OFFER
table.
OFERDESC
table.
OFFERPRICE
table.
ListPriceUpdateCmd
command.
OfferAccessBean
OfferDescriptionAccessBean
OfferPriceAccessBean
ListPriceUpdateCmd
command.
UpdateOfferCmd
ListpriceUpdateCmd
offerId
, or catentryId
and identifier.maxQuantity
, minQuantity
, precedence, published,
qtyunitId
, desc
, descLangId
, compareprice
, currency, price, URL. Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this interface is "com.ibm.commerce.catalogmanagement.commands.OfferUpdateCmdImpl".
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName
Constructor and Description |
---|
OfferUpdateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getCatentryId()
Get the catalog entry Id
|
java.lang.String |
getCurrency()
Get the currency
|
java.lang.Integer |
getDescLanguage()
Get the description language Id
|
java.sql.Timestamp |
getEnddate()
Get the end date of the offer
|
java.lang.Long |
getIdentifier()
Get the offer identifier
|
java.lang.Long |
getOfferId()
Get the offer Id
|
java.math.BigDecimal |
getPrice()
Get the offer price
|
java.sql.Timestamp |
getStartdate()
Get the start date of the offer
|
java.lang.Long |
getTradeposcnId()
Get the trading position container Id
|
java.lang.String |
getURL()
Get the redirect URL
|
void |
performExecute()
The main program for
OfferUpdate command. |
void |
reset()
This method reset all the variables used in
OfferUpdate command |
void |
setCatentryId(java.lang.Long anCatentryId)
Set the catalog entry Id
|
void |
setCompareprice(java.math.BigDecimal abdCompareprice)
Set the comparative price
|
void |
setCurrency(java.lang.String astrCurrency)
Set the currency
|
void |
setDescLanguage(java.lang.Integer anDescLanguage)
Set language Id of offer description
|
void |
setDescription(java.lang.String astrDescription)
Set the offer description
|
void |
setEnddate(java.sql.Timestamp atmEnddate)
Sets the end date of the offer
|
void |
setField1(java.lang.String astrField1)
Set field 1 of the offer
|
void |
setField2(java.lang.String astrField2)
Set field 2 of the offer
|
void |
setFlags(java.lang.Integer anFlags)
Set offer flags:
1 = ship to address required (if 1,
OrderPrepare will return an error
if an OrderItem references this offer but does not have a shipping address) |
void |
setIdentifier(java.lang.Long anIdentifier)
Set the offer identifier
|
void |
setLastupdate(java.sql.Timestamp atmLastupdate)
Sets the date and time when the offer was updated
|
void |
setMaximumQuantity(java.lang.Double adMaximumQuantity)
Set the maximum quantity allowed for the offer
|
void |
setMinimumQuantity(java.lang.Double adMinimumQuantity)
Set the minimum quantity required for the offer
|
void |
setOfferId(java.lang.Long anOfferId)
Set the offer Id
|
void |
setOID(java.lang.String astrOID)
Set the object identifier
|
void |
setPrecedence(java.lang.Double adPrecedence)
Set the precedence of the offer
When more than one offer is effective at a particular time, the one with
the highest precedence is used.
|
void |
setPrice(java.math.BigDecimal abdPrice)
Set the offer price
|
void |
setPublished(java.lang.Integer anPublished)
Sets the published flag of the offer.
|
void |
setQtyunitId(java.lang.String astrQtyunitId)
Set the quantity unit Id.
|
void |
setRequestProperties(TypedProperty reqParms)
This method obtains the input parameters for
OfferUpdate command |
void |
setStartdate(java.sql.Timestamp atmStartdate)
Sets the start date of the offer
|
void |
setTradeposcnId(java.lang.Long anTradeposcnId)
Set trading positioning container Id for the offer
|
void |
setURL(java.lang.String astrURL)
Set a redirect URL
|
void |
validateParameters()
This method validates the parameters for
OfferUpdate command. |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
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
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
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public java.lang.Long getIdentifier()
public java.lang.Long getOfferId()
getOfferId
in interface OfferUpdateCmd
public java.lang.Long getCatentryId()
getCatentryId
in interface OfferUpdateCmd
public java.sql.Timestamp getStartdate()
public java.sql.Timestamp getEnddate()
public java.lang.Long getTradeposcnId()
public java.math.BigDecimal getPrice()
public java.lang.String getCurrency()
getCurrency
in interface OfferUpdateCmd
public java.lang.Integer getDescLanguage()
public java.lang.String getURL()
public void performExecute() throws ECException
OfferUpdate
command.
This method uses the task command called UpdateOfferCmd
and then sets the offer ID, catalog entry ID, identifier, description,
language, currency, and price in the response properties.performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
OfferUpdate
commandreset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setCatentryId(java.lang.Long anCatentryId)
setCatentryId
in interface OfferUpdateCmd
anCatentryId
- java.lang.Longpublic void setField1(java.lang.String astrField1)
setField1
in interface OfferUpdateCmd
astrField1
- java.lang.Stringpublic void setField2(java.lang.String astrField2)
setField2
in interface OfferUpdateCmd
astrField2
- java.lang.Stringpublic void setFlags(java.lang.Integer anFlags)
OrderPrepare
will return an error
if an OrderItem
references this offer but does not have a shipping address)setFlags
in interface OfferUpdateCmd
anFlags
- java.lang.Integerpublic void setIdentifier(java.lang.Long anIdentifier)
setIdentifier
in interface OfferUpdateCmd
anIdentifier
- java.lang.Longpublic void setLastupdate(java.sql.Timestamp atmLastupdate)
setLastupdate
in interface OfferUpdateCmd
atmLastupdate
- java.sql.Timestamppublic void setMaximumQuantity(java.lang.Double adMaximumQuantity)
setMaximumQuantity
in interface OfferUpdateCmd
adMaximumQuantity
- java.lang.Doublepublic void setMinimumQuantity(java.lang.Double adMinimumQuantity)
setMinimumQuantity
in interface OfferUpdateCmd
adMinimumQuantity
- java.lang.Doublepublic void setQtyunitId(java.lang.String astrQtyunitId)
setQtyunitId
in interface OfferUpdateCmd
astrQtyunitId
- java.lang.Stringpublic void setOID(java.lang.String astrOID)
setOID
in interface OfferUpdateCmd
astrOID
- java.lang.Stringpublic void setPrecedence(java.lang.Double adPrecedence)
setPrecedence
in interface OfferUpdateCmd
adPrecedence
- java.lang.Doublepublic void setPublished(java.lang.Integer anPublished)
setPublished
in interface OfferUpdateCmd
anPublished
- java.lang.Integerpublic void setTradeposcnId(java.lang.Long anTradeposcnId)
setTradeposcnId
in interface OfferUpdateCmd
anTradeposcnId
- java.lang.Longpublic void setStartdate(java.sql.Timestamp atmStartdate)
setStartdate
in interface OfferUpdateCmd
atmStartdate
- java.sql.Timestamppublic void setEnddate(java.sql.Timestamp atmEnddate)
setEnddate
in interface OfferUpdateCmd
atmEnddate
- java.sql.Timestamppublic void setOfferId(java.lang.Long anOfferId)
setOfferId
in interface OfferUpdateCmd
anOfferId
- java.lang.Longpublic void setCompareprice(java.math.BigDecimal abdCompareprice)
setCompareprice
in interface OfferUpdateCmd
abdCompareprice
- java.math.BigDecimalpublic void setPrice(java.math.BigDecimal abdPrice)
setPrice
in interface OfferUpdateCmd
abdPrice
- java.math.BigDecimalpublic void setCurrency(java.lang.String astrCurrency)
setCurrency
in interface OfferUpdateCmd
astrCurrecny
- java.lang.Stringpublic void setDescLanguage(java.lang.Integer anDescLanguage)
setDescLanguage
in interface OfferUpdateCmd
anDescLanguage
- java.lang.Integerpublic void setDescription(java.lang.String astrDescription)
setDescription
in interface OfferUpdateCmd
astrDescription
- java.lang.Stringpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
OfferUpdate
commandsetRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqParms
- This is an object that represents the request properties.ECApplicationException
public void setURL(java.lang.String astrURL)
setURL
in interface OfferUpdateCmd
astrURL
- java.lang.Stringpublic void validateParameters() throws ECException
OfferUpdate
command.validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException