Class CampaignMigrator
java.lang.Object
fr.enedis.chutney.migration.domain.AbstractMigrator<CampaignEntity>
fr.enedis.chutney.migration.domain.CampaignMigrator
- All Implemented Interfaces:
DataMigrator
-
Field Summary
Fields inherited from class fr.enedis.chutney.migration.domain.AbstractMigrator
LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionCampaignMigrator(CampaignJpaRepository campaignJpaRepository, CampaignIndexRepository campaignIndexRepository) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.data.domain.Slice<CampaignEntity> findAll(org.springframework.data.domain.Pageable pageable) protected Stringprotected voidindex(List<CampaignEntity> entities) protected booleanMethods inherited from class fr.enedis.chutney.migration.domain.AbstractMigrator
migrate, migrate
-
Constructor Details
-
CampaignMigrator
public CampaignMigrator(CampaignJpaRepository campaignJpaRepository, CampaignIndexRepository campaignIndexRepository)
-
-
Method Details
-
findAll
protected org.springframework.data.domain.Slice<CampaignEntity> findAll(org.springframework.data.domain.Pageable pageable) - Specified by:
findAllin classAbstractMigrator<CampaignEntity>
-
index
- Specified by:
indexin classAbstractMigrator<CampaignEntity>
-
isMigrationDone
protected boolean isMigrationDone()- Specified by:
isMigrationDonein classAbstractMigrator<CampaignEntity>
-
getEntityName
- Specified by:
getEntityNamein classAbstractMigrator<CampaignEntity>
-