Interface TitleContentMappingManager

All Known Implementing Classes:
DefaultTitleContentMappingManager

public interface TitleContentMappingManager
Manager interface for handling operations related to TitleContentMapping. This interface acts as a service layer, providing business logic and transactional support for managing title-content mappings.
  • Method Details

    • getTitlesForOldestContentIdGroup

      @Transactional(readOnly=true) List<TitleContentMapping> getTitlesForOldestContentIdGroup()
      Retrieves a list of TitleContentMapping entities associated with the oldest content ID group. This method is marked as read-only since it only fetches data without modifying the database.
      Returns:
      A list of TitleContentMapping instances belonging to the oldest content ID group.
    • getContentIdByTitle

      @Transactional(readOnly=true) Long getContentIdByTitle(String title)
      Gets the content ID associated with a given title. This method is also marked as read-only to ensure it does not modify the database.
      Parameters:
      title - The title for which the corresponding content ID is to be fetched.
      Returns:
      The content ID associated with the given title, or null if no mapping exists.
    • deleteByTitle

      void deleteByTitle(String title, long contentId)
      Deletes a TitleContentMapping entity based on the given title. This method modifies the database by removing the mapping for the specified title.
      Parameters:
      title - The title of the mapping to be deleted.
    • create

      void create(TitleContentMapping titleContentMapping)
      Creates a new TitleContentMapping entity in the database. This method persists a new mapping with the specified title and content ID to the database.
      Parameters:
      titleContentMapping - The TitleContentMapping object to be created.