Interface EmailCampaignRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<EmailCampaign,,Long> org.springframework.data.jpa.repository.JpaRepository<EmailCampaign,,Long> org.springframework.data.jpa.repository.JpaSpecificationExecutor<EmailCampaign>,org.springframework.data.repository.ListCrudRepository<EmailCampaign,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<EmailCampaign,,Long> org.springframework.data.repository.PagingAndSortingRepository<EmailCampaign,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<EmailCampaign>,org.springframework.data.repository.Repository<EmailCampaign,Long>
public interface EmailCampaignRepository
extends org.springframework.data.jpa.repository.JpaRepository<EmailCampaign,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<EmailCampaign>
-
Method Summary
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, delete, exists, findAll, findAll, findAll, findBy, findOneMethods 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.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findActiveEmailCampaigns
@Query("SELECT campaign FROM EmailCampaign campaign WHERE campaign.paramValue LIKE :reportPattern AND campaign.campaignType=:type AND campaign.status=300") List<EmailCampaign> findActiveEmailCampaigns(@Param("reportPattern") String reportPattern, @Param("type") Integer type)
-