@EachProperty(value="liquibase.datasources")
public class LiquibaseConfigurationProperties
extends java.lang.Object
implements io.micronaut.core.util.Toggleable
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ASYNC
The default async value.
|
static boolean |
DEFAULT_DROPFIRST
The default dropFirst value.
|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static boolean |
DEFAULT_IGNORECLASSPATHPREFIX
The default ignoreClasspathPrefix value.
|
static boolean |
DEFAULT_TESTROLLBACKONUPDATE
The default testRollbackOnUpdate value.
|
Constructor and Description |
---|
LiquibaseConfigurationProperties(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getChangeLog() |
java.lang.String |
getContexts()
Comma-separated list of runtime contexts to use.
|
java.lang.String |
getDatabaseChangeLogLockTable()
Name of table to use for tracking concurrent Liquibase usage.
|
java.lang.String |
getDatabaseChangeLogTable()
Name of table to use for tracking change history.
|
java.lang.String |
getDefaultSchema() |
java.lang.String |
getLabels()
Comma-separated list of runtime labels to use.
|
java.lang.String |
getLiquibaseSchema()
Schema to use for Liquibase objects.
|
java.lang.String |
getLiquibaseTablespace()
Tablespace to use for Liquibase objects.
|
java.lang.String |
getNameQualifier() |
java.util.Map<java.lang.String,java.lang.String> |
getParameters() |
java.io.File |
getRollbackFile() |
java.lang.String |
getRollbackFilePath() |
java.lang.String |
getTag() |
boolean |
isAsync() |
boolean |
isDropFirst() |
boolean |
isEnabled() |
boolean |
isIgnoreClasspathPrefix() |
boolean |
isTestRollbackOnUpdate()
Returns whether a rollback should be tested at update time or not.
|
void |
setAsync(boolean async)
Whether liquibase operations should be run asynchronously.
|
void |
setChangeLog(java.lang.String changeLog)
Change log configuration path.
|
void |
setContexts(java.lang.String contexts)
Comma-separated list of runtime contexts to use.
|
void |
setDatabaseChangeLogLockTable(java.lang.String databaseChangeLogLockTable)
Name of table to use for tracking concurrent Liquibase usage.
|
void |
setDatabaseChangeLogTable(java.lang.String databaseChangeLogTable)
Name of table to use for tracking change history.
|
void |
setDefaultSchema(java.lang.String defaultSchema)
Default database schema.
|
void |
setDropFirst(boolean dropFirst)
Whether to first drop the database schema.
|
void |
setEnabled(boolean enabled)
Sets whether this liquibase configuration is enabled.
|
void |
setIgnoreClasspathPrefix(boolean ignoreClasspathPrefix)
Ignores classpath prefix during changeset comparison.
|
void |
setLabels(java.lang.String labels)
Comma-separated list of runtime labels to use.
|
void |
setLiquibaseSchema(java.lang.String liquibaseSchema)
Schema to use for Liquibase objects.
|
void |
setLiquibaseTablespace(java.lang.String liquibaseTablespace)
Tablespace to use for Liquibase objects.
|
void |
setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Change log parameters.
|
void |
setRollbackFilePath(java.lang.String rollbackFilePath)
Path to file to which rollback SQL is written when an update is performed.
|
void |
setTag(java.lang.String tag) |
void |
setTestRollbackOnUpdate(boolean testRollbackOnUpdate)
Whether rollback should be tested before update is performed.
|
public static final boolean DEFAULT_ENABLED
public static final boolean DEFAULT_DROPFIRST
public static final boolean DEFAULT_TESTROLLBACKONUPDATE
public static final boolean DEFAULT_IGNORECLASSPATHPREFIX
public static final boolean DEFAULT_ASYNC
public LiquibaseConfigurationProperties(@Parameter java.lang.String name)
name
- name qualifier.public void setTestRollbackOnUpdate(boolean testRollbackOnUpdate)
testRollbackOnUpdate
- Whether rollback should be tested before update is performed.public boolean isTestRollbackOnUpdate()
public boolean isIgnoreClasspathPrefix()
public void setIgnoreClasspathPrefix(boolean ignoreClasspathPrefix)
ignoreClasspathPrefix
- Sets whether to ignore the classpath prefix during changeset comparison.public java.lang.String getDatabaseChangeLogLockTable()
public void setDatabaseChangeLogLockTable(java.lang.String databaseChangeLogLockTable)
databaseChangeLogLockTable
- the name of table to use for tracking concurrent Liquibase usage.public java.lang.String getDatabaseChangeLogTable()
public void setDatabaseChangeLogTable(java.lang.String databaseChangeLogTable)
databaseChangeLogTable
- the name of table to use for tracking change history.public java.lang.String getLiquibaseTablespace()
public void setLiquibaseTablespace(java.lang.String liquibaseTablespace)
liquibaseTablespace
- the tablespace to use for Liquibase objects.public java.lang.String getLiquibaseSchema()
public void setLiquibaseSchema(java.lang.String liquibaseSchema)
liquibaseSchema
- Schema to use for Liquibase objects.public java.lang.String getChangeLog()
public void setChangeLog(java.lang.String changeLog)
changeLog
- sets the change log configuration path.public void setRollbackFilePath(java.lang.String rollbackFilePath)
rollbackFilePath
- Path to file to which rollback SQL is written when an update is performed.public java.lang.String getRollbackFilePath()
public java.io.File getRollbackFile()
public boolean isDropFirst()
public void setDropFirst(boolean dropFirst)
dropFirst
- True to drop the schema.public java.lang.String getDefaultSchema()
public void setDefaultSchema(java.lang.String defaultSchema)
defaultSchema
- Sets the default database schema.public java.util.Map<java.lang.String,java.lang.String> getParameters()
public void setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
parameters
- Change log parameterspublic java.lang.String getTag()
public void setTag(java.lang.String tag)
tag
- a tag.public java.lang.String getContexts()
public void setContexts(java.lang.String contexts)
contexts
- a comma-separated list of runtime contexts to use.public java.lang.String getLabels()
public void setLabels(java.lang.String labels)
labels
- A Comma-separated list of runtime labels to usepublic boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
enabled
- True if it is enabledpublic java.lang.String getNameQualifier()
public void setAsync(boolean async)
async
- true to run liquibase operations asynchronouslypublic boolean isAsync()