org.dbmaintain.launch.ant
Class UpdateSequencesAntTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.dbmaintain.launch.ant.BaseAntTask
              extended by org.dbmaintain.launch.ant.BaseDatabaseAntTask
                  extended by org.dbmaintain.launch.ant.UpdateSequencesAntTask

public class UpdateSequencesAntTask
extends BaseDatabaseAntTask

Task that updates all sequences and identity columns to a minimum value.

Author:
Filip Neven, Tim Ducheyne

Field Summary
 
Fields inherited from class org.dbmaintain.launch.ant.BaseDatabaseAntTask
databases
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
UpdateSequencesAntTask()
           
 
Method Summary
protected  DbMaintainTask createDbMaintainTask()
           
 void setLowestAcceptableSequenceValue(Long lowestAcceptableSequenceValue)
          Threshold indicating the minimum value of sequences.
 
Methods inherited from class org.dbmaintain.launch.ant.BaseDatabaseAntTask
addDatabase, getDbMaintainDatabases
 
Methods inherited from class org.dbmaintain.launch.ant.BaseAntTask
execute, getAntProperties, getCustomConfigFile, setConfigFile
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateSequencesAntTask

public UpdateSequencesAntTask()
Method Detail

createDbMaintainTask

protected DbMaintainTask createDbMaintainTask()
Specified by:
createDbMaintainTask in class BaseAntTask

setLowestAcceptableSequenceValue

public void setLowestAcceptableSequenceValue(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.

Parameters:
lowestAcceptableSequenceValue - The lowest sequence value


Copyright © 2011. All Rights Reserved.