@ApplicationScoped public class MigrationServiceImpl extends Object implements MigrationService
Modifier and Type | Field and Description |
---|---|
static Integer |
QUERY_PAGE_SIZE |
Constructor and Description |
---|
MigrationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Migration |
delete(Long id) |
List<Migration> |
findAll() |
Migration |
get(Long id) |
List<MigrationReport> |
getResults(Long id) |
Migration |
migrate(Migration migration) |
Migration |
submit(MigrationDefinition definition) |
Migration |
update(Long id,
MigrationDefinition definition) |
void |
validateDefinition(MigrationDefinition definition) |
public static final Integer QUERY_PAGE_SIZE
public Migration get(Long id) throws MigrationNotFoundException
get
in interface MigrationService
MigrationNotFoundException
public List<MigrationReport> getResults(Long id) throws MigrationNotFoundException
getResults
in interface MigrationService
MigrationNotFoundException
public List<Migration> findAll()
findAll
in interface MigrationService
public Migration submit(MigrationDefinition definition) throws InvalidMigrationException
submit
in interface MigrationService
InvalidMigrationException
public Migration delete(Long id) throws MigrationNotFoundException
delete
in interface MigrationService
MigrationNotFoundException
public Migration update(Long id, MigrationDefinition definition) throws MigrationNotFoundException, ReScheduleException, InvalidMigrationException
update
in interface MigrationService
MigrationNotFoundException
ReScheduleException
InvalidMigrationException
public Migration migrate(Migration migration) throws InvalidMigrationException
migrate
in interface MigrationService
InvalidMigrationException
public void validateDefinition(MigrationDefinition definition) throws InvalidMigrationException
InvalidMigrationException
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.