org.dbmaintain.maven.plugin
Class BaseDatabaseMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.dbmaintain.maven.plugin.BaseMojo
          extended by org.dbmaintain.maven.plugin.BaseDatabaseMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
CheckScriptUpdatesMojo, CleanDatabaseMojo, ClearDatabaseMojo, DisableConstraintsMojo, MarkDatabaseAsUpToDateMojo, MarkErrorScriptPerformedMojo, MarkErrorScriptRevertedMojo, UpdateDatabaseMojo, UpdateSequencesMojo

public abstract class BaseDatabaseMojo
extends BaseMojo

Author:
Tim Ducheyne, tiwe

Field Summary
protected  List<Database> databases
          Database instance configuration.
 
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
BaseDatabaseMojo()
           
 
Method Summary
protected  DbMaintainTask createDbMaintainTask()
           
protected abstract  DbMaintainTask createDbMaintainTask(List<DbMaintainDatabase> dbMaintainDatabases)
           
protected  String getAllScriptLocations(String scriptLocations, List<ScriptArchiveDependency> scriptArchiveDependencies)
           
protected  List<DbMaintainDatabase> 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

databases

protected List<Database> databases
Database instance configuration.

Constructor Detail

BaseDatabaseMojo

public BaseDatabaseMojo()
Method Detail

createDbMaintainTask

protected abstract DbMaintainTask createDbMaintainTask(List<DbMaintainDatabase> dbMaintainDatabases)

createDbMaintainTask

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

getDbMaintainDatabases

protected List<DbMaintainDatabase> getDbMaintainDatabases()

getAllScriptLocations

protected String getAllScriptLocations(String scriptLocations,
                                       List<ScriptArchiveDependency> scriptArchiveDependencies)


Copyright © 2011. All Rights Reserved.