Class UserAttributeStorageImpl

    • Constructor Detail

      • UserAttributeStorageImpl

        public UserAttributeStorageImpl​(@NotNull
                                        SQLRunnerEx sqlRunner)
    • Method Detail

      • delete

        public boolean delete​(long userId,
                              @NotNull
                              String attributeKey)
        Description copied from interface: UserAttributeStorage
        Delete user attribute
        Specified by:
        delete in interface UserAttributeStorage
        Parameters:
        userId - user id
        attributeKey - attribute key
        Returns:
        true if the attribute with specified key was deleted and false otherwise
      • save

        public void save​(long userId,
                         @NotNull
                         String attributeKey,
                         @NotNull
                         String attributeValue)
        Description copied from interface: UserAttributeStorage
        Insert new user attribute or update existing one
        Specified by:
        save in interface UserAttributeStorage
        Parameters:
        userId - user id
        attributeKey - attribute key
        attributeValue - attribute value