Interface CommunicationLogRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<CommunicationLog,String>, org.springframework.data.repository.ListCrudRepository<CommunicationLog,String>, org.springframework.data.repository.ListPagingAndSortingRepository<CommunicationLog,String>, org.springframework.data.mongodb.repository.MongoRepository<CommunicationLog,String>, org.springframework.data.repository.PagingAndSortingRepository<CommunicationLog,String>, org.springframework.data.repository.query.QueryByExampleExecutor<CommunicationLog>, org.springframework.data.repository.Repository<CommunicationLog,String>

@Repository public interface CommunicationLogRepository extends org.springframework.data.mongodb.repository.MongoRepository<CommunicationLog,String>
Spring Data MongoDB repository for managing CommunicationLog entities.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Counts the number of communication logs for a given campaign and status.

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.mongodb.repository.MongoRepository

    findAll, findAll, insert, insert

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • countByCampaignIdAndStatus

      long countByCampaignIdAndStatus(String campaignId, String status)
      Counts the number of communication logs for a given campaign and status.
      Parameters:
      campaignId - The ID of the campaign.
      status - The status of the logs to count.("SENT", "FAILED", "PENDING")
      Returns:
      The count of logs matching the criteria.