|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.dbmaintain.launch.ant.BaseAntTask
org.dbmaintain.launch.ant.BaseDatabaseAntTask
org.dbmaintain.launch.ant.UpdateDatabaseAntTask
public class UpdateDatabaseAntTask
Task that updates the database to the latest version.
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 | |
---|---|
UpdateDatabaseAntTask()
|
Method Summary | |
---|---|
protected DbMaintainTask |
createDbMaintainTask()
|
void |
setAllowOutOfSequenceExecutionOfPatches(boolean allowOutOfSequenceExecutionOfPatches)
If this property is set to true, a patch script is allowed to be executed even if another script with a higher index was already executed. |
void |
setAutoCreateDbMaintainScriptsTable(boolean autoCreateDbMaintainScriptsTable)
If set to true, the table DBMAINTAIN_SCRIPTS will be created automatically if it does not exist yet. |
void |
setCleanDb(boolean cleanDb)
Indicates whether the database should be 'cleaned' before scripts are executed. |
void |
setDisableConstraints(boolean disableConstraints)
If set to true, all foreign key and not null constraints of the database are automatically disabled before and after the execution of the scripts. |
void |
setExcludedQualifiers(String excludedQualifiers)
Optional comma-separated list of script qualifiers. |
void |
setFromScratchEnabled(boolean fromScratchEnabled)
Sets the fromScratchEnabled property, that indicates the database can be recreated from scratch if needed. |
void |
setIncludedQualifiers(String includedQualifiers)
Optional comma-separated list of script qualifiers. |
void |
setPatchQualifiers(String patchQualifiers)
The qualifiers to use to determine whether a script is a patch script. |
void |
setPostProcessingScriptDirectoryName(String postProcessingScriptDirectoryName)
Comma separated list of directories and files in which the post processing database scripts are located. |
void |
setQualifiers(String qualifiers)
Optional comma-separated list of script qualifiers. |
void |
setScriptEncoding(String scriptEncoding)
Encoding to use when reading the script files. |
void |
setScriptFileExtensions(String scriptFileExtensions)
Sets the scriptFileExtensions property, that defines the extensions of the files that are regarded to be database scripts. |
void |
setScriptLocations(String scriptLocations)
Defines where the scripts can be found that must be executed on the database. |
void |
setScriptParameterFile(String scriptParameterFile)
If set, the given properties file will be loaded and all occurrences of parameters in the script that match a property will be replaced by the corresponding property value. |
void |
setUpdateSequences(boolean updateSequences)
If set to true, all sequences and identity columns are set to a sufficiently high value, so that test data can be inserted without having manually chosen test record IDs clashing with automatically generated keys. |
void |
setUseLastModificationDates(boolean useLastModificationDates)
Defines whether the last modification dates of the scripts files can be used to determine whether the contents of a script has changed. |
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 |
---|
public UpdateDatabaseAntTask()
Method Detail |
---|
protected DbMaintainTask createDbMaintainTask()
createDbMaintainTask
in class BaseAntTask
public void setScriptLocations(String scriptLocations)
scriptLocations
- Comma separated list of script locationspublic void setScriptEncoding(String scriptEncoding)
scriptEncoding
- The encodingpublic void setPostProcessingScriptDirectoryName(String postProcessingScriptDirectoryName)
postProcessingScriptDirectoryName
- The directory namespublic void setFromScratchEnabled(boolean fromScratchEnabled)
fromScratchEnabled
- True if the database can be updated from scratch.public void setAutoCreateDbMaintainScriptsTable(boolean autoCreateDbMaintainScriptsTable)
autoCreateDbMaintainScriptsTable
- True if the DBMAINTAIN_SCRIPTS table can be created automaticallypublic void setQualifiers(String qualifiers)
qualifiers
- the registered (allowed) script qualifierspublic void setPatchQualifiers(String patchQualifiers)
patchQualifiers
- The patch qualifierspublic void setIncludedQualifiers(String includedQualifiers)
includedQualifiers
- the included script qualifierspublic void setExcludedQualifiers(String excludedQualifiers)
excludedQualifiers
- the excluded script qualifierspublic void setAllowOutOfSequenceExecutionOfPatches(boolean allowOutOfSequenceExecutionOfPatches)
allowOutOfSequenceExecutionOfPatches
- true if out-of-sequence execution of patches is enabledpublic void setCleanDb(boolean cleanDb)
cleanDb
- True if the database must be 'cleaned' before executing scripts.public void setDisableConstraints(boolean disableConstraints)
disableConstraints
- True if constraints must be disabled.public void setUpdateSequences(boolean updateSequences)
updateSequences
- True if sequences and identity columns have to be updated.public void setScriptFileExtensions(String scriptFileExtensions)
scriptFileExtensions
- Comma separated list of file extensions.public void setUseLastModificationDates(boolean useLastModificationDates)
useLastModificationDates
- True if script file last modification dates can be used.public void setScriptParameterFile(String scriptParameterFile)
${param}
.
scriptParameterFile
- path of the properties file to be loaded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |