Package org.apache.manifoldcf.core
Class DBInitializationCommand
- java.lang.Object
-
- org.apache.manifoldcf.core.DBInitializationCommand
-
- All Implemented Interfaces:
InitializationCommand
public abstract class DBInitializationCommand extends java.lang.Object implements InitializationCommand
Parent class for all database initialization related commands. This class provides methods to obtain username and password for the database.- Author:
- Jettro Coenradie
-
-
Constructor Summary
Constructors Constructor Description DBInitializationCommand(java.lang.String userName, java.lang.String password)The userName and password for the database on which the command needs to be performed
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddoExecute(IThreadContext tc)voidexecute()Execute the command.protected java.lang.StringgetPassword()protected java.lang.StringgetUserName()
-
-
-
Constructor Detail
-
DBInitializationCommand
public DBInitializationCommand(java.lang.String userName, java.lang.String password)The userName and password for the database on which the command needs to be performed- Parameters:
userName- String containing the mandatory database usernamepassword- String containing the mandatory database password
-
-
Method Detail
-
execute
public void execute() throws ManifoldCFExceptionDescription copied from interface:InitializationCommandExecute the command.- Specified by:
executein interfaceInitializationCommand- Throws:
ManifoldCFException- Thrown if the execution fails
-
doExecute
protected abstract void doExecute(IThreadContext tc) throws ManifoldCFException
- Throws:
ManifoldCFException
-
getPassword
protected java.lang.String getPassword()
-
getUserName
protected java.lang.String getUserName()
-
-