public class LiquibaseMigrator extends Object implements DatabaseMigrator
DatabaseMigrator.| Constructor and Description |
|---|
LiquibaseMigrator()
Construct a new
LiquibaseMigrator that runs from the current working directory. |
LiquibaseMigrator(liquibase.resource.ResourceAccessor resourceAccessor)
Construct a new
LiquibaseMigrator with a specific resource accessor. |
LiquibaseMigrator(String basePath)
Construct a new
LiquibaseMigrator from a specific base path. |
| Modifier and Type | Method and Description |
|---|---|
static LiquibaseMigrator |
local()
Construct a new
LiquibaseMigrator linked to the src/main/db/changelog.groovy. |
void |
migrate(Connection connection)
Perform a migration on some database connection.
|
void |
setChangeLogPath(String changeLogPath) |
void |
setChangesToApply(int changesToApply) |
void |
setContexts(String contexts) |
void |
setDefaultSchemaName(String defaultSchemaName) |
void |
setDropFirst(boolean dropFirst) |
void |
setOutputFilePath(String outputFilePath) |
void |
setParameters(Map<String,String> parameters) |
public LiquibaseMigrator()
LiquibaseMigrator that runs from the current working directory.public LiquibaseMigrator(String basePath)
LiquibaseMigrator from a specific base path.basePath - the base path to run frompublic LiquibaseMigrator(liquibase.resource.ResourceAccessor resourceAccessor)
LiquibaseMigrator with a specific resource accessor.resourceAccessor - the resource accessor that should be appliedpublic static LiquibaseMigrator local()
LiquibaseMigrator linked to the src/main/db/changelog.groovy.public final void migrate(Connection connection)
migrate in interface DatabaseMigratorconnection - an open connection to the database.public void setChangeLogPath(String changeLogPath)
public void setDropFirst(boolean dropFirst)
public void setDefaultSchemaName(String defaultSchemaName)
public void setContexts(String contexts)
public void setChangesToApply(int changesToApply)
public void setOutputFilePath(String outputFilePath)
Copyright © 2011-2014. All Rights Reserved.