|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TransactionalCommandStack
Extension of the basic CommandStack API providing additional control
over (and feed-back from) the transactions used to execute commands.
| Method Summary | |
|---|---|
void |
execute(Command command,
Map options)
Executes the specified command in a read/write transaction. |
ExceptionHandler |
getExceptionHandler()
Obtains my exception handler. |
void |
setExceptionHandler(ExceptionHandler handler)
Sets an exception handler. |
| Methods inherited from interface org.eclipse.emf.common.command.CommandStack |
|---|
addCommandStackListener, canRedo, canUndo, execute, flush, getMostRecentCommand, getRedoCommand, getUndoCommand, redo, removeCommandStackListener, undo |
| Method Detail |
|---|
void execute(Command command,
Map options)
throws InterruptedException,
RollbackException
CommandStack.execute(Command) method because it provides
feed-back when a command fails to complete. The implementation of this
latter method simply suppresses (but logs) any checked exception that
occurs.
Note that this method will block the caller until a read/write transaction can be started (if other transactions are currently active).
command - the command to executeoptions - the options to apply to the command's transaction, or
null to select the defaults
InterruptedException - if the current thread is interrupted while
waiting to start a read/write transaction for the command execution
RollbackException - if the changes performed by the command are
rolled back by validation of the transactionvoid setExceptionHandler(ExceptionHandler handler)
handler - the exception handler to setExceptionHandler getExceptionHandler()
null if nonesetExceptionHandler(ExceptionHandler)
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||