public abstract class AbstractCommand extends java.lang.Object implements Command
| Constructor and Description |
|---|
AbstractCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
_execute() |
protected abstract boolean |
_rollBack() |
boolean |
execute()
Executes this command
|
java.util.Date |
getTime()
Returns time when this command was first executed.
|
boolean |
isExecuted()
Returns
true if command have been already executed and is not rolled back. |
boolean |
rollBack()
Rolls back this command
|
void |
setExecuted(boolean executed)
Explicitly sets executed status, do not perform any execution or roll-backing.
|
public boolean execute()
Commandpublic boolean rollBack()
Commandpublic void setExecuted(boolean executed)
CommandsetExecuted in interface Commandpublic boolean isExecuted()
Commandtrue if command have been already executed and is not rolled back.isExecuted in interface Commandtrue if command have been already executedpublic java.util.Date getTime()
Commandprotected abstract boolean _execute()
protected abstract boolean _rollBack()