|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.jpattern.core.command.ICommand
com.googlecode.jpattern.core.command.ACommand
public abstract class ACommand
| Constructor Summary | |
|---|---|
ACommand(ICommand previousCommand)
|
|
| Method Summary | |
|---|---|
ICommandResult |
exec()
This method launch the execution of the command (or chain of commands) using the default DefaultCommandExecutor. |
ICommandResult |
exec(ICommandExecutor aCommandExecutor)
This method launch the execution of the command (or chain of commands). |
protected ICommand |
getPreviousCommand()
|
protected IProvider |
getProvider()
|
protected abstract void |
internalRollBack(ICommandResult rollBackResult)
|
protected abstract void |
result(ICommandResult result)
|
ICommandResult |
rollback()
This method launch the rollback of the command (or chain of commands) using the default DefaultCommandExecutor. |
ICommandResult |
rollback(ICommandExecutor aCommandExecutor)
This method launch the rollback of the command (or chain of commands). |
ICommandResult |
rollback(ICommandResult execResult)
This method launch the rollback of the command (or chain of commands) only if the ICommandExecutor passed as parameter is not valid. |
ICommandResult |
rollback(ICommandResult execResult,
ICommandExecutor aCommandExecutor)
This method launch the rollback of the command (or chain of commands) only if the ICommandExecutor passed as parameter is not valid. |
void |
run()
|
void |
visit(IProvider provider)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ACommand(ICommand previousCommand)
| Method Detail |
|---|
public final ICommandResult exec()
ICommand
exec in class ICommandpublic final ICommandResult exec(ICommandExecutor aCommandExecutor)
ICommand
exec in class ICommandaCommandExecutor - the pool in which the command will runs
public final ICommandResult rollback(ICommandExecutor aCommandExecutor)
ICommand
rollback in class ICommandaCommandExecutor - the pool in which the command will runs
public final void visit(IProvider provider)
visit in class ICommandpublic final void run()
run in interface java.lang.Runnablepublic final ICommandResult rollback()
ICommand
rollback in class ICommandpublic final ICommandResult rollback(ICommandResult execResult)
ICommand
rollback in class ICommandexecResult - the result of a Command execution
public final ICommandResult rollback(ICommandResult execResult,
ICommandExecutor aCommandExecutor)
ICommand
rollback in class ICommandexecResult - the result of a Command executionaCommandExecutor - the pool in which the command will runs
protected abstract void result(ICommandResult result)
protected abstract void internalRollBack(ICommandResult rollBackResult)
protected ICommand getPreviousCommand()
protected IProvider getProvider()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||