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

    Modifier and Type
    Method
    Description
    findActiveEmailCampaigns(String reportPattern, Integer type)
     

    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.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    count, delete, exists, findAll, findAll, findAll, findBy, findOne

    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.repository.PagingAndSortingRepository

    findAll

    Methods 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)