|
org.eclipse.emf.transaction.impl
Class EMFCommandTransaction
java.lang.Object
org.eclipse.emf.transaction.impl.TransactionImpl
org.eclipse.emf.transaction.impl.EMFCommandTransaction
-
All Implemented Interfaces:
-
InternalTransaction,
Transaction
-
Direct Known Subclasses:
-
TriggerCommandTransaction
-
public class EMFCommandTransaction
- extends
TransactionImpl
A transaction implementation use by the command stack to wrap the execution
of
Command s, to provide them the write access that they need.
The transaction knows the
command that it is
servicing.
Method Summary
|
Command
|
getCommand
()
Obtains the command for which I provide read/write access to the
editing domain. |
Methods inherited from class org.eclipse.emf.transaction.impl.
TransactionImpl
|
abort,
add,
addTriggers,
close,
collectsNotifications,
commit,
endPrivileged,
getChangeDescription,
getDefaultOptions,
getEditingDomain,
getInternalDomain,
getLifecycle,
getNotifications,
getOptions,
getOwner,
getParent,
getRoot,
getStatus,
getTriggers,
hasOption,
isAborted,
isActive,
isNotificationEnabled,
isReadOnly,
isRollingBack,
isTriggerEnabled,
isUndoEnabled,
isUnprotected,
isValidationEnabled,
pause,
resume,
rollback,
setParent,
setStatus,
start,
startPrivileged,
toString,
validate,
yield
|
EMFCommandTransaction
public EMFCommandTransaction(
Command command,
InternalTransactionalEditingDomain domain,
Map<?,?> options)
- Initializes me with my command, editing domain, and options.
-
Parameters:
-
command - the command that I am servicing -
domain - the editing domain in which I am active -
options - my options
getCommand
public final
Command getCommand()
- Obtains the command for which I provide read/write access to the
editing domain.
-
-
Returns:
- my command
|
|