Dresden OCL Toolkit

tudresden.ocl.sql.orstrategy
Class OneTableInheritanceMapping

java.lang.Object
  extended bytudresden.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

Field Summary
private  Map classToTables
           
private  Map classViews
           
private static OneTableInheritanceMapping myInstance
           
private  ObjectView ov
           
private  List tables
           
 
Constructor Summary
private OneTableInheritanceMapping()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myInstance

private static OneTableInheritanceMapping myInstance

tables

private List tables

classToTables

private Map classToTables

classViews

private Map classViews

ov

private ObjectView ov
Constructor Detail

OneTableInheritanceMapping

private OneTableInheritanceMapping()
Method Detail

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 tree
classToTables - contains a List of Table for every MClassifier
classViews - 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


Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.