public class Liquibase extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
CHANGESET_ID_AUTHOR_PART |
protected static int |
CHANGESET_ID_CHANGELOG_PART |
protected static int |
CHANGESET_ID_CHANGESET_PART |
protected static int |
CHANGESET_ID_NUM_PARTS |
protected Database |
database |
protected static String |
MSG_COULD_NOT_RELEASE_LOCK |
Constructor and Description |
---|
Liquibase(DatabaseChangeLog changeLog,
ResourceAccessor resourceAccessor,
Database database) |
Liquibase(String changeLogFile,
ResourceAccessor resourceAccessor,
Database database)
Creates a Liquibase instance.
|
Liquibase(String changeLogFile,
ResourceAccessor resourceAccessor,
DatabaseConnection conn)
Creates a Liquibase instance for a given DatabaseConnection.
|
Modifier and Type | Method and Description |
---|---|
protected RawSQLChange |
buildRawSQLChange(String rollbackScriptContents) |
CheckSum |
calculateCheckSum(String changeSetIdentifier) |
CheckSum |
calculateCheckSum(String filename,
String id,
String author) |
void |
changeLogSync(Contexts contexts)
Deprecated.
use version with LabelExpression
|
void |
changeLogSync(Contexts contexts,
LabelExpression labelExpression) |
void |
changeLogSync(Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
changeLogSync(String contexts) |
void |
changeLogSync(String contexts,
Writer output) |
void |
checkLiquibaseTables(boolean updateExistingNullChecksums,
DatabaseChangeLog databaseChangeLog,
Contexts contexts,
LabelExpression labelExpression) |
void |
clearCheckSums()
Sets checksums to null so they will be repopulated next run
|
protected RollbackVisitor |
createRollbackVisitor() |
protected UpdateVisitor |
createUpdateVisitor() |
DiffResult |
diff(Database referenceDatabase,
Database targetDatabase,
CompareControl compareControl) |
void |
dropAll()
Drops all database objects in the default schema.
|
void |
dropAll(CatalogAndSchema... schemas)
Drops all database objects in the passed schema(s).
|
protected void |
executeRollbackScript(String rollbackScript,
Contexts contexts,
LabelExpression labelExpression) |
void |
forceReleaseLocks() |
void |
futureRollbackSQL(Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
futureRollbackSQL(Integer count,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
futureRollbackSQL(Integer count,
Contexts contexts,
LabelExpression labelExpression,
Writer output,
boolean checkLiquibaseTables) |
protected void |
futureRollbackSQL(Integer count,
String tag,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
protected void |
futureRollbackSQL(Integer count,
String tag,
Contexts contexts,
LabelExpression labelExpression,
Writer output,
boolean checkLiquibaseTables) |
void |
futureRollbackSQL(Integer count,
String contexts,
Writer output) |
void |
futureRollbackSQL(Integer count,
String contexts,
Writer output,
boolean checkLiquibaseTables) |
void |
futureRollbackSQL(String tag,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
futureRollbackSQL(String contexts,
Writer output) |
void |
futureRollbackSQL(String contexts,
Writer output,
boolean checkLiquibaseTables) |
void |
futureRollbackSQL(Writer output) |
void |
generateChangeLog(CatalogAndSchema catalogAndSchema,
DiffToChangeLog changeLogWriter,
PrintStream outputStream,
ChangeLogSerializer changeLogSerializer,
Class<? extends DatabaseObject>... snapshotTypes) |
void |
generateChangeLog(CatalogAndSchema catalogAndSchema,
DiffToChangeLog changeLogWriter,
PrintStream outputStream,
Class<? extends DatabaseObject>... snapshotTypes) |
void |
generateDocumentation(String outputDirectory) |
void |
generateDocumentation(String outputDirectory,
Contexts contexts,
LabelExpression labelExpression) |
void |
generateDocumentation(String outputDirectory,
String contexts) |
String |
getChangeLogFile()
Return the change log file used by this Liquibase instance.
|
ChangeLogParameters |
getChangeLogParameters()
Returns the ChangeLogParameters container used by this Liquibase instance.
|
List<ChangeSetStatus> |
getChangeSetStatuses(Contexts contexts)
Deprecated.
use version with LabelExpression
|
List<ChangeSetStatus> |
getChangeSetStatuses(Contexts contexts,
LabelExpression labelExpression) |
List<ChangeSetStatus> |
getChangeSetStatuses(Contexts contexts,
LabelExpression labelExpression,
boolean checkLiquibaseTables)
Returns the ChangeSetStatuses of all changesets in the change log file and history in the order they
would be ran.
|
Database |
getDatabase()
Returns the Database used by this Liquibase instance.
|
DatabaseChangeLog |
getDatabaseChangeLog() |
Logger |
getLog()
Return the log used by this Liquibase instance.
|
ResourceAccessor |
getResourceAccessor()
Return ResourceAccessor used by this Liquibase instance.
|
protected ChangeLogIterator |
getStandardChangelogIterator(Contexts contexts,
LabelExpression labelExpression,
DatabaseChangeLog changeLog) |
boolean |
isIgnoreClasspathPrefix() |
boolean |
isSafeToRunUpdate()
Returns true if it is "save" to migrate the database.
|
DatabaseChangeLogLock[] |
listLocks()
Display change log lock information.
|
Collection<RanChangeSet> |
listUnexpectedChangeSets(Contexts contexts,
LabelExpression labelExpression) |
Collection<RanChangeSet> |
listUnexpectedChangeSets(String contexts) |
List<ChangeSet> |
listUnrunChangeSets(Contexts contexts)
Deprecated.
use version with LabelExpression
|
List<ChangeSet> |
listUnrunChangeSets(Contexts contexts,
LabelExpression labels) |
List<ChangeSet> |
listUnrunChangeSets(Contexts contexts,
LabelExpression labels,
boolean checkLiquibaseTables) |
void |
markNextChangeSetRan(Contexts contexts,
LabelExpression labelExpression) |
void |
markNextChangeSetRan(Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
markNextChangeSetRan(String contexts) |
void |
markNextChangeSetRan(String contexts,
Writer output) |
protected void |
removeRunStatus(ChangeLogIterator logIterator,
Contexts contexts,
LabelExpression labelExpression) |
void |
reportLocks(PrintStream out) |
void |
reportStatus(boolean verbose,
Contexts contexts,
LabelExpression labels,
Writer out) |
void |
reportStatus(boolean verbose,
Contexts contexts,
Writer out) |
void |
reportStatus(boolean verbose,
String contexts,
Writer out) |
void |
reportUnexpectedChangeSets(boolean verbose,
Contexts contexts,
LabelExpression labelExpression,
Writer out) |
void |
reportUnexpectedChangeSets(boolean verbose,
String contexts,
Writer out) |
protected void |
resetServices() |
void |
rollback(Date dateToRollBackTo,
Contexts contexts,
LabelExpression labelExpression) |
void |
rollback(Date dateToRollBackTo,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
rollback(Date dateToRollBackTo,
String contexts) |
void |
rollback(Date dateToRollBackTo,
String rollbackScript,
Contexts contexts,
LabelExpression labelExpression) |
void |
rollback(Date dateToRollBackTo,
String rollbackScript,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
rollback(Date dateToRollBackTo,
String rollbackScript,
String contexts) |
void |
rollback(Date dateToRollBackTo,
String rollbackScript,
String contexts,
Writer output) |
void |
rollback(Date dateToRollBackTo,
String contexts,
Writer output) |
void |
rollback(int changesToRollback,
Contexts contexts,
LabelExpression labelExpression) |
void |
rollback(int changesToRollback,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
rollback(int changesToRollback,
Contexts contexts,
Writer output) |
void |
rollback(int changesToRollback,
String contexts) |
void |
rollback(int changesToRollback,
String rollbackScript,
Contexts contexts,
LabelExpression labelExpression) |
void |
rollback(int changesToRollback,
String rollbackScript,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
rollback(int changesToRollback,
String rollbackScript,
Contexts contexts,
Writer output) |
void |
rollback(int changesToRollback,
String rollbackScript,
String contexts) |
void |
rollback(int changesToRollback,
String rollbackScript,
String contexts,
Writer output) |
void |
rollback(int changesToRollback,
String contexts,
Writer output) |
void |
rollback(String tagToRollBackTo,
Contexts contexts) |
void |
rollback(String tagToRollBackTo,
Contexts contexts,
LabelExpression labelExpression) |
void |
rollback(String tagToRollBackTo,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
rollback(String tagToRollBackTo,
Contexts contexts,
Writer output) |
void |
rollback(String tagToRollBackTo,
String contexts) |
void |
rollback(String tagToRollBackTo,
String rollbackScript,
Contexts contexts) |
void |
rollback(String tagToRollBackTo,
String rollbackScript,
Contexts contexts,
LabelExpression labelExpression) |
void |
rollback(String tagToRollBackTo,
String rollbackScript,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
rollback(String tagToRollBackTo,
String rollbackScript,
Contexts contexts,
Writer output) |
void |
rollback(String tagToRollBackTo,
String rollbackScript,
String contexts) |
void |
rollback(String tagToRollBackTo,
String rollbackScript,
String contexts,
Writer output) |
void |
rollback(String tagToRollBackTo,
String contexts,
Writer output) |
void |
setChangeExecListener(ChangeExecListener listener) |
void |
setChangeLogParameter(String key,
Object value) |
void |
setChangeLogSyncListener(ChangeLogSyncListener changeLogSyncListener) |
void |
setIgnoreClasspathPrefix(boolean ignoreClasspathPrefix) |
void |
tag(String tagString)
'Tags' the database for future rollback
|
boolean |
tagExists(String tagString) |
void |
update(Contexts contexts)
Executes Liquibase "update" logic which ensures that the configured
Database is up to date according to
the configured changelog file. |
void |
update(Contexts contexts,
LabelExpression labelExpression) |
void |
update(Contexts contexts,
LabelExpression labelExpression,
boolean checkLiquibaseTables) |
void |
update(Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
update(Contexts contexts,
LabelExpression labelExpression,
Writer output,
boolean checkLiquibaseTables) |
void |
update(Contexts contexts,
Writer output) |
void |
update(int changesToApply,
Contexts contexts,
LabelExpression labelExpression) |
void |
update(int changesToApply,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
update(int changesToApply,
String contexts) |
void |
update(int changesToApply,
String contexts,
Writer output) |
void |
update(String contexts)
Convience method for
update(Contexts) that constructs the Context object from the passed string. |
void |
update(String tag,
Contexts contexts) |
void |
update(String tag,
Contexts contexts,
LabelExpression labelExpression) |
void |
update(String tag,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
update(String tag,
Contexts contexts,
Writer output) |
void |
update(String tag,
String contexts) |
void |
update(String tag,
String contexts,
Writer output) |
void |
update(String contexts,
Writer output) |
void |
updateTestingRollback(Contexts contexts,
LabelExpression labelExpression) |
void |
updateTestingRollback(String contexts) |
void |
updateTestingRollback(String tag,
Contexts contexts,
LabelExpression labelExpression) |
void |
validate()
Checks changelogs for bad MD5Sums and preconditions before attempting a migration
|
protected static final int CHANGESET_ID_NUM_PARTS
protected static final int CHANGESET_ID_AUTHOR_PART
protected static final int CHANGESET_ID_CHANGESET_PART
protected static final int CHANGESET_ID_CHANGELOG_PART
protected static final String MSG_COULD_NOT_RELEASE_LOCK
protected Database database
public Liquibase(String changeLogFile, ResourceAccessor resourceAccessor, DatabaseConnection conn) throws LiquibaseException
DatabaseFactory.findCorrectDatabaseImplementation(liquibase.database.DatabaseConnection)
public Liquibase(String changeLogFile, ResourceAccessor resourceAccessor, Database database)
DatabaseConnection
,
Database
,
ResourceAccessor
public Liquibase(DatabaseChangeLog changeLog, ResourceAccessor resourceAccessor, Database database)
public String getChangeLogFile()
public Logger getLog()
public ChangeLogParameters getChangeLogParameters()
public Database getDatabase()
public ResourceAccessor getResourceAccessor()
public void update(String contexts) throws LiquibaseException
update(Contexts)
that constructs the Context object from the passed string.LiquibaseException
public void update(Contexts contexts) throws LiquibaseException
Database
is up to date according to
the configured changelog file. To run in "no context mode", pass a null or empty context object.LiquibaseException
public void update(Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
public void update(Contexts contexts, LabelExpression labelExpression, boolean checkLiquibaseTables) throws LiquibaseException
LiquibaseException
public DatabaseChangeLog getDatabaseChangeLog() throws LiquibaseException
LiquibaseException
protected UpdateVisitor createUpdateVisitor()
protected RollbackVisitor createRollbackVisitor()
protected ChangeLogIterator getStandardChangelogIterator(Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog changeLog) throws DatabaseException
DatabaseException
public void update(String contexts, Writer output) throws LiquibaseException
LiquibaseException
public void update(Contexts contexts, Writer output) throws LiquibaseException
LiquibaseException
public void update(Contexts contexts, LabelExpression labelExpression, Writer output) throws LiquibaseException
LiquibaseException
public void update(Contexts contexts, LabelExpression labelExpression, Writer output, boolean checkLiquibaseTables) throws LiquibaseException
LiquibaseException
public void update(int changesToApply, String contexts) throws LiquibaseException
LiquibaseException
public void update(int changesToApply, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
public void update(String tag, String contexts) throws LiquibaseException
LiquibaseException
public void update(String tag, Contexts contexts) throws LiquibaseException
LiquibaseException
public void update(String tag, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
public void update(int changesToApply, String contexts, Writer output) throws LiquibaseException
LiquibaseException
public void update(int changesToApply, Contexts contexts, LabelExpression labelExpression, Writer output) throws LiquibaseException
LiquibaseException
public void update(String tag, String contexts, Writer output) throws LiquibaseException
LiquibaseException
public void update(String tag, Contexts contexts, Writer output) throws LiquibaseException
LiquibaseException
public void update(String tag, Contexts contexts, LabelExpression labelExpression, Writer output) throws LiquibaseException
LiquibaseException
public void rollback(int changesToRollback, String contexts, Writer output) throws LiquibaseException
LiquibaseException
public void rollback(int changesToRollback, Contexts contexts, Writer output) throws LiquibaseException
LiquibaseException
public void rollback(int changesToRollback, Contexts contexts, LabelExpression labelExpression, Writer output) throws LiquibaseException
LiquibaseException
public void rollback(int changesToRollback, String rollbackScript, String contexts, Writer output) throws LiquibaseException
LiquibaseException
public void rollback(int changesToRollback, String rollbackScript, Contexts contexts, Writer output) throws LiquibaseException
LiquibaseException
public void rollback(int changesToRollback, String rollbackScript, Contexts contexts, LabelExpression labelExpression, Writer output) throws LiquibaseException
LiquibaseException
public void rollback(int changesToRollback, String contexts) throws LiquibaseException
LiquibaseException
public void rollback(int changesToRollback, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
public void rollback(int changesToRollback, String rollbackScript, String contexts) throws LiquibaseException
LiquibaseException
public void rollback(int changesToRollback, String rollbackScript, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
protected void removeRunStatus(ChangeLogIterator logIterator, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
protected void executeRollbackScript(String rollbackScript, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
protected RawSQLChange buildRawSQLChange(String rollbackScriptContents)
public void rollback(String tagToRollBackTo, String contexts, Writer output) throws LiquibaseException
LiquibaseException
public void rollback(String tagToRollBackTo, Contexts contexts, Writer output) throws LiquibaseException
LiquibaseException
public void rollback(String tagToRollBackTo, Contexts contexts, LabelExpression labelExpression, Writer output) throws LiquibaseException
LiquibaseException
public void rollback(String tagToRollBackTo, String rollbackScript, String contexts, Writer output) throws LiquibaseException
LiquibaseException
public void rollback(String tagToRollBackTo, String rollbackScript, Contexts contexts, Writer output) throws LiquibaseException
LiquibaseException
public void rollback(String tagToRollBackTo, String rollbackScript, Contexts contexts, LabelExpression labelExpression, Writer output) throws LiquibaseException
LiquibaseException
public void rollback(String tagToRollBackTo, String contexts) throws LiquibaseException
LiquibaseException
public void rollback(String tagToRollBackTo, Contexts contexts) throws LiquibaseException
LiquibaseException
public void rollback(String tagToRollBackTo, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
public void rollback(String tagToRollBackTo, String rollbackScript, String contexts) throws LiquibaseException
LiquibaseException
public void rollback(String tagToRollBackTo, String rollbackScript, Contexts contexts) throws LiquibaseException
LiquibaseException
public void rollback(String tagToRollBackTo, String rollbackScript, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
public void rollback(Date dateToRollBackTo, String contexts, Writer output) throws LiquibaseException
LiquibaseException
public void rollback(Date dateToRollBackTo, String rollbackScript, String contexts, Writer output) throws LiquibaseException
LiquibaseException
public void rollback(Date dateToRollBackTo, Contexts contexts, LabelExpression labelExpression, Writer output) throws LiquibaseException
LiquibaseException
public void rollback(Date dateToRollBackTo, String rollbackScript, Contexts contexts, LabelExpression labelExpression, Writer output) throws LiquibaseException
LiquibaseException
public void rollback(Date dateToRollBackTo, String contexts) throws LiquibaseException
LiquibaseException
public void rollback(Date dateToRollBackTo, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
public void rollback(Date dateToRollBackTo, String rollbackScript, String contexts) throws LiquibaseException
LiquibaseException
public void rollback(Date dateToRollBackTo, String rollbackScript, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
public void changeLogSync(String contexts, Writer output) throws LiquibaseException
LiquibaseException
public void changeLogSync(Contexts contexts, LabelExpression labelExpression, Writer output) throws LiquibaseException
LiquibaseException
public void changeLogSync(String contexts) throws LiquibaseException
LiquibaseException
@Deprecated public void changeLogSync(Contexts contexts) throws LiquibaseException
LiquibaseException
public void changeLogSync(Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
public void markNextChangeSetRan(String contexts, Writer output) throws LiquibaseException
LiquibaseException
public void markNextChangeSetRan(Contexts contexts, LabelExpression labelExpression, Writer output) throws LiquibaseException
LiquibaseException
public void markNextChangeSetRan(String contexts) throws LiquibaseException
LiquibaseException
public void markNextChangeSetRan(Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
public void futureRollbackSQL(String contexts, Writer output) throws LiquibaseException
LiquibaseException
public void futureRollbackSQL(Writer output) throws LiquibaseException
LiquibaseException
public void futureRollbackSQL(String contexts, Writer output, boolean checkLiquibaseTables) throws LiquibaseException
LiquibaseException
public void futureRollbackSQL(Integer count, String contexts, Writer output) throws LiquibaseException
LiquibaseException
public void futureRollbackSQL(Contexts contexts, LabelExpression labelExpression, Writer output) throws LiquibaseException
LiquibaseException
public void futureRollbackSQL(Integer count, String contexts, Writer output, boolean checkLiquibaseTables) throws LiquibaseException
LiquibaseException
public void futureRollbackSQL(Integer count, Contexts contexts, LabelExpression labelExpression, Writer output) throws LiquibaseException
LiquibaseException
public void futureRollbackSQL(Integer count, Contexts contexts, LabelExpression labelExpression, Writer output, boolean checkLiquibaseTables) throws LiquibaseException
LiquibaseException
public void futureRollbackSQL(String tag, Contexts contexts, LabelExpression labelExpression, Writer output) throws LiquibaseException
LiquibaseException
protected void futureRollbackSQL(Integer count, String tag, Contexts contexts, LabelExpression labelExpression, Writer output) throws LiquibaseException
LiquibaseException
protected void futureRollbackSQL(Integer count, String tag, Contexts contexts, LabelExpression labelExpression, Writer output, boolean checkLiquibaseTables) throws LiquibaseException
LiquibaseException
protected void resetServices()
public final void dropAll() throws DatabaseException
DatabaseException
public final void dropAll(CatalogAndSchema... schemas) throws DatabaseException
DatabaseException
public void tag(String tagString) throws LiquibaseException
LiquibaseException
public boolean tagExists(String tagString) throws LiquibaseException
LiquibaseException
public void updateTestingRollback(String contexts) throws LiquibaseException
LiquibaseException
public void updateTestingRollback(Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
public void updateTestingRollback(String tag, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
public void checkLiquibaseTables(boolean updateExistingNullChecksums, DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
public boolean isSafeToRunUpdate() throws DatabaseException
DatabaseException
public DatabaseChangeLogLock[] listLocks() throws LiquibaseException
LiquibaseException
public void reportLocks(PrintStream out) throws LiquibaseException
LiquibaseException
public void forceReleaseLocks() throws LiquibaseException
LiquibaseException
@Deprecated public List<ChangeSet> listUnrunChangeSets(Contexts contexts) throws LiquibaseException
LiquibaseException
public List<ChangeSet> listUnrunChangeSets(Contexts contexts, LabelExpression labels) throws LiquibaseException
LiquibaseException
public List<ChangeSet> listUnrunChangeSets(Contexts contexts, LabelExpression labels, boolean checkLiquibaseTables) throws LiquibaseException
LiquibaseException
@Deprecated public List<ChangeSetStatus> getChangeSetStatuses(Contexts contexts) throws LiquibaseException
LiquibaseException
public List<ChangeSetStatus> getChangeSetStatuses(Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
public List<ChangeSetStatus> getChangeSetStatuses(Contexts contexts, LabelExpression labelExpression, boolean checkLiquibaseTables) throws LiquibaseException
LiquibaseException
public void reportStatus(boolean verbose, String contexts, Writer out) throws LiquibaseException
LiquibaseException
public void reportStatus(boolean verbose, Contexts contexts, Writer out) throws LiquibaseException
LiquibaseException
public void reportStatus(boolean verbose, Contexts contexts, LabelExpression labels, Writer out) throws LiquibaseException
LiquibaseException
public Collection<RanChangeSet> listUnexpectedChangeSets(String contexts) throws LiquibaseException
LiquibaseException
public Collection<RanChangeSet> listUnexpectedChangeSets(Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
public void reportUnexpectedChangeSets(boolean verbose, String contexts, Writer out) throws LiquibaseException
LiquibaseException
public void reportUnexpectedChangeSets(boolean verbose, Contexts contexts, LabelExpression labelExpression, Writer out) throws LiquibaseException
LiquibaseException
public void clearCheckSums() throws LiquibaseException
LiquibaseException
public final CheckSum calculateCheckSum(String changeSetIdentifier) throws LiquibaseException
LiquibaseException
public CheckSum calculateCheckSum(String filename, String id, String author) throws LiquibaseException
LiquibaseException
public void generateDocumentation(String outputDirectory) throws LiquibaseException
LiquibaseException
public void generateDocumentation(String outputDirectory, String contexts) throws LiquibaseException
LiquibaseException
public void generateDocumentation(String outputDirectory, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException
LiquibaseException
public DiffResult diff(Database referenceDatabase, Database targetDatabase, CompareControl compareControl) throws LiquibaseException
LiquibaseException
public void validate() throws LiquibaseException
LiquibaseException
public void setChangeExecListener(ChangeExecListener listener)
public void setChangeLogSyncListener(ChangeLogSyncListener changeLogSyncListener)
public boolean isIgnoreClasspathPrefix()
public void setIgnoreClasspathPrefix(boolean ignoreClasspathPrefix)
@SafeVarargs public final void generateChangeLog(CatalogAndSchema catalogAndSchema, DiffToChangeLog changeLogWriter, PrintStream outputStream, Class<? extends DatabaseObject>... snapshotTypes) throws DatabaseException, IOException, ParserConfigurationException
@SafeVarargs public final void generateChangeLog(CatalogAndSchema catalogAndSchema, DiffToChangeLog changeLogWriter, PrintStream outputStream, ChangeLogSerializer changeLogSerializer, Class<? extends DatabaseObject>... snapshotTypes) throws DatabaseException, IOException, ParserConfigurationException
Copyright © 2019 Liquibase.org. All rights reserved.