name.angoca.db2sa.core.executer
Class Executer

Package class diagram package Executer
java.lang.Object
  extended by name.angoca.db2sa.core.executer.Executer

public final class Executer
extends Object

This is the implementation of the executer. TODO validar que la ejecución de DB2 se puede hacer desde una misma clase en varias plataformas, o si es necesario validar esto.
Control Version

Version:
1.0.0 2009-07-19
Author:
Andres Gomez Casanova (AngocA)

Method Summary
 ExecutionState execute(String command, OutputWriter writer)
          Executes the given command and returns a code that means the execution state.
static Executer getInstance()
          Implementation of Singleton pattern, returns the sole instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Executer getInstance()
Implementation of Singleton pattern, returns the sole instance.

Returns:
The sole instance of the executer.

execute

public ExecutionState execute(String command,
                              OutputWriter writer)
                       throws OutputWriterException
Executes the given command and returns a code that means the execution state.

Parameters:
command - Command to execute.
writer - The output's writer.
Returns:
A signal that indicates the state of the command.
Throws:
OutputWriterException - If there is a problem when writing.


Andres Gomez Casanova (AngocA) Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.