Package org.javalite.db_migrator.maven
Class AbstractDbMigrationMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.javalite.db_migrator.maven.AbstractMigrationMojo
org.javalite.db_migrator.maven.AbstractDbMigrationMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
CheckMojo,CreateMojo,DropMojo,MigrateMojo,ResetMojo,ValidateMojo
-
Field Summary
Fields inherited from class org.javalite.db_migrator.maven.AbstractMigrationMojo
projectFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandatabaseExists(String databaseName)voidexecute()abstract voidgetUrl()voidsetConfigFile(String configFile)voidsetCurrentEnvironment(String currentEnvironment)voidsetCurrentMergeProperties(Properties currentMergeProperties)voidvoidsetEnvironments(String environments)voidsetMergeProperties(String mergeProperties)voidsetPassword(String password)voidvoidsetUsername(String username)Methods inherited from class org.javalite.db_migrator.maven.AbstractMigrationMojo
getCreateSql, getDropSql, getEncoding, getMigrationsPath, getProject, setCreateSql, setDropSql, setMigrationsPath, setProject, toAbsolutePath, toAbsolutePathMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AbstractDbMigrationMojo
public AbstractDbMigrationMojo()
-
-
Method Details
-
getCurrentMergeProperties
-
getCurrentEnvironment
-
setCurrentMergeProperties
-
setCurrentEnvironment
-
execute
public final void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
executeMojo
public abstract void executeMojo() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getUrl
-
getDriver
-
getUsername
-
getPassword
-
getEnvironments
-
getConfigFile
-
setUrl
-
setDriver
-
setUsername
-
setPassword
-
setEnvironments
-
setConfigFile
-
getMergeProperties
-
setMergeProperties
-
databaseExists
- Throws:
SQLException
-