@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 MigrationServiceMigrationNotFoundExceptionpublic List<MigrationReport> getResults(Long id) throws MigrationNotFoundException
getResults in interface MigrationServiceMigrationNotFoundExceptionpublic List<Migration> findAll()
findAll in interface MigrationServicepublic Migration submit(MigrationDefinition definition) throws InvalidMigrationException
submit in interface MigrationServiceInvalidMigrationExceptionpublic Migration delete(Long id) throws MigrationNotFoundException
delete in interface MigrationServiceMigrationNotFoundExceptionpublic Migration update(Long id, MigrationDefinition definition) throws MigrationNotFoundException, ReScheduleException, InvalidMigrationException
update in interface MigrationServiceMigrationNotFoundExceptionReScheduleExceptionInvalidMigrationExceptionpublic Migration migrate(Migration migration) throws InvalidMigrationException
migrate in interface MigrationServiceInvalidMigrationExceptionpublic void validateDefinition(MigrationDefinition definition) throws InvalidMigrationException
InvalidMigrationExceptionCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.