com.ibm.commerce.member.dataload.helper

Class MemberDataLoadHelper

  • java.lang.Object
    • com.ibm.commerce.member.dataload.helper.MemberDataLoadHelper


  • public class MemberDataLoadHelper
    extends java.lang.Object
    This class contains static helper methods for member data load.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      The IBM copyright field.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String generateSalt()
      Generates a random salt string which has length of 12.
      static boolean isValidEmailAddress(java.lang.String emailAddr)
      Answers whether or not the email address has valid syntax as per RFC 5321, 5322, 2822
      static java.lang.Long resolveOwnerIdByStoreId(int storeId)
      Resolves the owner id (MEMBER_ID column of STOREENT table) according to store id (STOREENT_ID column of STOREENT table).
      static java.lang.Long resolveOwnerIdByStoreIdentifier(java.lang.String storeIdentifier)
      Resolves the owner id (MEMBER_ID column of STOREENT table) according to store identifier (IDENTIFIER column of STOREENT table).
      static java.lang.Integer resolveStoreIdByStoreIdentifier(java.lang.String storeIdentifier)
      Resolves the store id according to store identifier (IDENTIFIER column of STOREENT table).
      static boolean validateStoreId(int storeId)
      Validates the store ID to see if it is a valid store in the database.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

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

      • MemberDataLoadHelper

        public MemberDataLoadHelper()
    • Method Detail

      • resolveOwnerIdByStoreId

        public static java.lang.Long resolveOwnerIdByStoreId(int storeId)
        Resolves the owner id (MEMBER_ID column of STOREENT table) according to store id (STOREENT_ID column of STOREENT table).
        Parameters:
        storeId - the store id
        Returns:
        the owner id of the store
      • validateStoreId

        public static boolean validateStoreId(int storeId)
        Validates the store ID to see if it is a valid store in the database.
        Parameters:
        storeId - a store ID
        Returns:
        true if the store ID is valid, false otherwise.
      • resolveOwnerIdByStoreIdentifier

        public static java.lang.Long resolveOwnerIdByStoreIdentifier(java.lang.String storeIdentifier)
        Resolves the owner id (MEMBER_ID column of STOREENT table) according to store identifier (IDENTIFIER column of STOREENT table).
        Parameters:
        storeIdentifier - the store identifier
        Returns:
        the owner id of the store
      • resolveStoreIdByStoreIdentifier

        public static java.lang.Integer resolveStoreIdByStoreIdentifier(java.lang.String storeIdentifier)
        Resolves the store id according to store identifier (IDENTIFIER column of STOREENT table).
        Parameters:
        storeIdentifier - the store identifier
        Returns:
        the store id of the store
      • isValidEmailAddress

        public static boolean isValidEmailAddress(java.lang.String emailAddr)
        Answers whether or not the email address has valid syntax as per RFC 5321, 5322, 2822
        Parameters:
        emailAddr - the email address
        Returns:
        true|false
      • generateSalt

        public static java.lang.String generateSalt()
        Generates a random salt string which has length of 12.
        Returns:
        a random generated salt string.