public abstract class AbstractCommand<T extends CommandResult> extends Object implements LiquibaseCommand<T>
Constructor and Description |
---|
AbstractCommand() |
Modifier and Type | Method and Description |
---|---|
T |
execute()
Executes the command.
|
int |
getPriority(String commandName) |
protected abstract T |
run() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, validate
public int getPriority(String commandName)
getPriority
in interface LiquibaseCommand<T extends CommandResult>
public final T execute() throws CommandExecutionException
LiquibaseCommand
LiquibaseCommand.validate()
as part of this method and throw CommandExecutionException
if validation fails or there are any errors executing the command.execute
in interface LiquibaseCommand<T extends CommandResult>
CommandExecutionException
Copyright © 2019 Liquibase.org. All rights reserved.