|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModelAccessObject
Service for reading and persisting edited model elements.
This service is essentially used to load and update the values of the widgets of a
view
.
The write accesses are all done into EMF transactions via
TransactionalMadCommand
s.
ModelElementView
,
TransactionalMadCommand
,
TransactionalCommandProvider
Method Summary | |
---|---|
MadCommand |
createTransactionnalMadCommand(ValuedSemanticElement processedElement,
MadCommand baseCommand)
Creates a transactionnal command for executing the
base MadCommand in an EMF transaction. |
void |
loadViewValues(ModelElementView modelElementView)
Sets value for all elements in the given modelElementView . |
void |
loadWidgetValue(Widget<?> widget)
Loads the value from the owner model and set it to the given widget. |
void |
persistViewValues(ModelElementView modelElementView)
View values are persisted into their owner model. |
void |
persistWidgetValue(Widget<?> widget)
Widget value is persisted in its owner model. |
Method Detail |
---|
void loadViewValues(ModelElementView modelElementView) throws MaoException
modelElementView
.
Values are requested from models and affected to element in the
view
.
modelElementView
- The view into which loading the values.
MaoException
void persistViewValues(ModelElementView modelElementView) throws MaoException
modelElementView
-
MaoException
void persistWidgetValue(Widget<?> widget) throws MaoException
widget
- The widget containing the value to persist.
MaoException
void loadWidgetValue(Widget<?> widget) throws MaoException
widget
- The widget into which the value will be put.
MaoException
MadCommand createTransactionnalMadCommand(ValuedSemanticElement processedElement, MadCommand baseCommand)
command
for executing the
base MadCommand
in an EMF transaction.
processedElement
- The element to update.baseCommand
- The base command to execute into an EMF transaction.
TransactionalMadCommand
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |