Interface SmsCampaignRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<SmsCampaign,,Long> org.springframework.data.jpa.repository.JpaRepository<SmsCampaign,,Long> org.springframework.data.jpa.repository.JpaSpecificationExecutor<SmsCampaign>,org.springframework.data.repository.ListCrudRepository<SmsCampaign,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<SmsCampaign,,Long> org.springframework.data.repository.PagingAndSortingRepository<SmsCampaign,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<SmsCampaign>,org.springframework.data.repository.Repository<SmsCampaign,Long>
public interface SmsCampaignRepository
extends org.springframework.data.jpa.repository.JpaRepository<SmsCampaign,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<SmsCampaign>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
org.springframework.data.jpa.repository.JpaSpecificationExecutor.SpecificationFluentQuery<T> -
Method Summary
Modifier and TypeMethodDescriptionfindActiveSmsCampaigns(String reportPattern, Integer triggerType) findByCampaignType(Integer campaignType) findByCampaignTypeAndTriggerTypeAndStatus(Integer campaignType, Integer triggerType, Integer status) findByTriggerType(Integer triggerType) findByTriggerTypeAndStatus(Integer triggerType, Integer 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.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, 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
-
findByCampaignType
-
findByCampaignTypeAndTriggerTypeAndStatus
Collection<SmsCampaign> findByCampaignTypeAndTriggerTypeAndStatus(Integer campaignType, Integer triggerType, Integer status) -
findByTriggerTypeAndStatus
-
findByTriggerType
-
findActiveSmsCampaigns
@Query("SELECT campaign FROM SmsCampaign campaign WHERE campaign.paramValue LIKE :reportPattern AND campaign.triggerType=:triggerType AND campaign.status=300") List<SmsCampaign> findActiveSmsCampaigns(@Param("reportPattern") String reportPattern, @Param("triggerType") Integer triggerType)
-