com.ibm.commerce.member.dataobjects

Class MemberAttributesDO



  • public class MemberAttributesDO
    extends DOBase
    Sync helper data object class, called by UserSyncBean and OrganizationSyncBean to read/write data from/to the "MBRATTRVAL" database table.
    • Field Detail

      • CLASSNAME

        public static final java.lang.String CLASSNAME
        Class name.
      • COPYRIGHT

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

      • MemberAttributesDO

        public MemberAttributesDO()
        Empty constructor.
      • MemberAttributesDO

        public MemberAttributesDO(java.lang.String memberId,
                                  short shMemberType)
        Constructor.
        Parameters:
        memberId - The member ID.
        shMemberType - The member type.
    • Method Detail

      • isMemberAttribute

        public static boolean isMemberAttribute(java.lang.String astrMemberAttributeName)
                                         throws ECException
        Determines if the attribute is a custom attribute defined in the MBRATTR table.
        Parameters:
        astrMemberAttributeName - The attribute name.
        Returns:
        true if it is a custom attribute, false otherwise.
        Throws:
        ECException
      • getDOName

        public java.lang.String getDOName()
        Gets the name of the class.
        Specified by:
        getDOName in class DOBase
        Returns:
        the name of the class.
      • read

        public TypedProperty read()
                           throws javax.persistence.NoResultException,
                                  ECException
        Reads the custom attributes from the database. Properties will be stored in the typed property with the following structure:
        • key: attribute name
        • value: Hashtable of vectors with key: store entity Id; values: attribute values
        Specified by:
        read in class DOBase
        Returns:
        TypedProperty The properties read from the database.
        Throws:
        javax.persistence.NoResultException
        ECException
      • write

        public void write(TypedProperty tpProperties)
                   throws javax.persistence.NoResultException,
                          ECException
        Persists the changes to the database.
        Specified by:
        write in class DOBase
        Parameters:
        tpProperties - The properties to persist to the database.
        Throws:
        javax.persistence.NoResultException
        ECException