Class FactorValueMigratorServiceImpl
- java.lang.Object
-
- ubic.gemma.persistence.service.expression.experiment.FactorValueMigratorServiceImpl
-
- All Implemented Interfaces:
FactorValueMigratorService
@Service @Deprecated public class FactorValueMigratorServiceImpl extends Object implements FactorValueMigratorService
Deprecated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ubic.gemma.persistence.service.expression.experiment.FactorValueMigratorService
FactorValueMigratorService.Migration, FactorValueMigratorService.MigrationFailedException, FactorValueMigratorService.MigrationResult
-
-
Constructor Summary
Constructors Constructor Description FactorValueMigratorServiceImpl()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FactorValueMigratorService.MigrationResult
performMigration(FactorValueMigratorService.Migration migration, boolean noop)
Deprecated.Perform the given migration.Map<Long,List<FactorValueMigratorService.MigrationResult>>
performMigrationOfRemainingFactorValues(Set<Long> migratedFactorValueIds, boolean migrateNonTrivialCases, boolean noop)
Deprecated.Migrate all remaining factor values that have not been migrated yet.List<FactorValueMigratorService.MigrationResult>
performMigrationOfRemainingOldStyleCharacteristics(Long fvId, Set<Long> migratedOldStyleCharacteristicIds, boolean noop)
Deprecated.Migrate all the old-style characteristics of a given factor value to subject-only statements.List<FactorValueMigratorService.MigrationResult>
performMultipleMigrations(List<FactorValueMigratorService.Migration> migrations, boolean noop)
Deprecated.Perform multiple migrations in a single transaction.
-
-
-
Method Detail
-
performMigration
@Transactional public FactorValueMigratorService.MigrationResult performMigration(FactorValueMigratorService.Migration migration, boolean noop)
Deprecated.Description copied from interface:FactorValueMigratorService
Perform the given migration.- Specified by:
performMigration
in interfaceFactorValueMigratorService
- Parameters:
migration
- a migration to performnoop
- if true, do not save the resulting statement- Returns:
- the created or updated statement
-
performMultipleMigrations
@Transactional public List<FactorValueMigratorService.MigrationResult> performMultipleMigrations(List<FactorValueMigratorService.Migration> migrations, boolean noop) throws FactorValueMigratorService.MigrationFailedException
Deprecated.Description copied from interface:FactorValueMigratorService
Perform multiple migrations in a single transaction.- Specified by:
performMultipleMigrations
in interfaceFactorValueMigratorService
- Parameters:
migrations
- a list of migrations to perform- Returns:
- a list of created or updated statements
- Throws:
FactorValueMigratorService.MigrationFailedException
- if any of the migrations fail, the first failed migration is stored in the exception wrapper
-
performMigrationOfRemainingOldStyleCharacteristics
@Transactional public List<FactorValueMigratorService.MigrationResult> performMigrationOfRemainingOldStyleCharacteristics(Long fvId, Set<Long> migratedOldStyleCharacteristicIds, boolean noop)
Deprecated.Description copied from interface:FactorValueMigratorService
Migrate all the old-style characteristics of a given factor value to subject-only statements.The FV will be marked as troubled.
- Specified by:
performMigrationOfRemainingOldStyleCharacteristics
in interfaceFactorValueMigratorService
- Parameters:
fvId
- ID of the factor value to migratemigratedOldStyleCharacteristicIds
- a set of already migrated old-style characteristic IDs, if null theCharacteristic.isMigratedToStatement()
flag will be used to determine if a characteristic has already been migratednoop
- if true, do not save the resulting statements- Returns:
- list of created or updated statements from the given factor value
-
performMigrationOfRemainingFactorValues
@Transactional(propagation=NEVER) public Map<Long,List<FactorValueMigratorService.MigrationResult>> performMigrationOfRemainingFactorValues(Set<Long> migratedFactorValueIds, boolean migrateNonTrivialCases, boolean noop)
Deprecated.Description copied from interface:FactorValueMigratorService
Migrate all remaining factor values that have not been migrated yet.All the FVs with zero or one characteristics will be migrated automatically unless migratedToSubjectOnly is set, in which case all the old-style characteristics will be migrated to subject-only statements.
- Specified by:
performMigrationOfRemainingFactorValues
in interfaceFactorValueMigratorService
- Parameters:
migratedFactorValueIds
- IDs of already migrated FVsmigrateNonTrivialCases
- allow migration to subject-only statements for FVs with more than one old-style characteristics; those FVs will be marked as troubled.noop
- if true, do not save the resulting statements- Returns:
- created of updated statements organized by factor value ID
-
-