All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.command.AbstractCommand Maven / Gradle / Ivy

There is a newer version: 4.29.2
Show newest version
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<>();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy