com.ibm.commerce.tools.promotions
Class CustomerGroupDataBean

java.lang.Object
  |
  +--com.ibm.commerce.beans.InputDataBeanImpl
        |
        +--com.ibm.commerce.beans.SmartDataBeanImpl
              |
              +--com.ibm.commerce.tools.promotions.beansrc.CustomerGroupDataBeanBase
                    |
                    +--com.ibm.commerce.tools.promotions.CustomerGroupDataBean
All Implemented Interfaces:
DataBean, InputDataBean, java.io.Serializable, SmartDataBean

public class CustomerGroupDataBean
extends CustomerGroupDataBeanBase

The bean representing all customer Groups within a store. This bean maps to the table storembrgrp,mbrgrp,mbrgrpusg.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          The internal copyright field.
protected  java.util.Vector memberGroupId
          Provide a Vector of member group IDs
protected  java.util.Vector memberGroupName
          Provide a Vector of member group names
protected  java.lang.Integer memberGroupTypeId
          Provide a member group type ID
 
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.beans. DataBean
emptyString
 
Constructor Summary
CustomerGroupDataBean()
          CustomerGroupDataBean constructor.
 
Method Summary
 int getLength()
          get the size of groups
 java.lang.String getMemberGroupId(int index)
          get ID of the member group
 java.lang.String getMemberGroupName(int index)
          get current member group name
 java.lang.Integer getMemberGroupTypeId()
          get ID of the member group type
 void populate()
          populate this databean to GUI.
 void setMemberGroupTypeId(java.lang.Integer newMemberGroupTypeId)
          Assign a member group type id
 
Methods inherited from class com.ibm.commerce.tools.promotions.beansrc. CustomerGroupDataBeanBase
getDelegate, getOwner
 
Methods inherited from class com.ibm.commerce.beans. SmartDataBeanImpl
fulfills, getCommandContext, getResources, setCommandContext
 
Methods inherited from class com.ibm.commerce.beans. InputDataBeanImpl
getRequestProperties, setRequestProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.beans. InputDataBean
getRequestProperties, setRequestProperties
 

Field Detail
public static final java.lang.String COPYRIGHT
The internal copyright field.
See Also:
Constant Field Values

memberGroupName

protected java.util.Vector memberGroupName
Provide a Vector of member group names

memberGroupId

protected java.util.Vector memberGroupId
Provide a Vector of member group IDs

memberGroupTypeId

protected java.lang.Integer memberGroupTypeId
Provide a member group type ID
Constructor Detail

CustomerGroupDataBean

public CustomerGroupDataBean()
CustomerGroupDataBean constructor.
Method Detail

getLength

public int getLength()
get the size of groups
Returns:
int

getMemberGroupId

public java.lang.String getMemberGroupId(int index)
get ID of the member group
Returns:
String ID of the member group

getMemberGroupName

public java.lang.String getMemberGroupName(int index)
get current member group name
Parameters:
index - in the array of the member groups
Returns:
current member group name

getMemberGroupTypeId

public java.lang.Integer getMemberGroupTypeId()
get ID of the member group type
Returns:
ID of the member group type

populate

public void populate()
              throws ECException
populate this databean to GUI.
Specified by:
populate in interface SmartDataBean
Overrides:
populate in class SmartDataBeanImpl
Throws:
com.ibm.commerce.exception.ECException.
ECException

setMemberGroupTypeId

public void setMemberGroupTypeId(java.lang.Integer newMemberGroupTypeId)
Assign a member group type id