Package io.dropwizard.migrations
Class AbstractLiquibaseCommand<T extends Configuration>
- java.lang.Object
-
- io.dropwizard.core.cli.Command
-
- io.dropwizard.core.cli.ConfiguredCommand<T>
-
- io.dropwizard.migrations.AbstractLiquibaseCommand<T>
-
- Direct Known Subclasses:
DbCalculateChecksumCommand
,DbClearChecksumsCommand
,DbCommand
,DbDropAllCommand
,DbDumpCommand
,DbFastForwardCommand
,DbGenerateDocsCommand
,DbLocksCommand
,DbMigrateCommand
,DbPrepareRollbackCommand
,DbRollbackCommand
,DbStatusCommand
,DbTagCommand
,DbTestCommand
public abstract class AbstractLiquibaseCommand<T extends Configuration> extends ConfiguredCommand<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractLiquibaseCommand(String name, String description, DatabaseConfiguration<T> strategy, Class<T> configurationClass, String migrationsFileName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
configure(net.sourceforge.argparse4j.inf.Subparser subparser)
protected Class<T>
getConfigurationClass()
protected void
run(@Nullable Bootstrap<T> bootstrap, net.sourceforge.argparse4j.inf.Namespace namespace, T configuration)
protected abstract void
run(net.sourceforge.argparse4j.inf.Namespace namespace, liquibase.Liquibase liquibase)
-
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
-
-
-
-
Method Detail
-
getConfigurationClass
protected Class<T> getConfigurationClass()
- Overrides:
getConfigurationClass
in classConfiguredCommand<T extends Configuration>
-
configure
public void configure(net.sourceforge.argparse4j.inf.Subparser subparser)
- Overrides:
configure
in classConfiguredCommand<T extends Configuration>
-
run
protected void run(@Nullable Bootstrap<T> bootstrap, net.sourceforge.argparse4j.inf.Namespace namespace, T configuration) throws Exception
- Specified by:
run
in classConfiguredCommand<T extends Configuration>
- Throws:
Exception
-
-