org.dbmaintain.maven.plugin
Class UpdateSequencesMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.dbmaintain.maven.plugin.BaseMojo
          extended by org.dbmaintain.maven.plugin.BaseDatabaseMojo
              extended by org.dbmaintain.maven.plugin.UpdateSequencesMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class UpdateSequencesMojo
extends BaseDatabaseMojo

This operation is also mainly useful for automated testing purposes. This operation sets all sequences and identity columns to a minimum value. By default this value is 1000, but is can be configured with the lowestAcceptableSequenceValue option. The updateDatabase operation offers an option to automatically update the sequences after the scripts were executed.

Author:
Tim Ducheyne, tiwe

Field Summary
protected  Long lowestAcceptableSequenceValue
          Threshold indicating the minimum value of sequences.
 
Fields inherited from class org.dbmaintain.maven.plugin.BaseDatabaseMojo
databases
 
Fields inherited from class org.dbmaintain.maven.plugin.BaseMojo
artifactFactory, configFile, localRepository, mavenProjectHelper, project, remoteRepositories, resolver
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
UpdateSequencesMojo()
           
 
Method Summary
protected  DbMaintainTask createDbMaintainTask(List<DbMaintainDatabase> dbMaintainDatabases)
           
 
Methods inherited from class org.dbmaintain.maven.plugin.BaseDatabaseMojo
createDbMaintainTask, getAllScriptLocations, getDbMaintainDatabases
 
Methods inherited from class org.dbmaintain.maven.plugin.BaseMojo
execute, getMavenProperties, performAfterTaskActions
 
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

lowestAcceptableSequenceValue

protected Long lowestAcceptableSequenceValue
Threshold indicating the minimum value of sequences. If sequences are updated, all sequences having a lower value than this one are set to this value. Defaults to 1000.

Constructor Detail

UpdateSequencesMojo

public UpdateSequencesMojo()
Method Detail

createDbMaintainTask

protected DbMaintainTask createDbMaintainTask(List<DbMaintainDatabase> dbMaintainDatabases)
Specified by:
createDbMaintainTask in class BaseDatabaseMojo


Copyright © 2011. All Rights Reserved.