public class CalculationCodeDataBean
extends com.ibm.commerce.fulfillment.beansrc.CalculationCodeDataBeanBase
implements com.ibm.commerce.fulfillment.beans.CalculationCodeInputDataBean, com.ibm.commerce.fulfillment.beans.CalculationCodeSmartDataBean
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
emptyString| Constructor and Description |
|---|
CalculationCodeDataBean() |
| Modifier and Type | Method and Description |
|---|---|
CatalogEntryDataBean[] |
getAttachedCatalogEntryDataBeans()
This method returns attached CatalogEntryDataBean array
|
CatalogEntryDataBean[] |
getAttachedCatalogEntryDataBeansForPromotion()
This method returns attached CatalogEntryDataBean array for promotion.
|
CommandContext |
getCommandContext()
This method returns the command context set within this bean.
|
java.lang.String |
getDataBeanKeyCalculationCodeId()
This method returns the databean key:calculation code id.
|
CalculationCodeDescriptionDataBean |
getDescriptionDataBean()
This method returns the
CalculationCodeDescriptionDataBeanof
this CalculationCode that corresponds to the current Language, if
couldn't find any, it gets the CalculationCodeDescriptionDataBean
of the alternative languages, if it still not find any, then return the
CalculationCodeDescriptionDataBeanof this CalculationCode that
corresponds to the store default language. |
java.lang.String |
getDescriptionString()
This method returns the description string of this CalculationCode that
corresponds to the current Language.
|
java.lang.String |
getLocalizedEndDate()
Return localized end date of this CalculationCode.
|
java.lang.String |
getLocalizedStartDate()
Return localized start date of this CalculationCode.
|
java.lang.String |
getLongDescriptionString()
This method returns the long description string of this CalculationCode
that corresponds to the current Language.
|
com.ibm.commerce.tools.epromotion.databeans.PromotionCodeDataBean |
getPromotionCodeDataBean()
Deprecated.
This method is reserved for internal use.
To get the promotion code applied to an order, create a new
instance of
com.ibm.commerce.tools.epromotion.objimpl.CalculationCodePromotionCache#findByCalculationCodeId()
to get com.ibm.commerce.tools.epromotion.objimpl.CalculationCodePromotionAccessBean objects.
Then get promotion ID by
com.ibm.commerce.tools.epromotion.objimpl.CalculationCodePromotionAccessBean#getPromotionId().
Next to call
com.ibm.commerce.marketing.promotion.PromotionPersistenceManager#reverseLookup() and
com.ibm.commerce.marketing.promotion.PromotionPersistenceManager#lookup() to get
Promotion
The last is to retrieve promotion code by Promotion.getCode().
|
TypedProperty |
getRequestProperties()
This method returns the request property set within this bean.
|
boolean |
isPromotionRelated()
Return if this calculation code is related to a promotion
|
void |
populate()
This method is used to populate the CalculationCodeDataBean.
|
void |
setCommandContext(CommandContext aCommandContext)
This method sets the command context within this bean.
|
void |
setDataBeanKeyCalculationCodeId(java.lang.String aCalculationCodeId)
This method sets the databean key:calculation code id.
|
void |
setRequestProperties(TypedProperty aRequestProperty)
This method sets the request property within this bean.
|
getDelegatefindAllAttachedCalculationCodes, findByCalculationUsageAndStoreEntity, findByCalculationUsageAndStoreEntityAndDisplayLevel, findByCalculationUsageAndStoreEntityNoCache, findByCalculationUsageAndStoreEntitySortByCode, findByCalculationUsageAndStorePath, findByCalculationUsageAndStorePathNoCache, findByCalculationUsageCatalogEntryContractAndStore, findByCalculationUsageCatalogEntryContractAndStoreNoCache, findByCalculationUsageCatalogGroupContractAndStore, findByCalculationUsageCatalogGroupContractAndStoreNoCache, findByCalculationUsageCodeAndStoreEntity, findByCalculationUsageCodeAndStoreEntityNoCache, findByCalculationUsageStoreContractAndOffer, findByCatalogEntryAndStoreSortByCode, findByCatalogEntryAttachments, findByCatalogEntryContractAndStore, findByCatalogGroupAttachments, findByCatalogGroupContractAndStore, findByOrderItem, findDefaultCalculationCodeByStoreEntityAndCalculationUsage, fulfills, getCalculationCodeApplyMethodId, getCalculationCodeApplyMethodIdInEntityType, getCalculationCodeId, getCalculationCodeIdInEntityType, getCalculationCodeQualifyMethodId, getCalculationCodeQualifyMethodIdInEntityType, getCalculationMethodId, getCalculationMethodIdInEntityType, getCalculationUsageId, getCalculationUsageIdInEntityType, getCode, getCombination, getCombinationInEntityType, getDescription, getDescription, getDescriptionNoCache, getDisplayLevel, getDisplayLevelInEntityType, getEffectiveRules, getEndDate, getEndDateInEntityType, getEntity, getField1, getFlags, getFlagsInEntityType, getGroupBy, getGroupByInEntityType, getLastUpdate, getLastUpdateInEntityType, getOwner, getPrecedence, getPrecedenceInEntityType, getPublished, getPublishedInEntityType, getSequence, getSequenceInEntityType, getStartDate, getStartDateInEntityType, getStoreEntityId, getStoreEntityIdInEntityType, getTaxCodeClassId, getTaxCodeClassIdInEntityType, instantiateEntity, setCalculationCodeApplyMethodId, setCalculationCodeApplyMethodId, setCalculationCodeQualifyMethodId, setCalculationCodeQualifyMethodId, setCalculationMethodId, setCalculationMethodId, setCalculationUsageId, setCalculationUsageId, setCode, setCombination, setCombination, setDescription, setDisplayLevel, setDisplayLevel, setEndDate, setEndDate, setField1, setFlags, setFlags, setGroupBy, setGroupBy, setInitKey_calculationCodeId, setInitKey_calculationCodeId, setLastUpdate, setLastUpdate, setPrecedence, setPrecedence, setPublished, setPublished, setSequence, setSequence, setStartDate, setStartDate, setStoreEntityId, setStoreEntityId, setTaxCodeClassId, setTaxCodeClassIdpublic static final java.lang.String COPYRIGHT
public TypedProperty getRequestProperties()
getRequestProperties in interface InputDataBeanpublic void setRequestProperties(TypedProperty aRequestProperty)
setRequestProperties in interface InputDataBeanaRequestProperty - TypedPropertypublic java.lang.String getDataBeanKeyCalculationCodeId()
getDataBeanKeyCalculationCodeId in interface com.ibm.commerce.fulfillment.beans.CalculationCodeSmartDataBeanpublic CommandContext getCommandContext()
getCommandContext in interface SmartDataBeanpublic void setCommandContext(CommandContext aCommandContext)
setCommandContext in interface SmartDataBeanaCommandContext - com.ibm.commerce.command.CommandContextpublic void setDataBeanKeyCalculationCodeId(java.lang.String aCalculationCodeId)
setDataBeanKeyCalculationCodeId in interface com.ibm.commerce.fulfillment.beans.CalculationCodeInputDataBeanaCalculationCodeId - java.lang.Stringpublic void populate()
iDataBeanKeyCalculationCodeId using the
setDataBeanKeyCalculationCodeId(java.lang.String) method before running
the populate() method.populate in interface SmartDataBeanjava.lang.ExceptionsetDataBeanKeyCalculationCodeId(java.lang.String)public CalculationCodeDescriptionDataBean getDescriptionDataBean()
CalculationCodeDescriptionDataBeanof
this CalculationCode that corresponds to the current Language, if
couldn't find any, it gets the CalculationCodeDescriptionDataBean
of the alternative languages, if it still not find any, then return the
CalculationCodeDescriptionDataBeanof this CalculationCode that
corresponds to the store default language.public java.lang.String getDescriptionString()
getDescriptionDataBean().
getDescription().public java.lang.String getLongDescriptionString()
getDescriptionDataBean().
getLongDescription().public com.ibm.commerce.tools.epromotion.databeans.PromotionCodeDataBean getPromotionCodeDataBean()
To get the promotion code applied to an order, create a new
instance of
OrderPromotionCodeDataBean
, set the order ID by calling method setOrderID,
then call method getOrderPromotionCodes.
com.ibm.commerce.tools.epromotion.objimpl.CalculationCodePromotionCache#findByCalculationCodeId()
to get com.ibm.commerce.tools.epromotion.objimpl.CalculationCodePromotionAccessBean objects.
Then get promotion ID by
com.ibm.commerce.tools.epromotion.objimpl.CalculationCodePromotionAccessBean#getPromotionId().
Next to call
com.ibm.commerce.marketing.promotion.PromotionPersistenceManager#reverseLookup() and
com.ibm.commerce.marketing.promotion.PromotionPersistenceManager#lookup() to get
Promotion
The last is to retrieve promotion code by Promotion.getCode().
public CatalogEntryDataBean[] getAttachedCatalogEntryDataBeans()
public CatalogEntryDataBean[] getAttachedCatalogEntryDataBeansForPromotion()
public java.lang.String getLocalizedStartDate()
public java.lang.String getLocalizedEndDate()
public boolean isPromotionRelated()