public static class LiquibaseInitializer.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
LiquibaseInitializer.Builder |
addDatabaseNameToContext()
Avoids the current H2 database name to be added to the list of contexts.
|
LiquibaseInitializer |
build()
Builds the LiquibaseInitializer based on the settings provided earlier by calls to the various builder methods
|
LiquibaseInitializer.Builder |
limitChanges(Integer limit)
Limit the number of changes in the changelog to be applied
|
LiquibaseInitializer.Builder |
withChangelogResource(String resource)
A reference to the changelog file.
|
LiquibaseInitializer.Builder |
withContexts(String... contexts)
Adds contexts to be used for Liquibase.
|
LiquibaseInitializer.Builder |
withDefaultSchemaName(String schemaName)
Overrides default H2 schema name (which is PUBLIC) with given one.
|
LiquibaseInitializer.Builder |
withLabels(String... labels)
If you need parameter support, use this method to add labels to
|
public LiquibaseInitializer.Builder withChangelogResource(String resource)
resource - a resource that will be read from classpath using Class.getResource(String)public LiquibaseInitializer.Builder limitChanges(Integer limit)
limit - the number of changespublic LiquibaseInitializer.Builder withContexts(String... contexts)
addDatabaseNameToContext().contexts - a variable length list of contextspublic LiquibaseInitializer.Builder addDatabaseNameToContext()
public LiquibaseInitializer.Builder withLabels(String... labels)
labels - a variable length array of labels to be addedpublic LiquibaseInitializer.Builder withDefaultSchemaName(String schemaName)
public LiquibaseInitializer build()
Copyright © 2014—2019 Sondre Eikanger Kvalø. All rights reserved..