|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.liquibase.maven.plugins.AbstractLiquibaseMojo org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo org.liquibase.maven.plugins.LiquibaseDatabaseDiff
public class LiquibaseDatabaseDiff
Generates a diff between the specified database and the reference database.
Field Summary | |
---|---|
protected String |
diffChangeLogFile
The diff change log file to output the differences to. |
protected String |
referenceDefaultSchemaName
The reference database password to use to connect to the specified database. |
protected String |
referenceDriver
The fully qualified name of the driver class to use to connect to the reference database. |
protected String |
referencePassword
The reference database password to use to connect to the specified database. |
protected String |
referenceUrl
The reference database URL to connect to for executing Liquibase. |
protected String |
referenceUsername
The reference database username to use to connect to the specified database. |
Fields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo |
---|
changeLogFile, contexts |
Fields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojo |
---|
clearCheckSums, databaseClass, defaultSchemaName, driver, emptyPassword, includeArtifact, includeTestOutputDirectory, logging, password, project, promptOnNonLocalDatabase, propertyFile, propertyFileWillOverride, skip, systemProperties, url, username, verbose, wagonManager |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
LiquibaseDatabaseDiff()
|
Method Summary | |
---|---|
protected void |
checkRequiredParametersAreSpecified()
Performs some validation after the properties file has been loaded checking that all properties required have been specified. |
void |
execute()
|
protected boolean |
isPromptOnNonLocalDatabase()
|
protected void |
performLiquibaseTask(Liquibase liquibase)
Performs the actual Liquibase task on the database using the fully configured Liquibase . |
protected void |
printSettings(String indent)
Prints the settings that have been set of defaulted for the plugin. |
Methods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo |
---|
createLiquibase, getFileOpener |
Methods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojo |
---|
cleanup, configureFieldsAndValues, getLiquibase, getMavenArtifactClassLoader, parsePropertiesFile |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String referenceDriver
AbstractLiquibaseMojo.driver
will be used instead.
protected String referenceUrl
protected String referenceUsername
protected String referencePassword
protected String referenceDefaultSchemaName
protected String diffChangeLogFile
Constructor Detail |
---|
public LiquibaseDatabaseDiff()
Method Detail |
---|
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
execute
in interface org.apache.maven.plugin.Mojo
execute
in class AbstractLiquibaseMojo
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void performLiquibaseTask(Liquibase liquibase) throws LiquibaseException
AbstractLiquibaseChangeLogMojo
Liquibase
.
performLiquibaseTask
in class AbstractLiquibaseChangeLogMojo
liquibase
- The Liquibase
that has been fully configured to run the desired database task.
LiquibaseException
protected void printSettings(String indent)
AbstractLiquibaseMojo
printSettings
in class AbstractLiquibaseChangeLogMojo
indent
- The indent string to use when printing the settings.protected void checkRequiredParametersAreSpecified() throws org.apache.maven.plugin.MojoFailureException
AbstractLiquibaseMojo
checkRequiredParametersAreSpecified
in class AbstractLiquibaseChangeLogMojo
org.apache.maven.plugin.MojoFailureException
- If any property that is required has not been specified.protected boolean isPromptOnNonLocalDatabase()
isPromptOnNonLocalDatabase
in class AbstractLiquibaseMojo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |