public class CommandAggregation extends AbstractCommand implements java.io.Closeable
| Constructor and Description |
|---|
CommandAggregation() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
_execute() |
protected boolean |
_rollBack() |
boolean |
add(Command command)
Appends the given command to the end of this aggregation.
|
void |
close()
Closes this aggregation.
|
void |
setExecuted(boolean executed)
Explicitly sets executed status, do not perform any execution or roll-backing.
|
execute, getTime, isExecuted, rollBackpublic boolean add(Command command)
true if the command successfully appendedpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic void setExecuted(boolean executed)
CommandsetExecuted in interface CommandsetExecuted in class AbstractCommandprotected boolean _execute()
_execute in class AbstractCommandprotected boolean _rollBack()
_rollBack in class AbstractCommand