com.ibm.commerce.user.beans
Class MemberAttributeValueListDataBean

java.lang.Object
  |
  +--com.ibm.commerce.user.beansrc.MemberAttributeValueListDataBeanBase
        |
        +--com.ibm.commerce.user.beans.MemberAttributeValueListDataBean

public class MemberAttributeValueListDataBean
extends com.ibm.commerce.user.beansrc.MemberAttributeValueListDataBeanBase

This data bean is used to retrieve the value or values of a Member Attribute for a member. Member Attribute is the attribute defined in the MBRATTR table. It may be multiple valued or store entity sensitive. To use this databean, first sets the attribute name and the memberId of the member, then actives this databean. After the databean is actived, calls one of the get value methods to get the value or values.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASSNAME
          The full class name.
static java.lang.String COPYRIGHT
          IBM Copyright statement.
 
Constructor Summary
MemberAttributeValueListDataBean()
           
 
Method Summary
 java.lang.String getAttributeName()
          Gets the name of the Member Attribute.
 java.lang.String getAttributeType()
          Gets the type of the Member Attribute.
 java.lang.String getValue()
          Gets a single value of this Member Attribute for this member.
 java.lang.String getValue(java.lang.String storeEntityId)
          Gets a single store-dependent value of this Member Attribute for this member.
 java.util.List getValues()
          Gets a list of values of this Member Attribute for this member.
 java.util.List getValues(java.lang.String storeEntityId)
          Gets a list of store-dependent values of this Member Attribute for this member.
 void populate()
          Populates the databean
 void setAttributeName(java.lang.String attrName)
          Sets the name of the Member Attribute.
 
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
IBM Copyright statement.
See Also:
Constant Field Values

CLASSNAME

public static final java.lang.String CLASSNAME
The full class name.
See Also:
Constant Field Values
Constructor Detail

MemberAttributeValueListDataBean

public MemberAttributeValueListDataBean()
Method Detail

setAttributeName

public void setAttributeName(java.lang.String attrName)
Sets the name of the Member Attribute.
Parameters:
attrName - The name of the Member Attribute.

getAttributeName

public java.lang.String getAttributeName()
Gets the name of the Member Attribute.
Returns:
The name of the Member Attribute.

populate

public void populate()
              throws java.lang.Exception
Populates the databean
Throws:
java.lang.Exception - Any exception thrown when populates the data bean.

getAttributeType

public java.lang.String getAttributeType()
Gets the type of the Member Attribute. This method should be called after the data bean is activated.
Returns:
The type of the Member Attribute. Possible values are "STRING", "INTEGER", "FLOAT", "DATETIME".

getValues

public java.util.List getValues()
Gets a list of values of this Member Attribute for this member. The values in the list are converted to String data type and are store-independent. If this Member Attribute has not value, a empty list will be returned.
Returns:
A list of values of this Member Attribute for this member.

getValue

public java.lang.String getValue()
Gets a single value of this Member Attribute for this member. The value is converted to String data type and is store-independent. If this Member Attribute has no value for this member, null will be returned. If this Member Attribute has more than one values for this member, the first value will be returned.
Returns:
A list of values of this Member Attribute for this member.

getValues

public java.util.List getValues(java.lang.String storeEntityId)
Gets a list of store-dependent values of this Member Attribute for this member. The values in the list are converted to String data type and are defined under the specified store. If this Member Attribute has not value, a empty list will be returned.
Parameters:
storeEntityId - The store entity id under which the values are defined. If store entity id is null or a String "null", returns store-independant values instead.
Returns:
A list of values of this Member Attribute for this member.

getValue

public java.lang.String getValue(java.lang.String storeEntityId)
Gets a single store-dependent value of this Member Attribute for this member. The value is converted to String data type and is defined under the specified store. If this Member Attribute has no value for this member, null will be returned. If this Member Attribute has more than one values for this member, the first value will be returned.
Parameters:
storeEntityId - The store entity id under which the values are defined. If store entity id is null or a String "null", returns store-independant value instead.
Returns:
A list of values of this Member Attribute for this member.