|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.dbmaintain.maven.plugin.BaseMojo
org.dbmaintain.maven.plugin.BaseDatabaseMojo
org.dbmaintain.maven.plugin.UpdateDatabaseMojo
public class UpdateDatabaseMojo
Task that updates the database to the latest version.
Field Summary | |
---|---|
protected 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. |
protected Boolean |
autoCreateDbMaintainScriptsTable
Sets the autoCreateDbMaintainScriptsTable property. |
protected Boolean |
cleanDb
Indicates whether the database should be 'cleaned' before scripts are executed. |
protected 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. |
protected String |
excludedQualifiers
Optional comma-separated list of script qualifiers. |
protected Boolean |
fromScratchEnabled
Sets the fromScratchEnabled property, that indicates the database can be recreated from scratch if needed. |
protected String |
includedQualifiers
Optional comma-separated list of script qualifiers. |
protected String |
patchQualifiers
The qualifier to use to determine whether a script is a patch script. |
protected String |
postProcessingScriptDirectoryName
Comma separated list of directories and files in which the post processing database scripts are located. |
protected String |
qualifiers
Optional comma-separated list of script qualifiers. |
protected List<ScriptArchiveDependency> |
scriptArchiveDependencies
Defines where the scripts can be found that must be executed on the database. |
protected String |
scriptEncoding
Encoding to use when reading the script files. |
protected String |
scriptFileExtensions
Sets the scriptFileExtensions property, that defines the extensions of the files that are regarded to be database scripts. |
protected String |
scriptLocations
Defines where the scripts can be found that must be executed on the database. |
protected String |
scriptParameterFile
Sets the scriptParameterFile property. |
protected 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. |
protected 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. |
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 | |
---|---|
UpdateDatabaseMojo()
|
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 |
---|
protected List<ScriptArchiveDependency> scriptArchiveDependencies
protected String scriptLocations
protected String scriptEncoding
protected String postProcessingScriptDirectoryName
protected Boolean fromScratchEnabled
protected Boolean autoCreateDbMaintainScriptsTable
protected Boolean allowOutOfSequenceExecutionOfPatches
protected String qualifiers
protected String patchQualifiers
protected String includedQualifiers
protected String excludedQualifiers
protected Boolean cleanDb
protected Boolean disableConstraints
protected Boolean updateSequences
protected Boolean useLastModificationDates
protected String scriptFileExtensions
protected String scriptParameterFile
Constructor Detail |
---|
public UpdateDatabaseMojo()
Method Detail |
---|
protected DbMaintainTask createDbMaintainTask(List<DbMaintainDatabase> dbMaintainDatabases)
createDbMaintainTask
in class BaseDatabaseMojo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |