liquibase.command.AbstractCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
package liquibase.command;
import java.util.SortedSet;
import java.util.TreeSet;
/**
* @deprecated Implement commands with {@link liquibase.command.CommandStep} and call them with {@link liquibase.command.CommandFactory#getCommandDefinition(String...)}.
*/
public abstract class AbstractCommand implements LiquibaseCommand {
@Override
public int getPriority(String commandName) {
if ((commandName != null) && commandName.equalsIgnoreCase(getName())) {
return PRIORITY_DEFAULT;
} else {
return PRIORITY_NOT_APPLICABLE;
}
}
@Override
public SortedSet getArguments() {
return new TreeSet<>();
}
}