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
ConstructorsModifierConstructorDescriptionprotectedAbstractLiquibaseCommand(String name, String description, DatabaseConfiguration<T> strategy, Class<T> configurationClass, String migrationsFileName) -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(net.sourceforge.argparse4j.inf.Subparser subparser) 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, runMethods inherited from class io.dropwizard.core.cli.Command
getDescription, getName, onError
-
Constructor Details
-
AbstractLiquibaseCommand
-
-
Method Details
-
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
-
run
protected abstract void run(net.sourceforge.argparse4j.inf.Namespace namespace, liquibase.Liquibase liquibase) throws Exception - Throws:
Exception
-