|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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. The output is either a report or a changelog depending on the value of the diffChangeLogFile parameter.
| Field Summary | |
|---|---|
protected String |
diffChangeLogFile
If this parameter is set, the changelog needed to "fix" differences between the two databases is output. |
protected String |
diffExcludeObjects
Objects to be excluded from the changelog. |
protected boolean |
diffIncludeCatalog
Include the catalog in the diff output? If this is null then the catalog will not be included |
protected String |
diffIncludeObjects
Objects to be included in the changelog. |
protected boolean |
diffIncludeSchema
Include the schema in the diff output? If this is null then the schema will not be included |
protected boolean |
diffIncludeTablespace
Include the tablespace in the diff output? If this is null then the tablespace will not be included |
protected String |
diffTypes
List of diff types to include in Change Log expressed as a comma separated list from: tables, views, columns, indexes, foreignkeys, primarykeys, uniqueconstraints, data. |
protected String |
referenceDefaultCatalogName
The reference database catalog. |
protected String |
referenceDefaultSchemaName
The reference database schema. |
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, labels |
| 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, getClassLoaderIncludingProjectClasspath, getLiquibase, getMavenArtifactClassLoader, getOutputWriter, 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 referenceDefaultCatalogName
protected String referenceDefaultSchemaName
protected String diffChangeLogFile
protected boolean diffIncludeCatalog
protected boolean diffIncludeSchema
protected boolean diffIncludeTablespace
protected String diffTypes
protected String diffExcludeObjects
protected String diffIncludeObjects
| 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.Mojoexecute in class AbstractLiquibaseMojoorg.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void performLiquibaseTask(Liquibase liquibase)
throws LiquibaseException
AbstractLiquibaseChangeLogMojoLiquibase.
performLiquibaseTask in class AbstractLiquibaseChangeLogMojoliquibase - The Liquibase that has been fully
configured to run the desired database task.
LiquibaseExceptionprotected void printSettings(String indent)
AbstractLiquibaseMojo
printSettings in class AbstractLiquibaseChangeLogMojoindent - The indent string to use when printing the settings.
protected void checkRequiredParametersAreSpecified()
throws org.apache.maven.plugin.MojoFailureException
AbstractLiquibaseMojo
checkRequiredParametersAreSpecified in class AbstractLiquibaseChangeLogMojoorg.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 | ||||||||