tudresden.ocl.sql.orstrategy
Class OneTableInheritanceMapping
java.lang.Object
tudresden.ocl.sql.orstrategy.OneTableInheritanceMapping
- All Implemented Interfaces:
- InheritanceStrategy
- public class OneTableInheritanceMapping
- extends Object
- implements InheritanceStrategy
an Inheritance strategy mapping a whole inheritance tree into one
common table
- Author:
- Andrea Kling
Method Summary |
private void |
getAttributes(ru.novosoft.uml.foundation.core.MClassifier parent,
ObjectView ov)
|
static OneTableInheritanceMapping |
getInstance()
|
void |
map(ru.novosoft.uml.foundation.core.MClassifier root,
Map classToTables,
Map classViews)
maps an inheritance tree into one table
ObjectViews for every classifier show only relevant columns
but can not exclude rows of other subclasses |
String |
toString()
a short description of the mapping method |
myInstance
private static OneTableInheritanceMapping myInstance
tables
private List tables
classToTables
private Map classToTables
classViews
private Map classViews
ov
private ObjectView ov
OneTableInheritanceMapping
private OneTableInheritanceMapping()
getInstance
public static OneTableInheritanceMapping getInstance()
map
public void map(ru.novosoft.uml.foundation.core.MClassifier root,
Map classToTables,
Map classViews)
- maps an inheritance tree into one table
ObjectViews for every classifier show only relevant columns
but can not exclude rows of other subclasses
- Specified by:
map
in interface InheritanceStrategy
- Parameters:
root
- the root of an inheritance treeclassToTables
- contains a List of Table for every MClassifierclassViews
- contains an ObjectView for every MClassifier- See Also:
Table
,
ObjectView
getAttributes
private void getAttributes(ru.novosoft.uml.foundation.core.MClassifier parent,
ObjectView ov)
toString
public String toString()
- a short description of the mapping method
Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.