|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 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 |
Constructor Summary | |
DiscountChooseListBean()
DiscountCalculationCodeList constructor. |
Method Summary | |
java.lang.String |
getCalcode_Id(int index)
|
java.lang.String |
getCheckBoxName(int index)
Returns the name of the check box in each row. |
java.lang.String |
getCode(int index)
|
java.lang.String[] |
getColumns(int i)
Returns the content of row i |
java.lang.String |
getDefaultAction(int i)
This method returns the first column hyper-link. |
java.lang.String |
getDescription(int index)
|
DiscountChooseListRow[] |
getDiscountRowList()
|
java.lang.String |
getEndDate(int index)
|
java.lang.String[][] |
getHeadings()
This method returns the headings of the table. |
int |
getLength()
|
int |
getListSize()
This method returns the size of your result. |
java.lang.String |
getOrderBy()
|
java.lang.String |
getParm(java.lang.String para)
This method returns the given parameter's value. |
java.lang.String |
getPublished(int index)
|
TypedProperty |
getRequestProperties()
getRequestProperties method comment. |
java.lang.String |
getStartDate(int index)
|
java.lang.String |
getUserJSfnc()
|
java.lang.String |
getUserJSfnc(java.util.Hashtable NLSfile)
Returns the user defined JavaScript function. |
void |
populate()
populate this DataBean to GUI. |
void |
setLength(int newLength)
set the number of the list |
void |
setOrderBy(java.lang.String newOrderBy)
|
void |
setParm(java.lang.String para,
java.lang.String value)
This method sets the given parameter para equal to value value . |
void |
setRequestProperties(TypedProperty param)
set RequestProperties param param com.ibm.commerce.datatype.TypedProperty |
Field Detail |
protected java.util.Vector calcode_Id
protected java.lang.String calcodeId
protected java.util.Vector code
public static final java.lang.String COPYRIGHT
protected java.util.Vector description
protected DiscountChooseListRow[] discountRowList
protected java.util.Vector endDate
protected java.lang.String endIndex
protected java.lang.String[][] heading
protected java.lang.String orderBy
protected java.util.Vector published
protected java.util.Vector startDate
protected java.lang.String startIndex
Constructor Detail |
public DiscountChooseListBean()
Method Detail |
public java.lang.String getCalcode_Id(int index)
the
- index of discount record in the tablepublic java.lang.String getCheckBoxName(int index)
SimpleDynamicListBean
getCheckBoxName
in interface SimpleDynamicListBean
i
- intpublic java.lang.String getCode(int index)
index
- of the Array of the discounts.public java.lang.String[] getColumns(int i)
SimpleDynamicListBean
getColumns
in interface SimpleDynamicListBean
index
- of the Array of the discounts.public java.lang.String getDefaultAction(int i)
SimpleDynamicListBean
getDefaultAction
in interface SimpleDynamicListBean
index
- of the Array of the discounts.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()
SimpleDynamicListBean
The first column is the NLS entry name used to locate the NLS character in your property file. The second is the variable name of this column which is used for sorting purposes.
If you do not want this column to be sorted, put "null" for the variable name of this column.
getHeadings
in interface SimpleDynamicListBean
public int getLength()
public int getListSize()
SimpleDynamicListBean
getListSize
in interface SimpleDynamicListBean
public java.lang.String getOrderBy()
public java.lang.String getParm(java.lang.String para)
SimpleDynamicListBean
getParm
in interface SimpleDynamicListBean
parameter
- name passed by GUI.public java.lang.String getPublished(int index)
public TypedProperty getRequestProperties()
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)
SimpleDynamicListBean
tag in your XML file to include
the JavaScript file.getUserJSfnc
in interface SimpleDynamicListBean
National
- Languages profile objectpublic void populate() throws java.lang.Exception
public void setLength(int newLength)
newNumOfList
- intpublic void setOrderBy(java.lang.String newOrderBy)
newOrderBy
- java.lang.Stringpublic void setParm(java.lang.String para, java.lang.String value)
SimpleDynamicListBean
para
equal to value value
.setParm
in interface SimpleDynamicListBean
para
- java.lang.Stringvalue
- java.lang.Stringpublic void setRequestProperties(TypedProperty param) throws java.lang.Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |