Package 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 theManifoldCF
. The username and password for the configured database need to be specified during construction.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
_rcsid
-
Constructor Summary
Constructors Constructor Description DBCreate(java.lang.String userName, java.lang.String password)
The userName and password for the database to be created
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
-
Method Detail
-
doExecute
public void doExecute(IThreadContext tc) throws ManifoldCFException
- Specified by:
doExecute
in classDBInitializationCommand
- 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
-
-