com.ibm.commerce.tools.epromotion.databeans
Class RLDiscountListBaseBean

java.lang.Object
  |
  +--com.ibm.commerce.beans.InputDataBeanImpl
        |
        +--com.ibm.commerce.beans.SmartDataBeanImpl
              |
              +--com.ibm.commerce.tools.epromotion.beansrc.RLDiscountListBeanBase
                    |
                    +--com.ibm.commerce.tools.epromotion.databeans.RLDiscountListBaseBean
All Implemented Interfaces:
DataBean, InputDataBean, RLConstants, java.io.Serializable, SimpleDynamicListBean, SmartDataBean
Direct Known Subclasses:
RLDiscountListBean, RLProdPromoListBean, RLPromotionListBean

public abstract class RLDiscountListBaseBean
extends RLDiscountListBeanBase
implements SimpleDynamicListBean, RLConstants

The bean representing an discount calculationcode list of a store. This bean maps to the table calcode.

See Also:
SimpleDynamicListBean, ECPromotionsConstants, Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          The internal copyright field.
 
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.epromotion. RLConstants
CATEGORY_LEVEL_DISPLAY_FLAG, DISCOUNT_DEPLOYMENT, EC_CALCODE_ID, EC_CODE, EC_DESCRIPTION, EC_DISCOUNTNAME, EC_ENDDATE, EC_ORDERBY, EC_PRIORITY, EC_RANGE_MAX, EC_STARTDATE, EC_STATUS, ERROR_PROMOTION_DELETED_DUPLICATE_CODE, ERROR_PROMOTION_DUPLICATE_CODE, ERROR_PROMOTION_NOT_SAVED, ERROR_PROMOTION_NOT_UPDATED, MSG_PROMOTION_SAVED, MSG_PROMOTION_UPDATED, NEVER_EXPIRE, ORDER_LEVEL_DISPLAY_FLAG, PRODUCT_LEVEL_DISPLAY_FLAG, REST_OF_TIMESTRING, RLPROMOTION, RLPROMOTION_ASSIGNEDSEGMENTS, RLPROMOTION_CATEGORYLEVELBUYXGETYFREE, RLPROMOTION_CATEGORYLEVELPERCENTDISCOUNT, RLPROMOTION_CATEGORYLEVELPERITEMVALUEDISCOUNT, RLPROMOTION_CATEGORYLEVELSAMEITEMPERCENTDISCOUNT, RLPROMOTION_CATEGORYLEVELVALUEDISCOUNT, RLPROMOTION_CATENTRY_ID, RLPROMOTION_CATENTRY_TYPE, RLPROMOTION_CATGROUP_CODE, RLPROMOTION_CATGROUP_ID, RLPROMOTION_CURRENCY, RLPROMOTION_DATERANGED, RLPROMOTION_DAYSINWEEK, RLPROMOTION_DESCRIPTION, RLPROMOTION_DESCRIPTION_LONG_NL, RLPROMOTION_DESCRIPTION_NL, RLPROMOTION_DISCOUNT_ITEM_QTY, RLPROMOTION_DISCOUNT_ITEM_SKU, RLPROMOTION_DISPLAY_LEVEL, RLPROMOTION_ENDDAY, RLPROMOTION_ENDHOUR, RLPROMOTION_ENDMONTH, RLPROMOTION_ENDYEAR, RLPROMOTION_FRIDAY, RLPROMOTION_GWP_CATENTRY_ID, RLPROMOTION_INCOMBINATIONWITH, RLPROMOTION_ISEVERYDAYFLAG, RLPROMOTION_ITEMLEVELBUYXGETYFREE, RLPROMOTION_ITEMLEVELPERCENTDISCOUNT, RLPROMOTION_ITEMLEVELPERITEMVALUEDISCOUNT, RLPROMOTION_ITEMLEVELSAMEITEMPERCENTDISCOUNT, RLPROMOTION_ITEMLEVELVALUEDISCOUNT, RLPROMOTION_MAX_DISCOUNT_ITEM_QTY, RLPROMOTION_MERCHANDISE_TYPE, RLPROMOTION_MONDAY, RLPROMOTION_NAME, RLPROMOTION_ORDERLEVELFIXEDSHIPPINGDISCOUNT, RLPROMOTION_ORDERLEVELFREEGIFT, RLPROMOTION_ORDERLEVELPERCENTDISCOUNT, RLPROMOTION_ORDERLEVELVALUEDISCOUNT, RLPROMOTION_PRIORITY, RLPROMOTION_PROD_SEARCH_PAGE, RLPROMOTION_PRODUCT_SKU, RLPROMOTION_PRODUCTLEVELBUYXGETYFREE, RLPROMOTION_PRODUCTLEVELPERCENTDISCOUNT, RLPROMOTION_PRODUCTLEVELPERITEMVALUEDISCOUNT, RLPROMOTION_PRODUCTLEVELSAMEITEMPERCENTDISCOUNT, RLPROMOTION_PRODUCTLEVELVALUEDISCOUNT, RLPROMOTION_RANGES, RLPROMOTION_REQUIRED_QTY, RLPROMOTION_RESOURCES, RLPROMOTION_SATURDAY, RLPROMOTION_SHIPMODEID, RLPROMOTION_STARTDAY, RLPROMOTION_STARTHOUR, RLPROMOTION_STARTMONTH, RLPROMOTION_STARTYEAR, RLPROMOTION_SUNDAY, RLPROMOTION_TARGETSALES, RLPROMOTION_THURSDAY, RLPROMOTION_TIMERANGED, RLPROMOTION_TUESDAY, RLPROMOTION_TYPE, RLPROMOTION_VALIDFORALLCUSTOMERS, RLPROMOTION_VALUE, RLPROMOTION_VALUES, RLPROMOTION_WEDNESDAY, ZERO_STRING
 
Fields inherited from interface com.ibm.commerce.beans. DataBean
emptyString
 
Constructor Summary
RLDiscountListBaseBean()
          DiscountCalculationCodeList constructor.
 
Method Summary
 java.lang.String getCalcode_Id(int index)
          gets calcode_id
 java.lang.String getCheckBoxName(int index)
          gets the check box name in each row .
 java.lang.String getCode(int index)
          gets the name of the discount.
 java.lang.String[] getColumns(int i)
          gets the values for the columns in the list
static java.lang.String getCOPYRIGHT()
          gets COPYRIGHT string Creation date: (4/17/01 7:42:44 PM)
 java.lang.String getDefaultAction(int i)
          gets default action
 java.lang.String getDescription(int index)
          gets administrator's description for the discount associated by index i
abstract  java.lang.Integer getDisplayLevelFlag()
          gets displayLevel flag Creation date: (5/2/2002 1:14:14 PM)
 java.lang.String getEndDate(int index)
          gets the end date of the current discount
 java.lang.String[][] getHeadings()
          gets the column headings for the discount list
 int getLength()
          gets the length
 int getListSize()
          gets the discount list size
 java.lang.String getOrderBy()
          gets the orderby string on which the list has to be sorted.
 java.lang.String getParm(java.lang.String para)
          gets the internal parameter name associated with the param passed.
 java.lang.String getPriority(int index)
          gets the priority of discount
  RLPromotionListRow[] getPromotionRowList()
          gets the choosen row of the disocunt list.
 java.lang.String getPublished(int index)
          gets the status of the discount .
  TypedProperty getRequestProperties()
          Returns the request properties of the databean.
 java.lang.String getStartDate(int index)
          gets the start date of discount
 java.lang.String getUserJSfnc()
          gets user defined JavaScript function
 java.lang.String getUserJSfnc(java.util.Hashtable NLSfile)
          gets user defined NLS specific JavaScript function
 void populate()
          populate this DataBean to GUI.
 void setLength(int newLength)
          set the value of Length
 void setOrderBy(java.lang.String newOrderBy)
          set the value of OrderBy
 void setParm(java.lang.String para, java.lang.String value)
          set the value of Parameter
 void setPromotionRowList( RLPromotionListRow[] newRLPromotionRowList)
          set the value of DiscountRowList
 void setRequestProperties( TypedProperty param)
          set the value of request Properties
 
Methods inherited from class com.ibm.commerce.tools.epromotion.beansrc. RLDiscountListBeanBase
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
The internal copyright field.
See Also:
Constant Field Values
Constructor Detail

RLDiscountListBaseBean

public RLDiscountListBaseBean()
DiscountCalculationCodeList constructor.
Method Detail

getCalcode_Id

public java.lang.String getCalcode_Id(int index)
gets calcode_id
Returns:
ID of calculation code, also is the ID of the discount object.

getCheckBoxName

public java.lang.String getCheckBoxName(int index)
gets the check box name in each row .
Specified by:
getCheckBoxName in interface SimpleDynamicListBean
Parameters:
index - The for which you want the name of the check box.
Returns:
the name of check box in each Row i

getCode

public java.lang.String getCode(int index)
gets the name of the discount.
Parameters:
index - of the Array of the discounts.
Returns:
the name of the discount.

getColumns

public java.lang.String[] getColumns(int i)
gets the values for the columns in the list
Specified by:
getColumns in interface SimpleDynamicListBean
Parameters:
i - The row for which you want to return the contents.
Returns:
String Array of the Discount properties, which will be represented in one column.

getCOPYRIGHT

public static final java.lang.String getCOPYRIGHT()
gets COPYRIGHT string Creation date: (4/17/01 7:42:44 PM)
Returns:
java.lang.String

getDefaultAction

public java.lang.String getDefaultAction(int i)
gets default action
Specified by:
getDefaultAction in interface SimpleDynamicListBean
Parameters:
i - The row for which you want the first column hyper-link.
Returns:
NONE in this case

getDescription

public java.lang.String getDescription(int index)
gets administrator's description for the discount associated by index i
Parameters:
index - of the Array of the discounts.
Returns:
administrator's description for the discount associated by index i.

getDisplayLevelFlag

public abstract java.lang.Integer getDisplayLevelFlag()
gets displayLevel flag Creation date: (5/2/2002 1:14:14 PM)
Returns:
java.lang.Integer

getEndDate

public java.lang.String getEndDate(int index)
gets the end date of the current discount
Parameters:
index - of the Array of the discounts.
Returns:
the end date of the current discount availablity.

getHeadings

public java.lang.String[][] getHeadings()
gets the column headings for the discount list
Specified by:
getHeadings in interface SimpleDynamicListBean
Returns:
HTML table heading

getLength

public int getLength()
gets the length
Returns:
length

getListSize

public int getListSize()
gets the discount list size
Specified by:
getListSize in interface SimpleDynamicListBean
Returns:
the size of discount list found

getOrderBy

public java.lang.String getOrderBy()
gets the orderby string on which the list has to be sorted.
Returns:
the property name, which used to sort the list records.

getParm

public java.lang.String getParm(java.lang.String para)
gets the internal parameter name associated with the param passed.
Specified by:
getParm in interface SimpleDynamicListBean
Returns:
the internal parameter name associated with the param passed.

getPromotionRowList

public RLPromotionListRow[] getPromotionRowList()
gets the choosen row of the disocunt list.
Returns:
com.ibm.commerce.tools.epromotion.databeans.DiscountChooseListRow[]

getPublished

public java.lang.String getPublished(int index)
gets the status of the discount .
Parameters:
index - of the array of discount
Returns:
the discount status

getRequestProperties

public TypedProperty getRequestProperties()
Description copied from interface: InputDataBean
Returns the request properties of the databean.
Specified by:
getRequestProperties in interface InputDataBean
Overrides:
getRequestProperties in class InputDataBeanImpl
Returns:
the request properties

getStartDate

public java.lang.String getStartDate(int index)
gets the start date of discount
Parameters:
index - of the Array of the discounts.
Returns:
start date of the discount availablity.

getPriority

public java.lang.String getPriority(int index)
gets the priority of discount
Parameters:
index - of the Array of the discounts.
Returns:
priority of the discount.

getUserJSfnc

public java.lang.String getUserJSfnc()
gets user defined JavaScript function
Returns:
User defined JavaScript functions

getUserJSfnc

public java.lang.String getUserJSfnc(java.util.Hashtable NLSfile)
gets user defined NLS specific JavaScript function
Specified by:
getUserJSfnc in interface SimpleDynamicListBean
Parameters:
NLSfile - The JavaScript file which contains national language characters.
Returns:
User defined JavaScript functions

populate

public void populate()
              throws java.lang.Exception
populate this DataBean to GUI.
Specified by:
populate in interface SmartDataBean
Overrides:
populate in class SmartDataBeanImpl
Throws:
java.lang.Exception

setLength

public void setLength(int newLength)
set the value of Length

setOrderBy

public void setOrderBy(java.lang.String newOrderBy)
set the value of OrderBy
Parameters:
newOrderBy - java.lang.String

setParm

public void setParm(java.lang.String para,
                    java.lang.String value)
set the value of Parameter
Specified by:
setParm in interface SimpleDynamicListBean
Parameters:
para - java.lang.String
value - java.lang.String

setPromotionRowList

public void setPromotionRowList(RLPromotionListRow[] newRLPromotionRowList)
set the value of DiscountRowList

setRequestProperties

public void setRequestProperties(TypedProperty param)
                          throws java.lang.Exception
set the value of request Properties
Specified by:
setRequestProperties in interface InputDataBean
Overrides:
setRequestProperties in class InputDataBeanImpl
Parameters:
param - com.ibm.commerce.datatype.TypedProperty
Throws:
java.lang.Exception