com.ibm.commerce.user.beans

Class MemberAttributeValueListDataBean

  • All Implemented Interfaces:
    DataBean, InputDataBean, SmartDataBean, Delegator, java.io.Serializable


    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 data bean, first sets the attribute name and the memberId of the member, then populates this data bean. After the data bean is populated, calls one of the get value methods to get the value or values.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright statement.
        See Also:
        Constant Field Values
      • CLASSNAME

        public static final java.lang.String CLASSNAME
        The fully qualified 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
        Specified by:
        populate in interface SmartDataBean
        Overrides:
        populate in class SmartDataBeanImpl
        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, an 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, an 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-independent 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-independent value instead.
        Returns:
        A list of values of this Member Attribute for this member.