public abstract class DBInitializationCommand extends java.lang.Object implements InitializationCommand
Constructor and 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
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doExecute(IThreadContext tc) |
void |
execute()
Execute the command.
|
protected java.lang.String |
getPassword() |
protected java.lang.String |
getUserName() |
public DBInitializationCommand(java.lang.String userName, java.lang.String password)
userName
- String containing the mandatory database usernamepassword
- String containing the mandatory database passwordpublic void execute() throws ManifoldCFException
InitializationCommand
execute
in interface InitializationCommand
ManifoldCFException
- Thrown if the execution failsprotected abstract void doExecute(IThreadContext tc) throws ManifoldCFException
ManifoldCFException
protected java.lang.String getPassword()
protected java.lang.String getUserName()