public abstract class AbstractLiquibaseCommand<T extends Configuration> extends ConfiguredCommand<T>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLiquibaseCommand(String name,
String description,
DatabaseConfiguration<T> strategy,
Class<T> configurationClass,
String migrationsFileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(net.sourceforge.argparse4j.inf.Subparser subparser)
Configure the command's
Subparser. |
protected Class<T> |
getConfigurationClass()
Returns the
Class of the configuration type. |
protected void |
run(Bootstrap<T> bootstrap,
net.sourceforge.argparse4j.inf.Namespace namespace,
T configuration)
Runs the command with the given
Bootstrap and Configuration. |
protected abstract void |
run(net.sourceforge.argparse4j.inf.Namespace namespace,
liquibase.Liquibase liquibase) |
addFileArgument, cleanup, cleanupAsynchronously, getConfiguration, rungetDescription, getName, onErrorprotected Class<T> getConfigurationClass()
ConfiguredCommandClass of the configuration type.getConfigurationClass in class ConfiguredCommand<T extends Configuration>Class of the configuration typepublic void configure(net.sourceforge.argparse4j.inf.Subparser subparser)
ConfiguredCommandSubparser. N.B.: if you override this method, you
must call super.override(subparser) in order to preserve the configuration
file parameter in the subparser.
configure in class ConfiguredCommand<T extends Configuration>subparser - the Subparser specific to the commandprotected void run(@Nullable Bootstrap<T> bootstrap, net.sourceforge.argparse4j.inf.Namespace namespace, T configuration) throws Exception
ConfiguredCommandBootstrap and Configuration.run in class ConfiguredCommand<T extends Configuration>bootstrap - the bootstrap bootstrapnamespace - the parsed command line namespaceconfiguration - the configuration objectException - if something goes wrongCopyright © 2021. All rights reserved.