Java Reference
In-Depth Information
13.7.4 OCL Synonyms
For each of the ocl -prefixed operations and types available from OCL, QVT
provides a synonym operation that drops the ocl . For example, you can use
isKindOf() in QVT in addition to the traditional oclIsKindOf() . Note that
this support is not yet part of the M2M QVT OML implementation.
Table 13-2 lists synonyms for predefined OCL operations.
Table 13-2
OCL Operators
Type
Operator
Operation
String
+
concat
Integer
+
plus
- (binary)
minus
- (unary)
unaryminus
*
multiply
/
divide
Real
+
plus
- (binary)
minus
- (unary)
unaryminus
*
multiply
/
divide
13.8 Simple UML to RDBMS Example
The QVT specification uses a simplified UML and relational database meta-
model to illustrate the capabilities of QVT. Both a Relations language and OML
solution are provided in the spec, with the latter found in Appendix A. The
example provided in M2M QVTO is significantly different from the one in the
specification, although an updated one is under development as the implementa-
tion matures. For example, to implement the specification's example, M2M
QVTO first needs to support intermediate classes.
The OML implementation from the M2M project includes this transforma-
tion as a sample project, which is available at New
Examples
QVT
Transformation (Operational)
SimpleUML to RDB Transformation Project .
The wizard also creates a launch configuration.
 
Search WWH ::




Custom Search