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 protectedAbstractLiquibaseCommand(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 voidconfigure(net.sourceforge.argparse4j.inf.Subparser subparser)protected Class<T>getConfigurationClass()protected voidrun(@Nullable Bootstrap<T> bootstrap, net.sourceforge.argparse4j.inf.Namespace namespace, T configuration)protected abstract voidrun(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:
getConfigurationClassin classConfiguredCommand<T extends Configuration>
-
configure
public void configure(net.sourceforge.argparse4j.inf.Subparser subparser)
- Overrides:
configurein classConfiguredCommand<T extends Configuration>
-
run
protected void run(@Nullable Bootstrap<T> bootstrap, net.sourceforge.argparse4j.inf.Namespace namespace, T configuration) throws Exception
- Specified by:
runin classConfiguredCommand<T extends Configuration>- Throws:
Exception
-
-