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.
|
protected CommandContext | iCommandContext
Command context
|
protected java.lang.String | iDataBeanKeyCalculationCodeId
Calculation Code Id
|
protected TypedProperty | iRequestProperties
Request properties
|
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 OrderPromotionCodeDataBean , set the order ID by calling method setOrderID, then call method getOrderPromotionCodes. To get the promotion code of the promotion associated with the calculation code, using method 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.
|
public static final java.lang.String COPYRIGHT
protected CommandContext iCommandContext
protected TypedProperty iRequestProperties
protected java.lang.String iDataBeanKeyCalculationCodeId
public TypedProperty getRequestProperties()
public void setRequestProperties(TypedProperty aRequestProperty) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.FinderException
public java.lang.String getDataBeanKeyCalculationCodeId()
public CommandContext getCommandContext()
public void setCommandContext(CommandContext aCommandContext)
public void setDataBeanKeyCalculationCodeId(java.lang.String aCalculationCodeId)
public void populate() throws java.lang.Exception
public CalculationCodeDescriptionDataBean getDescriptionDataBean()
public java.lang.String getDescriptionString()
public java.lang.String getLongDescriptionString()
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.
To get the promotion code of the promotion associated with the calculation code, using method 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() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.String getLocalizedEndDate() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public boolean isPromotionRelated()