| java.lang.Object liquibase.Liquibase
Liquibase | public class Liquibase (Code) | | Core LiquiBase facade.
Although there are several ways of executing LiquiBase (Ant, command line, etc.) they are all wrappers around this class.
|
Method Summary | |
public void | changeLogSync(String contexts, Writer output) | public void | changeLogSync(String contexts) | public void | checkDatabaseChangeLogTable() | public void | clearCheckSums() | final public void | dropAll() Drops all database objects owned by the current user. | final public void | dropAll(String... schemas) Drops all database objects owned by the current user. | public void | forceReleaseLocks() | public void | futureRollbackSQL(String contexts, Writer output) | public void | generateDocumentation(String outputDirectory) | public Database | getDatabase() | public FileOpener | getFileOpener() FileOpener to use for accessing changelog files. | public boolean | isSafeToRunMigration() Returns true if it is "save" to migrate the database. | public DatabaseChangeLogLock[] | listLocks() Display change log lock information. | public List<ChangeSet> | listUnrunChangeSets(String contexts) | public void | reportLocks(PrintStream out) | public void | reportStatus(boolean verbose, String contexts, Writer out) | public void | rollback(int changesToRollback, String contexts, Writer output) | public void | rollback(int changesToRollback, String contexts) | public void | rollback(String tagToRollBackTo, String contexts, Writer output) | public void | rollback(String tagToRollBackTo, String contexts) | public void | rollback(Date dateToRollBackTo, String contexts, Writer output) | public void | rollback(Date dateToRollBackTo, String contexts) | public void | setCurrentDateTimeFunction(String currentDateTimeFunction) Use this function to override the current date/time function used to insert dates into the database. | public void | tag(String tagString) | public void | update(String contexts) | public void | update(String contexts, Writer output) | public void | update(int changesToApply, String contexts) | public void | update(int changesToApply, String contexts, Writer output) | public void | validate() |
SHOULD_RUN_SYSTEM_PROPERTY | final public static String SHOULD_RUN_SYSTEM_PROPERTY(Code) | | |
checkDatabaseChangeLogTable | public void checkDatabaseChangeLogTable() throws JDBCException(Code) | | |
clearCheckSums | public void clearCheckSums() throws LiquibaseException(Code) | | Sets checksums to null so they will be repopulated next run
|
dropAll | final public void dropAll(String... schemas) throws JDBCException(Code) | | Drops all database objects owned by the current user.
|
getFileOpener | public FileOpener getFileOpener()(Code) | | FileOpener to use for accessing changelog files.
|
isSafeToRunMigration | public boolean isSafeToRunMigration() throws JDBCException(Code) | | Returns true if it is "save" to migrate the database.
Currently, "safe" is defined as running in an output-sql mode or against a database on localhost.
It is fine to run LiquiBase against a "non-safe" database, the method is mainly used to determine if the user
should be prompted before continuing.
|
setCurrentDateTimeFunction | public void setCurrentDateTimeFunction(String currentDateTimeFunction)(Code) | | Use this function to override the current date/time function used to insert dates into the database.
Especially useful when using an unsupported database.
|
validate | public void validate() throws LiquibaseException(Code) | | Checks changelogs for bad MD5Sums and preconditions before attempting a migration
|
|
|