org.efaps.maven.plugin
Class CleanMojo

java.lang.Object
  extended by org.efaps.maven.plugin.EFapsAbstractMojo
      extended by org.efaps.maven.plugin.CleanMojo
All Implemented Interfaces:
org.apache.maven.plugin.Mojo

@Goal(name="clean")
public class CleanMojo
extends EFapsAbstractMojo

Delete Old Data and Data Model within eFaps of current logged in SQL database user (via dropping of all tables, views, constraints etc.)..

Version:
$Id: CleanMojo.java 2393 2009-05-07 06:41:47Z jan.moxter $
Author:
tmo

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
CleanMojo()
           
 
Method Summary
 void execute()
          Initializes the database connection, starts a connection, deletes all tables, views etc.
 
Methods inherited from class org.efaps.maven.plugin.EFapsAbstractMojo
abortTransaction, commitTransaction, convertToMap, getClasspathElements, getLog, getPassWord, getUserName, init, reloadCache, setLog, startTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CleanMojo

public CleanMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Initializes the database connection, starts a connection, deletes all tables, views etc. from current logged in database user and commits transaction.

Throws:
org.apache.maven.plugin.MojoExecutionException - if delete of old data and data model failed


Copyright © 2002-2010 The eFaps Team. All Rights Reserved.