org.apache.manifoldcf.core
Class DBCreate
java.lang.Object
org.apache.manifoldcf.core.DBInitializationCommand
org.apache.manifoldcf.core.DBCreate
- All Implemented Interfaces:
- InitializationCommand
public class DBCreate
- extends DBInitializationCommand
Create 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 |
DBCreate(java.lang.String userName,
java.lang.String password)
The userName and password for the database to be created |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
DBCreate
public DBCreate(java.lang.String userName,
java.lang.String password)
- The userName and password for the database to be created
- Parameters:
userName - String containing the mandatory database usernamepassword - String containing the mandatory database password
doExecute
public 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