java.lang.Object | +--com.ibm.commerce.beans.InputDataBeanImpl | +--com.ibm.commerce.beans.SmartDataBeanImpl | +--com.ibm.commerce.tools.promotions.beansrc.DiscountChooseListBeanBase | +--com.ibm.commerce.tools.promotions.DiscountChooseListBean
The bean representing an discount calculationcode list of a store. This bean maps to the table calcode.
Field Summary | |
---|---|
protected
java.util.Vector |
calcode_Id Provide a vector of calcode ID. |
protected
java.lang.String |
calcodeId Provide the string type of calcode ID. |
protected
java.util.Vector |
code Provide a vector of code. |
static java.lang.String |
COPYRIGHT The internal copyright field. |
protected
java.util.Vector |
description Provide a vector of administration description. |
protected
DiscountChooseListRow[] |
discountRowList Provide an object Array of DiscountChooseListRow for dynamic list. |
protected
java.util.Vector |
endDate Provide a vector of discount end date. |
protected
java.lang.String |
endIndex Provide the string type of end index to dynamic list page view. |
protected
java.lang.String[][] |
heading Provide a String Array of table headings for dynamic list. |
protected
java.lang.String |
orderBy Provide a string of orderBy which used for dynamic list records sorting function. |
protected
java.util.Vector |
published Provide a vector of published. |
protected
java.util.Vector |
startDate Provide a vector of discount start date. |
protected
java.lang.String |
startIndex Provide the string type of start index to dynamic list page view. |
Fields inherited from class com.ibm.commerce.beans. SmartDataBeanImpl |
commandContext |
Fields inherited from class com.ibm.commerce.beans. InputDataBeanImpl |
requestProperties |
Fields inherited from interface com.ibm.commerce.tools.promotions. ECPromotionsConstants |
BY_AMOUNT_PER_UNIT,
BY_FIXED_AMOUNT,
BY_PERCENTAGE,
CONTRACT_DISPLAY,
CUMULATIVE_FALSE,
CURRENCY_RANGE,
DISCOUNT_PUBLISHED,
DISCOUNT_RESOURCES,
DO_NOT_GROUP,
EC_Calcode_Id,
EC_Code,
EC_EndDate,
EC_Orderby,
EC_Range_Max,
EC_StartDate,
EC_Status,
ERROR_DISCOUNT_APPLIED,
ERROR_DISCOUNT_DUPLICATE_CODE,
ERROR_DISCOUNT_NOT_SAVED,
ITEM_DISPLAY,
MSG_DISCOUNT_APPLIED,
MSG_DISCOUNT_SAVED,
ORDER_DISPLAY,
ORDER_LEVEL,
ORDERITEM_DISPLAY,
PRODUCT_DISPLAY,
PRODUCT_LEVEL,
QTY_RANGE,
REST_OF_TIMESTRING,
ZERO_STRING |
Fields inherited from interface com.ibm.commerce.beans. DataBean |
emptyString |
Constructor Summary | |
---|---|
DiscountChooseListBean() DiscountCalculationCodeList constructor. |
Method Summary | |
---|---|
java.lang.String |
getCalcode_Id(int index) get ID of calculation code, also is the ID of the discount object. |
java.lang.String |
getCheckBoxName(int index) get the name of check box in each Row i |
java.lang.String |
getCode(int index) get the name of the discount. |
java.lang.String[] |
getColumns(int i) get String Array of the Discount properties, which will be represented in one column. |
java.lang.String |
getDefaultAction(int i) get default action |
java.lang.String |
getDescription(int index) get administrator's description for the discount associated by index i. |
DiscountChooseListRow[] |
getDiscountRowList() get array of discount choose list row |
java.lang.String |
getEndDate(int index) get the end date of the current discount availablity. |
java.lang.String[][] |
getHeadings() get HTML table heading |
int |
getLength() get length |
int |
getListSize() get the size of discount list found |
java.lang.String |
getOrderBy() get the property name, which used to sort the list records. |
java.lang.String |
getParm(java.lang.String para) get the internal parameter name associated with the param passed. |
java.lang.String |
getPublished(int index) get the discount status |
TypedProperty |
getRequestProperties() getRequestProperties method comment. |
java.lang.String |
getStartDate(int index) get start date of the discount availablity. |
java.lang.String |
getUserJSfnc() get User defined JavaScript functions |
java.lang.String |
getUserJSfnc(java.util.Hashtable NLSfile) get User defined JavaScript functions by passing NLS file |
void |
populate() populate this DataBean to GUI. |
void |
setLength(int newLength) set the number of the list |
void |
setOrderBy(java.lang.String newOrderBy) set orderBy to sort the list |
void |
setParm(java.lang.String para, java.lang.String value) set parameter and its values |
void |
setRequestProperties(
TypedProperty param) set RequestProperties param param com.ibm.commerce.datatype.TypedProperty |
Methods inherited from class com.ibm.commerce.tools.promotions.beansrc. DiscountChooseListBeanBase |
getDelegate,
getOwner |
Methods inherited from class com.ibm.commerce.beans. SmartDataBeanImpl |
fulfills,
getCommandContext,
getResources,
setCommandContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected DiscountChooseListRow[] discountRowList
protected java.util.Vector calcode_Id
protected java.util.Vector code
protected java.util.Vector startDate
protected java.util.Vector endDate
protected java.util.Vector published
protected java.util.Vector description
protected java.lang.String orderBy
protected java.lang.String[][] heading
protected java.lang.String calcodeId
protected java.lang.String endIndex
protected java.lang.String startIndex
Constructor Detail |
---|
public DiscountChooseListBean()
Method Detail |
---|
public java.lang.String getCalcode_Id(int index)
public java.lang.String getCheckBoxName(int index)
getCheckBoxName
in interface
SimpleDynamicListBean
index
- The for which you want the name of the check box.public java.lang.String getCode(int index)
index
- of the Array of the discounts.public java.lang.String[] getColumns(int i)
getColumns
in interface
SimpleDynamicListBean
i
- The row for which you want to return the contents.public java.lang.String getDefaultAction(int i)
getDefaultAction
in interface
SimpleDynamicListBean
i
- The row for which you want the first column
hyper-link.public java.lang.String getDescription(int index)
index
- of the Array of the discounts.public DiscountChooseListRow[] getDiscountRowList()
public java.lang.String getEndDate(int index)
index
- of the Array of the discounts.public java.lang.String[][] getHeadings()
getHeadings
in interface
SimpleDynamicListBean
public int getLength()
public int getListSize()
getListSize
in interface
SimpleDynamicListBean
public java.lang.String getOrderBy()
public java.lang.String getParm(java.lang.String para)
getParm
in interface
SimpleDynamicListBean
public java.lang.String getPublished(int index)
public TypedProperty getRequestProperties()
getRequestProperties
in interface
InputDataBean
getRequestProperties
in class
InputDataBeanImpl
public java.lang.String getStartDate(int index)
index
- of the Array of the discounts.public java.lang.String getUserJSfnc()
public java.lang.String getUserJSfnc(java.util.Hashtable NLSfile)
getUserJSfnc
in interface
SimpleDynamicListBean
NLSfile
- The JavaScript file which contains national language
characters.public void populate() throws java.lang.Exception
populate
in interface
SmartDataBean
populate
in class
SmartDataBeanImpl
java.lang.Exception
- should not happen since there is no data
retrieved to populate the databean.public void setLength(int newLength)
public void setOrderBy(java.lang.String newOrderBy)
newOrderBy
- java.lang.Stringpublic void setParm(java.lang.String para, java.lang.String value)
setParm
in interface
SimpleDynamicListBean
para
- java.lang.Stringvalue
- java.lang.Stringpublic void setRequestProperties(TypedProperty param) throws java.lang.Exception
setRequestProperties
in interface
InputDataBean
setRequestProperties
in class
InputDataBeanImpl
java.lang.Exception
- if there is a problem when setting the
request properties. This particular method should not throw any exception
because it just stores the request properties.