Package sk.iway.iwcm.dmail.jpa
Interface EmailsRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<EmailsEntity,,Long> DomainIdRepository<EmailsEntity,,Long> org.springframework.data.jpa.repository.JpaRepository<EmailsEntity,,Long> org.springframework.data.jpa.repository.JpaSpecificationExecutor<EmailsEntity>,org.springframework.data.repository.PagingAndSortingRepository<EmailsEntity,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<EmailsEntity>,org.springframework.data.repository.Repository<EmailsEntity,Long>
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByCampainIdAndDomainId(Long campainId, Integer domainId) voiddeleteByCampainIdAndDomainIdWhereRecipientUserIsSet(Integer campainId, Integer domainId) voiddeleteCampainEmail(Long campainId, List<Integer> userIds, Integer domainId) org.springframework.data.domain.Page<EmailsEntity>findAllByCampainIdAndDomainId(Long campaingId, Integer domainId, org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<EmailsEntity>findAllByCampainIdAndDomainIdAndSeenDateIsNotNull(Long campaingId, Integer domainId, org.springframework.data.domain.Pageable pageable) findAllByCampainIdAndDomainIdOrderByIdDesc(Long campaingId, Integer domainId) getAllCampainEmails(Long campainId, Integer domainId) getNumberOfCampaingEmails(Long campainId, Integer domainId) getNumberOfSentEmails(Long campainId, Integer domainId) voidupdateCampaingEmails(Integer createdByUserId, String url, String subject, String senderName, String senderEmail, String replyTo, String ccEmail, String bccEmail, Date sendAt, String attachments, Long campaignId, Long oldCampaignId, Integer domainId) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface sk.iway.iwcm.system.datatable.spring.DomainIdRepository
findAllByDomainId, findAllByDomainId, findFirstByIdAndDomainIdMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, findAll, findAll, findAll, findOneMethods 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
-
deleteCampainEmail
-
getAllCampainEmails
-
findAllByCampainIdAndDomainId
org.springframework.data.domain.Page<EmailsEntity> findAllByCampainIdAndDomainId(Long campaingId, Integer domainId, org.springframework.data.domain.Pageable pageable) -
findAllByCampainIdAndDomainIdOrderByIdDesc
-
findAllByCampainIdAndDomainIdAndSeenDateIsNotNull
org.springframework.data.domain.Page<EmailsEntity> findAllByCampainIdAndDomainIdAndSeenDateIsNotNull(Long campaingId, Integer domainId, org.springframework.data.domain.Pageable pageable) -
updateCampaingEmails
@Transactional @Modifying @Query("UPDATE EmailsEntity SET createdByUserId=:createdByUserId, url=:url, subject=:subject, senderName=:senderName, senderEmail=:senderEmail, replyTo=:replyTo, ccEmail=:ccEmail, bccEmail=:bccEmail, sendAt=:sendAt, attachments=:attachments, campainId=:campaignId WHERE campainId = :oldCampaignId AND domainId = :domainId") void updateCampaingEmails(@Param("createdByUserId") Integer createdByUserId, @Param("url") String url, @Param("subject") String subject, @Param("senderName") String senderName, @Param("senderEmail") String senderEmail, @Param("replyTo") String replyTo, @Param("ccEmail") String ccEmail, @Param("bccEmail") String bccEmail, @Param("sendAt") Date sendAt, @Param("attachments") String attachments, @Param("campaignId") Long campaignId, @Param("oldCampaignId") Long oldCampaignId, @Param("domainId") Integer domainId) -
getNumberOfCampaingEmails
-
getNumberOfSentEmails
-
deleteByCampainIdAndDomainId
-
deleteByCampainIdAndDomainIdWhereRecipientUserIsSet
-