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 TypeMethodDescriptionlongcountByCampaignIdAndStatus(String campaignId, String status) 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, saveMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.mongodb.repository.MongoRepository
findAll, findAll, insert, insertMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
countByCampaignIdAndStatus
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.
-