public abstract class OneBaseUpgrade
extends com.edorasware.commons.core.persistence.schema.internal.BaseUpgrade
BaseUpgrade. It will also get the tenants once for all upgrades to improve the
performance of the upgrades.| Constructor and Description |
|---|
OneBaseUpgrade(String version,
String description,
com.edorasware.commons.core.util.bulk.BulkWorkObjectProcessor workObjectProcessor,
com.edorasware.commons.core.util.bulk.BulkWorkObjectDefinitionProcessor definitionProcessor,
com.edorasware.commons.core.identity.CurrentTenantService currentTenantService,
com.edorasware.commons.core.identity.CurrentUserService currentUserService,
UserManager userManager,
OnePersistence onePersistence,
org.springframework.transaction.PlatformTransactionManager transactionManager,
TenantLookupService tenantLookupService)
Creates a new instance of a one base upgrade with the given version and description of the upgrade.
|
| Modifier and Type | Method and Description |
|---|---|
protected Set<com.edorasware.commons.core.entity.TenantId> |
getTenantIds() |
void |
migrate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) |
public OneBaseUpgrade(String version, String description, com.edorasware.commons.core.util.bulk.BulkWorkObjectProcessor workObjectProcessor, com.edorasware.commons.core.util.bulk.BulkWorkObjectDefinitionProcessor definitionProcessor, com.edorasware.commons.core.identity.CurrentTenantService currentTenantService, com.edorasware.commons.core.identity.CurrentUserService currentUserService, UserManager userManager, OnePersistence onePersistence, org.springframework.transaction.PlatformTransactionManager transactionManager, TenantLookupService tenantLookupService)
version - the version of the upgradedescription - the description of the upgradeworkObjectProcessor - the work object processor for bulk updatesdefinitionProcessor - the work object definition processor for bulk updatescurrentTenantService - the current tenant service which is needed for executing the upgrades in a tenant scopecurrentUserService - the current user service which is needed for executing the upgrades in a user scopeuserManager - the user manager which is needed to retrieve the administrator useronePersistence - the one persistence which is used to get all tenants of the systemtransactionManager - the transaction manager to use for the upgradetenantLookupService - the tenant lookup servicepublic void migrate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
throws Exception
migrate in interface org.flywaydb.core.api.migration.spring.SpringJdbcMigrationmigrate in class com.edorasware.commons.core.persistence.schema.internal.BaseUpgradeExceptionprotected Set<com.edorasware.commons.core.entity.TenantId> getTenantIds()
getTenantIds in class com.edorasware.commons.core.persistence.schema.internal.BaseUpgradeCopyright © 2010 - 2017 edorasware ag. All Rights Reserved.