org.apache.manifoldcf.core
Class DBDrop

java.lang.Object
  extended by org.apache.manifoldcf.core.DBInitializationCommand
      extended by org.apache.manifoldcf.core.DBDrop
All Implemented Interfaces:
InitializationCommand

public class DBDrop
extends DBInitializationCommand

Drop the database using the name as specified through the ManifoldCF. The username and password for the configured database need to be specified during construction.


Field Summary
static java.lang.String _rcsid
           
 
Constructor Summary
DBDrop(java.lang.String userName, java.lang.String password)
          The userName and password for the database to be dropped
 
Method Summary
protected  void doExecute(IThreadContext tc)
           
static void main(java.lang.String[] args)
          Useful when running this class standalone.
 
Methods inherited from class org.apache.manifoldcf.core.DBInitializationCommand
execute, getPassword, getUserName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rcsid

public static final java.lang.String _rcsid
See Also:
Constant Field Values
Constructor Detail

DBDrop

public DBDrop(java.lang.String userName,
              java.lang.String password)
The userName and password for the database to be dropped

Parameters:
userName - String containing the mandatory database username
password - String containing the mandatory database password
Method Detail

doExecute

protected void doExecute(IThreadContext tc)
                  throws ManifoldCFException
Specified by:
doExecute in class DBInitializationCommand
Throws:
ManifoldCFException

main

public static void main(java.lang.String[] args)
Useful when running this class standalone. Provide two arguments, the first is the username, the second the password. The password is optional, an empty string is used as the default password.

Parameters:
args - String[] containing the arguments