public interface LiquibaseCommand<T extends CommandResult>
Changes and usually interact with the outside world.
Commands are different from Actions in that they implement end-user functionality rather than small pieces of logic.
We package functionaly as commands so that the command line interface as well as other integrations can all use the same business logic.| Modifier and Type | Method and Description |
|---|---|
T |
execute()
Executes the command.
|
String |
getName() |
int |
getPriority(String commandName) |
CommandValidationErrors |
validate() |
String getName()
CommandValidationErrors validate()
T execute() throws CommandExecutionException
validate() as part of this method and throw CommandExecutionException if validation fails or there are any errors executing the command.CommandExecutionExceptionint getPriority(String commandName)
Copyright © 2019 Liquibase.org. All rights reserved.