Package fr.enedis.chutney.campaign.infra
Class CampaignExecutionDBRepository
java.lang.Object
fr.enedis.chutney.campaign.infra.CampaignExecutionDBRepository
- All Implemented Interfaces:
CampaignExecutionRepository
@Repository
@Transactional(readOnly=true)
public class CampaignExecutionDBRepository
extends Object
implements CampaignExecutionRepository
-
Constructor Summary
ConstructorsConstructorDescriptionCampaignExecutionDBRepository(CampaignExecutionJpaRepository campaignExecutionJpaRepository, CampaignJpaRepository campaignJpaRepository, DatabaseExecutionJpaRepository scenarioExecutionJpaRepository) -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAllExecutionHistory(Long campaignId) currentExecutions(Long campaignId) voiddeleteExecutions(Set<Long> executionsIds) generateCampaignExecutionId(Long campaignId, String environment, DataSet dataset) getCampaignExecutionById(Long campaignExecId) getExecutionHistory(Long campaignId) getLastExecution(Long campaignId) getLastExecutions(Long numberOfExecution) voidsaveCampaignExecution(Long campaignId, CampaignExecution campaignExecution) voidstartExecution(Long campaignId, CampaignExecution campaignExecution) voidstopExecution(Long campaignId, String environment) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.enedis.chutney.campaign.domain.CampaignExecutionRepository
generateCampaignExecutionId
-
Constructor Details
-
CampaignExecutionDBRepository
public CampaignExecutionDBRepository(CampaignExecutionJpaRepository campaignExecutionJpaRepository, CampaignJpaRepository campaignJpaRepository, DatabaseExecutionJpaRepository scenarioExecutionJpaRepository)
-
-
Method Details
-
currentExecutions
- Specified by:
currentExecutionsin interfaceCampaignExecutionRepository
-
startExecution
- Specified by:
startExecutionin interfaceCampaignExecutionRepository
-
stopExecution
- Specified by:
stopExecutionin interfaceCampaignExecutionRepository
-
getLastExecution
- Specified by:
getLastExecutionin interfaceCampaignExecutionRepository
-
deleteExecutions
- Specified by:
deleteExecutionsin interfaceCampaignExecutionRepository
-
getExecutionHistory
- Specified by:
getExecutionHistoryin interfaceCampaignExecutionRepository
-
saveCampaignExecution
@Transactional public void saveCampaignExecution(Long campaignId, CampaignExecution campaignExecution) - Specified by:
saveCampaignExecutionin interfaceCampaignExecutionRepository
-
getLastExecutions
- Specified by:
getLastExecutionsin interfaceCampaignExecutionRepository
-
getCampaignExecutionById
- Specified by:
getCampaignExecutionByIdin interfaceCampaignExecutionRepository
-
clearAllExecutionHistory
- Specified by:
clearAllExecutionHistoryin interfaceCampaignExecutionRepository
-
generateCampaignExecutionId
@Transactional public Long generateCampaignExecutionId(Long campaignId, String environment, DataSet dataset) - Specified by:
generateCampaignExecutionIdin interfaceCampaignExecutionRepository
-