org.liquibase.maven.plugins
Class AbstractLiquibaseUpdateMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.liquibase.maven.plugins.AbstractLiquibaseMojo
          extended by org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
              extended by org.liquibase.maven.plugins.AbstractLiquibaseUpdateMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
LiquibaseMigrate, LiquibaseMigrateSQL, LiquibaseUpdate, LiquibaseUpdateSQL, LiquibaseUpdateTestingRollback

public abstract class AbstractLiquibaseUpdateMojo
extends AbstractLiquibaseChangeLogMojo

Liquibase Update Maven plugin. This plugin allows for DatabaseChangeLogs to be applied to a database as part of a Maven build process.

Author:
Peter Murray

Field Summary
protected  int changesToApply
          The number of changes to apply to the 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
AbstractLiquibaseUpdateMojo()
           
 
Method Summary
protected abstract  void doUpdate(Liquibase liquibase)
          Performs the actual "update" work on the database.
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
checkRequiredParametersAreSpecified, createLiquibase, getFileOpener
 
Methods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojo
cleanup, configureFieldsAndValues, execute, getLiquibase, getMavenArtifactClassLoader, isPromptOnNonLocalDatabase, 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

changesToApply

protected int changesToApply
The number of changes to apply to the database. By default this value is 0, which will result in all changes (not already applied to the database) being applied.

Constructor Detail

AbstractLiquibaseUpdateMojo

public AbstractLiquibaseUpdateMojo()
Method Detail

performLiquibaseTask

protected void performLiquibaseTask(Liquibase liquibase)
                             throws LiquibaseException
Description copied from class: AbstractLiquibaseChangeLogMojo
Performs the actual Liquibase task on the database using the fully configured Liquibase.

Overrides:
performLiquibaseTask in class AbstractLiquibaseChangeLogMojo
Parameters:
liquibase - The Liquibase that has been fully configured to run the desired database task.
Throws:
LiquibaseException

doUpdate

protected abstract void doUpdate(Liquibase liquibase)
                          throws LiquibaseException
Performs the actual "update" work on the database.

Parameters:
liquibase - The Liquibase object to use to perform the "update".
Throws:
LiquibaseException

printSettings

protected void printSettings(String indent)
Description copied from class: AbstractLiquibaseMojo
Prints the settings that have been set of defaulted for the plugin. These will only be shown in verbose mode.

Overrides:
printSettings in class AbstractLiquibaseChangeLogMojo
Parameters:
indent - The indent string to use when printing the settings.


Copyright © 2004-2011 Liquibase.org. All Rights Reserved.