com.ibm.commerce.user.beans
Class MemberAttributeValueListDataBean
- java.lang.Object
-
- com.ibm.commerce.beans.InputDataBeanImpl
-
- com.ibm.commerce.beans.SmartDataBeanImpl
-
- com.ibm.commerce.user.beansrc.MemberAttributeValueListDataBeanBase
-
- com.ibm.commerce.user.beans.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 Summary
Fields Modifier and Type Field and Description static java.lang.String
CLASSNAME
The fully qualified class name.static java.lang.String
COPYRIGHT
IBM Copyright statement.-
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
-
-
Constructor Summary
Constructors Constructor and Description MemberAttributeValueListDataBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description 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 databeanvoid
setAttributeName(java.lang.String attrName)
Sets the name of the Member Attribute.-
Methods inherited from class com.ibm.commerce.user.beansrc.MemberAttributeValueListDataBeanBase
getDelegate, getMemberId, setMemberId
-
Methods inherited from class com.ibm.commerce.beans.SmartDataBeanImpl
fulfills, getCommandContext, getHttpRequest, getHttpResponse, getResources, getViewCommandContext, setCommandContext, setHttpRequest, setHttpResponse, setViewCommandContext
-
Methods inherited from class com.ibm.commerce.beans.InputDataBeanImpl
getRequestProperties, setRequestProperties
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.commerce.beans.InputDataBean
getRequestProperties, setRequestProperties
-
-
-
-
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
-
-
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 interfaceSmartDataBean
- Overrides:
populate
in classSmartDataBeanImpl
- 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.
-
-