Java 类io.dropwizard.db.DatabaseConfiguration 实例源码

项目:dropwizard-flyway    文件:DbCommand.java   
public DbCommand(final String name, final DatabaseConfiguration<T> databaseConfiguration,
                 final FlywayConfiguration<T> flywayConfiguration,
                 final Class<T> configurationClass) {
    super(name, "Run database migration tasks",
            databaseConfiguration, flywayConfiguration, configurationClass);

    addSubCommand(new DbMigrateCommand<>(databaseConfiguration, flywayConfiguration, configurationClass));
    addSubCommand(new DbCleanCommand<>(databaseConfiguration, flywayConfiguration, configurationClass));
    addSubCommand(new DbInitCommand<>(databaseConfiguration, flywayConfiguration, configurationClass));
    addSubCommand(new DbValidateCommand<>(databaseConfiguration, flywayConfiguration, configurationClass));
    addSubCommand(new DbInfoCommand<>(databaseConfiguration, flywayConfiguration, configurationClass));
    addSubCommand(new DbRepairCommand<>(databaseConfiguration, flywayConfiguration, configurationClass));
}
项目:dropwizard-flyway    文件:AbstractFlywayCommand.java   
AbstractFlywayCommand(final String name,
                      final String description,
                      final DatabaseConfiguration<T> databaseConfiguration,
                      final FlywayConfiguration<T> flywayConfiguration,
                      final Class<T> configurationClass) {
    super(name, description);
    this.databaseConfiguration = databaseConfiguration;
    this.flywayConfiguration = flywayConfiguration;
    this.configurationClass = configurationClass;
}
项目:dropwizard-flyway    文件:DbValidateCommand.java   
public DbValidateCommand(final DatabaseConfiguration<T> databaseConfiguration,
                         final FlywayConfiguration<T> flywayConfiguration,
                         final Class<T> configurationClass) {
    super("validate", "Validates the applied migrations against the ones available on the classpath.",
            databaseConfiguration, flywayConfiguration, configurationClass);
}
项目:dropwizard-flyway    文件:DbRepairCommand.java   
public DbRepairCommand(final DatabaseConfiguration<T> databaseConfiguration,
                       final FlywayConfiguration<T> flywayConfiguration,
                       final Class<T> configurationClass) {
    super("repair", "Repairs the metadata table.",
            databaseConfiguration, flywayConfiguration, configurationClass);
}
项目:dropwizard-flyway    文件:DbInitCommand.java   
public DbInitCommand(final DatabaseConfiguration<T> databaseConfiguration,
                     final FlywayConfiguration<T> flywayConfiguration,
                     final Class<T> configurationClass) {
    super("init", "Creates and initializes the metadata table (existing database).",
            databaseConfiguration, flywayConfiguration, configurationClass);
}
项目:dropwizard-flyway    文件:DbInfoCommand.java   
public DbInfoCommand(final DatabaseConfiguration<T> databaseConfiguration,
                     final FlywayConfiguration<T> flywayConfiguration,
                     final Class<T> configurationClass) {
    super("info", "Prints the details and status information about all the migrations.",
            databaseConfiguration, flywayConfiguration, configurationClass);
}
项目:dropwizard-flyway    文件:DbCleanCommand.java   
public DbCleanCommand(final DatabaseConfiguration<T> databaseConfiguration,
                      final FlywayConfiguration<T> flywayConfiguration,
                      final Class<T> configurationClass) {
    super("clean", "Drops all objects in the configured schemas.",
            databaseConfiguration, flywayConfiguration, configurationClass);
}
项目:dropwizard-flyway    文件:DbMigrateCommand.java   
public DbMigrateCommand(final DatabaseConfiguration<T> databaseConfiguration,
                        final FlywayConfiguration<T> flywayConfiguration,
                        final Class<T> configurationClass) {
    super("migrate", "Migrates the database.",
            databaseConfiguration, flywayConfiguration, configurationClass);
}