Package io.dropwizard.migrations
Class DbTagCommand<T extends Configuration>
java.lang.Object
io.dropwizard.core.cli.Command
io.dropwizard.core.cli.ConfiguredCommand<T>
io.dropwizard.migrations.AbstractLiquibaseCommand<T>
io.dropwizard.migrations.DbTagCommand<T>
-
Constructor Summary
ConstructorDescriptionDbTagCommand
(DatabaseConfiguration<T> strategy, Class<T> configurationClass, String migrationsFileName) -
Method Summary
Methods inherited from class io.dropwizard.migrations.AbstractLiquibaseCommand
getConfigurationClass, run
Methods inherited from class io.dropwizard.core.cli.ConfiguredCommand
addFileArgument, cleanup, cleanupAsynchronously, getConfiguration, run
Methods inherited from class io.dropwizard.core.cli.Command
getDescription, getName, onError
-
Constructor Details
-
DbTagCommand
public DbTagCommand(DatabaseConfiguration<T> strategy, Class<T> configurationClass, String migrationsFileName)
-
-
Method Details
-
configure
public void configure(net.sourceforge.argparse4j.inf.Subparser subparser) Description copied from class:ConfiguredCommand
Configure the command'sSubparser
.N.B.: if you override this method, you must call
super.override(subparser)
in order to preserve the configuration file parameter in the subparser.- Overrides:
configure
in classAbstractLiquibaseCommand<T extends Configuration>
- Parameters:
subparser
- theSubparser
specific to the command
-
run
public void run(net.sourceforge.argparse4j.inf.Namespace namespace, liquibase.Liquibase liquibase) throws Exception - Specified by:
run
in classAbstractLiquibaseCommand<T extends Configuration>
- Throws:
Exception
-